-
-
[原创]汇编调用mfc42.dll
-
发表于: 2015-7-16 13:43 4105
-
; int __thiscall CTest2App::InitInstance(#770 *this)
?InitInstance@CTest2App@@UAEHXZ: ; DATA XREF: .rdata:00402290o
push 0FFFFFFFFh
push offset _L71069
mov eax, [fs:0]
push eax
mov [fs:0], esp
sub esp, 64h
push esi
mov esi, ecx
push 0 ; struct COccManager *
call ?AfxEnableControlContainer@@YAXPAVCOccManager@@@Z_0 ; AfxEnableControlContainer(COccManager *)
add esp, 4
mov ecx, esi ; this
call ?Enable3dControls@CWinApp@@IAEHXZ_0 ; CWinApp::Enable3dControls(void)
push 0 ; pParent
lea ecx, [esp+8] ; this
call ??0CTest2Dlg@@QAE@PAVCWnd@@@Z ; CTest2Dlg::CTest2Dlg(CWnd *)
lea eax, [esp+4]
lea ecx, [esp+4] ; this
mov dword ptr [esp+70h], 0
mov [esi+20h], eax
call ?DoModal@CDialog@@UAEHXZ_0 ; CDialog::DoModal(void)
lea ecx, [esp+4] ; this
mov dword ptr [esp+70h], 0FFFFFFFFh
call ??1CDialog@@UAE@XZ_0 ; CDialog::~CDialog(void)
mov ecx, [esp+68h]
xor eax, eax
pop esi
mov [fs:0], ecx
add esp, 70h
retn
; ---------------------------------------------------------------------------
align 10h
import MFC42, \
OnDDECommand@CWinApp@@UAEHPAD@Z, 4486, \
DoWaitCursor@CWinApp@@UAEXH@Z, 2554, \
DoMessageBox@CWinApp@@UAEHPBDII@Z, 2512, \
SaveAllModified@CWinApp@@UAEHXZ, 5731, \
InitApplication@CWinApp@@UAEHXZ, 3922', \
AddToRecentFileList@CWinApp@@UAEXPBD@Z, 1089, \
OpenDocumentFile@CWinApp@@UAEPAVCDocument@@PBD@Z, 5199, \
Delete@CWinThread@@UAEXXZ, 2396, \
GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ, 3346, \
ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z, 5300, \
ProcessWndProcException@CWinApp@@UAEJPAVCException@@PBUtagMSG@@@Z, 5302, \
ExitInstance@CWinApp@@UAEHXZ, 2725, \
IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z, 4079, \
OnIdle@CWinApp@@UAEHJ@Z, 4698, \
PumpMessage@CWinThread@@UAEHXZ, 5307, \
PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z, 5289, \
Run@CWinApp@@UAEHXZ, 5714, \
GetConnectionHook@CCmdTarget@@MAEPAUIConnectionPoint@@ABU_GUID@@@Z, 2982, \
GetExtraConnectionPoints@CCmdTarget@@MAEHPAVCPtrArray@@@Z, 3147, \
GetInterfaceHook@CCmdTarget@@UAEPAUIUnknown@@PBX@Z, 3259, \
OnCreateAggregates@CCmdTarget@@UAEHXZ, 4465, \
GetEventSinkMap@CCmdTarget@@MBEPBUAFX_EVENTSINKMAP@@XZ, 3136, \
GetInterfaceMap@CCmdTarget@@MBEPBUAFX_INTERFACEMAP@@XZ, 3262, \
GetConnectionMap@CCmdTarget@@MBEPBUAFX_CONNECTIONMAP@@XZ, 2985, \
GetDispatchMap@CCmdTarget@@MBEPBUAFX_DISPMAP@@XZ, 3081, \
GetCommandMap@CCmdTarget@@MBEPBUAFX_OLECMDMAP@@XZ, 2976, \
GetTypeLib@CCmdTarget@@UAEJKPAPAUITypeLib@@@Z, 3830, \
GetTypeLibCache@CCmdTarget@@UAEPAVCTypeLibCache@@XZ, 3831, \
GetTypeInfoCount@CCmdTarget@@UAEIXZ, 3825, \
GetDispatchIID@CCmdTarget@@UAEHPAU_GUID@@@Z, 3079, \
IsInvokeAllowed@CCmdTarget@@UAEHJ@Z, 4080, \
OnFinalRelease@CCmdTarget@@UAEXXZ, 4622, \
OnCmdMsg@CCmdTarget@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z, 4424, \
GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ, 3738, \
?0CWinApp@@QAE@PBD@Z, 561, \
?3@YAXPAX@Z, 825, \
?1CWinApp@@UAE@XZ, 815, \
?1CDialog@@UAE@XZ, 641, \
DoModal@CDialog@@UAEHXZ, 2514, \
Enable3dControls@CWinApp@@IAEHXZ, 2621, \
AfxEnableControlContainer@@YAXPAVCOccManager@@@Z, 1134, \
WinHelpA@CWinApp@@UAEXKI@Z , 6375, \
OnCancel@CDialog@@MAEXXZ , 4376, \
OnOK@CDialog@@MAEXXZ , 4853, \
OnSetFont@CDialog@@UAEXPAVCFont@@@Z , 4998, \
OnInitDialog@CDialog@@UAEHXZ , 4710, \
SetOccDialogInfo@CDialog@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z , 6052, \
IsFrameWnd@CWnd@@UBEHXZ , 4078, \
CheckAutoCenter@CDialog@@UAEHXZ , 1775, \
OnChildNotify@CWnd@@MAEHIIJPAJ@Z , 4407, \
PostNcDestroy@CWnd@@MAEXXZ , 5241, \
DefWindowProcA@CWnd@@MAEJIIJ@Z , 2385, \
OnWndMsg@CWnd@@MAEHIIJPAJ@Z , 5163, \
WindowProc@CWnd@@MAEJIIJ@Z , 6374, \
OnAmbientProperty@CWnd@@UAEHPAVCOleControlSite@@JPAUtagVARIANT@@@Z , 4353, \
PreTranslateMessage@CDialog@@UAEHPAUtagMSG@@@Z , 5280, \
GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@ZXZ , 3798, \
OnNotify@CWnd@@MAEHIJPAJ@Z , 4837, \
OnCommand@CWnd@@MAEHIJ@Z , 4441, \
EndModalLoop@CWnd@@UAEXH@Z , 2648, \
ContinueModal@CWnd@@UAEHXZ , 2055, \
WinHelpA@CWnd@@UAEXKI@Z , 6376, \
GetScrollBarCtrl@CWnd@@UBEPAVCScrollBar@@H@Z , 3749, \
OnToolHitTest@CWnd@@UBEHVCPoint@@PAUtagTOOLINFOA@@@Z , 5065, \
CalcWindowRect@CWnd@@UAEXPAUtagRECT@@I@Z , 1727, \
PreCreateWindow@CWnd@@UAEHAAUtagCREATESTRUCTA@@@Z , 5261, \
DestroyWindow@CWnd@@UAEHXZ , 2446, \
Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCCreateContext@@@Z , 2124, \
PreSubclassWindow@CWnd@@UAEXXZ , 5277', \
OnFinalRelease@CWnd@@UAEXXZ , 4627, \
OnCmdMsg@CDialog@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z , 4425, \
GetRuntimeClass@CDialog@@UBEPAUCRuntimeClass@@XZ , 3597, \
?0CDialog@@QAE@IPAVCWnd@@@Z , 324, \
messageMap@CDialog@@1UAFX_MSGMAP@@B , 4234, \
AfxFindResourceHandle@@YGPAUHINSTANCE__@@PBD0@Z , 1146, \
AfxGetModuleState@@YGPAVAFX_MODULE_STATE@@XZ , 1168, \
?1CString@@QAE@XZ , 800, \
LoadStringA@CString@@QAEHI@Z , 4160, \
?0CString@@QAE@XZ , 540, \
FromHandle@CMenu@@SGPAV1@PAUHMENU__@@@Z , 2863, \
Default@CWnd@@IAEJXZ , 2379, \
?1CPaintDC@@UAE@XZ , 755, \
?0CPaintDC@@QAE@PAVCWnd@@@Z , 470, \
messageMap@CWinApp@@1UAFX_MSGMAP@@B , 4274, \
PreInitDialog@CDialog@@MAEXXZ , 5265, \
OnHelp@CWinApp@@IAEXXZ , 4673, \
AfxWinMain@@YGHPAUHINSTANCE__@@0PADH@Z , 1576
?InitInstance@CTest2App@@UAEHXZ: ; DATA XREF: .rdata:00402290o
push 0FFFFFFFFh
push offset _L71069
mov eax, [fs:0]
push eax
mov [fs:0], esp
sub esp, 64h
push esi
mov esi, ecx
push 0 ; struct COccManager *
call ?AfxEnableControlContainer@@YAXPAVCOccManager@@@Z_0 ; AfxEnableControlContainer(COccManager *)
add esp, 4
mov ecx, esi ; this
call ?Enable3dControls@CWinApp@@IAEHXZ_0 ; CWinApp::Enable3dControls(void)
push 0 ; pParent
lea ecx, [esp+8] ; this
call ??0CTest2Dlg@@QAE@PAVCWnd@@@Z ; CTest2Dlg::CTest2Dlg(CWnd *)
lea eax, [esp+4]
lea ecx, [esp+4] ; this
mov dword ptr [esp+70h], 0
mov [esi+20h], eax
call ?DoModal@CDialog@@UAEHXZ_0 ; CDialog::DoModal(void)
lea ecx, [esp+4] ; this
mov dword ptr [esp+70h], 0FFFFFFFFh
call ??1CDialog@@UAE@XZ_0 ; CDialog::~CDialog(void)
mov ecx, [esp+68h]
xor eax, eax
pop esi
mov [fs:0], ecx
add esp, 70h
retn
; ---------------------------------------------------------------------------
align 10h
import MFC42, \
OnDDECommand@CWinApp@@UAEHPAD@Z, 4486, \
DoWaitCursor@CWinApp@@UAEXH@Z, 2554, \
DoMessageBox@CWinApp@@UAEHPBDII@Z, 2512, \
SaveAllModified@CWinApp@@UAEHXZ, 5731, \
InitApplication@CWinApp@@UAEHXZ, 3922', \
AddToRecentFileList@CWinApp@@UAEXPBD@Z, 1089, \
OpenDocumentFile@CWinApp@@UAEPAVCDocument@@PBD@Z, 5199, \
Delete@CWinThread@@UAEXXZ, 2396, \
GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ, 3346, \
ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z, 5300, \
ProcessWndProcException@CWinApp@@UAEJPAVCException@@PBUtagMSG@@@Z, 5302, \
ExitInstance@CWinApp@@UAEHXZ, 2725, \
IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z, 4079, \
OnIdle@CWinApp@@UAEHJ@Z, 4698, \
PumpMessage@CWinThread@@UAEHXZ, 5307, \
PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z, 5289, \
Run@CWinApp@@UAEHXZ, 5714, \
GetConnectionHook@CCmdTarget@@MAEPAUIConnectionPoint@@ABU_GUID@@@Z, 2982, \
GetExtraConnectionPoints@CCmdTarget@@MAEHPAVCPtrArray@@@Z, 3147, \
GetInterfaceHook@CCmdTarget@@UAEPAUIUnknown@@PBX@Z, 3259, \
OnCreateAggregates@CCmdTarget@@UAEHXZ, 4465, \
GetEventSinkMap@CCmdTarget@@MBEPBUAFX_EVENTSINKMAP@@XZ, 3136, \
GetInterfaceMap@CCmdTarget@@MBEPBUAFX_INTERFACEMAP@@XZ, 3262, \
GetConnectionMap@CCmdTarget@@MBEPBUAFX_CONNECTIONMAP@@XZ, 2985, \
GetDispatchMap@CCmdTarget@@MBEPBUAFX_DISPMAP@@XZ, 3081, \
GetCommandMap@CCmdTarget@@MBEPBUAFX_OLECMDMAP@@XZ, 2976, \
GetTypeLib@CCmdTarget@@UAEJKPAPAUITypeLib@@@Z, 3830, \
GetTypeLibCache@CCmdTarget@@UAEPAVCTypeLibCache@@XZ, 3831, \
GetTypeInfoCount@CCmdTarget@@UAEIXZ, 3825, \
GetDispatchIID@CCmdTarget@@UAEHPAU_GUID@@@Z, 3079, \
IsInvokeAllowed@CCmdTarget@@UAEHJ@Z, 4080, \
OnFinalRelease@CCmdTarget@@UAEXXZ, 4622, \
OnCmdMsg@CCmdTarget@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z, 4424, \
GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ, 3738, \
?0CWinApp@@QAE@PBD@Z, 561, \
?3@YAXPAX@Z, 825, \
?1CWinApp@@UAE@XZ, 815, \
?1CDialog@@UAE@XZ, 641, \
DoModal@CDialog@@UAEHXZ, 2514, \
Enable3dControls@CWinApp@@IAEHXZ, 2621, \
AfxEnableControlContainer@@YAXPAVCOccManager@@@Z, 1134, \
WinHelpA@CWinApp@@UAEXKI@Z , 6375, \
OnCancel@CDialog@@MAEXXZ , 4376, \
OnOK@CDialog@@MAEXXZ , 4853, \
OnSetFont@CDialog@@UAEXPAVCFont@@@Z , 4998, \
OnInitDialog@CDialog@@UAEHXZ , 4710, \
SetOccDialogInfo@CDialog@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z , 6052, \
IsFrameWnd@CWnd@@UBEHXZ , 4078, \
CheckAutoCenter@CDialog@@UAEHXZ , 1775, \
OnChildNotify@CWnd@@MAEHIIJPAJ@Z , 4407, \
PostNcDestroy@CWnd@@MAEXXZ , 5241, \
DefWindowProcA@CWnd@@MAEJIIJ@Z , 2385, \
OnWndMsg@CWnd@@MAEHIIJPAJ@Z , 5163, \
WindowProc@CWnd@@MAEJIIJ@Z , 6374, \
OnAmbientProperty@CWnd@@UAEHPAVCOleControlSite@@JPAUtagVARIANT@@@Z , 4353, \
PreTranslateMessage@CDialog@@UAEHPAUtagMSG@@@Z , 5280, \
GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@ZXZ , 3798, \
OnNotify@CWnd@@MAEHIJPAJ@Z , 4837, \
OnCommand@CWnd@@MAEHIJ@Z , 4441, \
EndModalLoop@CWnd@@UAEXH@Z , 2648, \
ContinueModal@CWnd@@UAEHXZ , 2055, \
WinHelpA@CWnd@@UAEXKI@Z , 6376, \
GetScrollBarCtrl@CWnd@@UBEPAVCScrollBar@@H@Z , 3749, \
OnToolHitTest@CWnd@@UBEHVCPoint@@PAUtagTOOLINFOA@@@Z , 5065, \
CalcWindowRect@CWnd@@UAEXPAUtagRECT@@I@Z , 1727, \
PreCreateWindow@CWnd@@UAEHAAUtagCREATESTRUCTA@@@Z , 5261, \
DestroyWindow@CWnd@@UAEHXZ , 2446, \
Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCCreateContext@@@Z , 2124, \
PreSubclassWindow@CWnd@@UAEXXZ , 5277', \
OnFinalRelease@CWnd@@UAEXXZ , 4627, \
OnCmdMsg@CDialog@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z , 4425, \
GetRuntimeClass@CDialog@@UBEPAUCRuntimeClass@@XZ , 3597, \
?0CDialog@@QAE@IPAVCWnd@@@Z , 324, \
messageMap@CDialog@@1UAFX_MSGMAP@@B , 4234, \
AfxFindResourceHandle@@YGPAUHINSTANCE__@@PBD0@Z , 1146, \
AfxGetModuleState@@YGPAVAFX_MODULE_STATE@@XZ , 1168, \
?1CString@@QAE@XZ , 800, \
LoadStringA@CString@@QAEHI@Z , 4160, \
?0CString@@QAE@XZ , 540, \
FromHandle@CMenu@@SGPAV1@PAUHMENU__@@@Z , 2863, \
Default@CWnd@@IAEJXZ , 2379, \
?1CPaintDC@@UAE@XZ , 755, \
?0CPaintDC@@QAE@PAVCWnd@@@Z , 470, \
messageMap@CWinApp@@1UAFX_MSGMAP@@B , 4274, \
PreInitDialog@CDialog@@MAEXXZ , 5265, \
OnHelp@CWinApp@@IAEXXZ , 4673, \
AfxWinMain@@YGHPAUHINSTANCE__@@0PADH@Z , 1576
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
他的文章
- [求助]易语言程序编译后的(exe)窗体怎么修改? 7798
- [求助]<跟踪调试易语言静态编译支持库的方法> 3408
- [原创]用ida调试.net clr相对容易 4411
- [原创]汇编调用mfc42.dll 4106
- [分享]反汇编notepad.exe重新编译运行 6378
看原图
赞赏
雪币:
留言: