如何带参数调试程序
我用wd32asm调试,发现它调用了DialogBoxParamW函数来显示对话框,并且在01003A32地址处定义了一个DialogProc函数。如果我屏蔽DialogBoxParam的调用那么程序就无法正常运行了。
如下
:01003F9B push 01003A32
:01003FA0 push 00000000
:01003FA2 push 00000091
:01003FA7 push dword ptr [0100503C]
int DialogBoxParamW(HINSTANCE,LPWSTR,HWND,DLGPROC,LPARAM)
:01003FAD call USER32.DialogBoxParamW
跳过这一步不行的说,该做的事情在这一个call里都做完了。
:01003FB3 xor eax, eax
:01003FB5 inc eax
:01003FB6 jmp AppLoc.01003FBA
:01003FB8 xor eax, eax
:01003FBA mov ecx, dword ptr [ebp-04]
API int Arg00 = DialogBoxParamW(Arg01,Arg02,Arg03,Arg04,Arg05)
API Address=01003FAD, API Return Address=01003FB3
Arg01 = (HINSTANCE) 00800000
lpArg02 = (LPWSTR) ID:0091
Arg03 = (HWND) 00000000 (Window"")
Arg04 = (DLGPROC) 01003a32
Arg05 = (LPARAM) 00000000
谢谢