Function at 0x678871a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x67987328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0xc]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebp, dword [edi + 0x1c]
mov esi, eax
push esi
lea ecx, [esp + 0xe0]
mov dword [esp + 0x94], esi
mov dword [esp + 0x54], ebp
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPClientRect::constructor_class_CWnd_const__
lea ecx, [esp + 0xdc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ClientToScreen
push esi
lea ecx, [esp + 0x1c]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWindowRect::constructor_class_CWnd_const__
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0xe8]
mov ebx, dword [esp + 0xdc]
mov eax, dword [esp + 0x18]
sub ecx, esi
mov edx, dword [edi + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
sub ebx, eax
mov dword [esp + 0x28], edx
neg ecx
neg eax
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov ecx, edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::GetCaptionHeight_void_const
lea ecx, [esp + 0x68]
mov dword [esp + 0x94], eax
push ecx
mov ecx, edi
add esi, eax
mov dword [esp + 0x6c], 0
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsFrameHasStatusBar_int__const
mov dword [esp + 0xc8], eax
test eax, eax
mov eax, dword [esp + 0x78]
je 0x678872a1
mov edx, dword [esp + 0x68]
sub eax, esi
mov dword [esp + 0x54], eax
sub eax, edx
dec eax
jmp 0x678872a7
sub eax, esi
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x678872e5
test ebp, ebp
je 0x678872c6
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x5fc]
jmp 0x678872d0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x60c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
push eax
push ecx
push 1
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 1
jle 0x6788731a
test ebp, ebp
je 0x678872fa
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x600]
jmp 0x67887304
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x610]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push edx
push 1
inc eax
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 2
jle 0x67887351
test ebp, ebp
je 0x6788732f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x604]
jmp 0x67887339
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x614]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
add ecx, 2
push eax
push 1
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 3
jle 0x6788738a
test ebp, ebp
je 0x67887366
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x608]
jmp 0x67887370
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x618]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx - 3]
push ecx
push edx
add eax, 3
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
test ebx, ebx
jle 0x678873be
test ebp, ebp
je 0x6788739e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x5fc]
jmp 0x678873a8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x60c]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
dec ecx
push eax
push 1
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 1
jle 0x678873f5
test ebp, ebp
je 0x678873d3
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x600]
jmp 0x678873dd
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x610]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push eax
push ecx
push 1
add edx, 0xfffffffe
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 2
jle 0x6788742c
test ebp, ebp
je 0x6788740a
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x604]
jmp 0x67887414
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x614]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push edx
push 1
add eax, 0xfffffffd
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
cmp ebx, 3
jle 0x67887464
test ebp, ebp
je 0x67887441
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x608]
jmp 0x6788744b
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x618]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [ebx - 3]
push eax
push ecx
sub edx, ebx
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
test ebp, ebp
je 0x6788748f
mov ecx, dword [esp + 0x90]
call sub.MFC42.DLL_CWnd::GetStyle
mov esi, dword [esp + 0x10]
test eax, 0x1000000
je 0x67887487
mov eax, dword [esi + 0x608]
jmp 0x6788749d
mov eax, dword [esi + 0x5fc]
jmp 0x6788749d
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + 0x60c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push 1
dec edx
push ecx
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
mov ecx, dword [esp + 0x4c]
cmp ecx, 1
jle 0x678874f7
test ebp, ebp
je 0x678874ce
mov eax, dword [esi + 0x608]
jmp 0x678874d4
mov eax, dword [esi + 0x618]
mov edx, dword [esp + 0x20]
push eax
lea eax, [ecx - 1]
push eax
mov eax, dword [esp + 0x20]
sub edx, eax
sub edx, 2
push edx
mov edx, dword [esp + 0x30]
sub edx, ecx
inc eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::FillSolidRect
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67887b21
test edi, edi
jne 0x67887541
xor eax, eax
jmp 0x67887544
mov eax, dword [edi + 4]
lea ecx, [esp + 0x7c]
push ecx
push eax
lea ecx, [esp + 0xf4]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPBufferDC::constructor_struct_HDC_____class_CRect_const__
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x138], 0
call esi
lea eax, [esp + 0x11c]
push eax
call esi
lea ecx, [esp + 0xb8]
push ecx
call esi
lea edx, [esp + 0x6c]
push edx
call esi
lea eax, [esp + 0xa8]
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.FRAMETOPLEFT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x6788765f
xor ecx, ecx
push 2
test ebp, ebp
sete cl
lea edx, [esp + 0x9c]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x6c], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x74], eax
sub eax, ecx
mov edx, dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x88]
add eax, ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
sub esp, 0x10
xor eax, eax
mov edx, esp
mov ecx, 5
sub esp, 0x10
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [edx + 8], eax
mov eax, 3
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x90]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x10c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ecx, dword [esp + 0x10]
push str.FRAMETOPRIGHT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887744
xor edx, edx
push 2
test ebp, ebp
sete dl
lea eax, [esp + 0x9c]
push edx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, eax
mov eax, dword [edx]
mov dword [esp + 0xa8], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xac], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0xb0], ecx
sub eax, ecx
mov edx, dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x88]
push edx
add eax, ecx
push ecx
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x128]
push eax
push edx
call dword [sym.imp.USER32.dll_SetRect]
sub esp, 0x10
xor eax, eax
mov ebp, esp
mov ecx, 5
xor edx, edx
sub esp, 0x10
mov dword [ebp], eax
mov eax, 3
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0xc8]
mov dword [ebp + 8], edx
mov edx, dword [esp + 0xcc]
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xd4]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x10c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x13c]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
push str.FRAMETOPCENTER
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887806
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x44]
sub ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esp + 0x88]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
sub esp, 0x10
xor eax, eax
mov edx, esp
mov ecx, 5
push 2
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [esp + 0xac]
mov dword [edx + 8], eax
mov eax, 3
mov dword [edx + 0xc], eax
xor eax, eax
test ebp, ebp
sete al
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
lea ecx, [esp + 0xd8]
mov dword [edx + 0xc], eax
lea edx, [esp + 0x10c]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
push 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push 0
push ecx
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 7
call sub.MFC42.DLL_CRect::DeflateRect
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x10]
push edx
call sym.MfcHlpr520.dll_protected:_struct_HICON______thiscall_CMHPOffice2007Theme::GetFrameSmallIcon_class_CWnd__
test eax, eax
mov dword [esp + 0x94], eax
je 0x67887948
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
call esi
push 0x31
mov dword [esp + 0x58], eax
call esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x88]
sub eax, esi
mov esi, dword [esp + 0x54]
sub eax, ecx
sub eax, esi
dec eax
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ecx
call sym.MfcHlpr520.dll_class_CMHPDrawHelpers____cdecl_MHPDrawHelpers_void_
lea ecx, [esp + 0xec]
push ecx
call sym.MfcHlpr520.dll_public:_static_int___cdecl_CMHPDrawHelpers::IsContextRTL_class_CDC__
add esp, 4
mov dword [esp + 0x28], eax
and eax, 1
mov dword [esp + 0x8c], eax
je 0x678878ec
call sym.MfcHlpr520.dll_class_CMHPDrawHelpers____cdecl_MHPDrawHelpers_void_
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xec]
or edx, 8
push edx
push eax
call sym.MfcHlpr520.dll_public:_static_void___cdecl_CMHPDrawHelpers::SetContextRTL_class_CDC___int_
add esp, 8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x94]
push 3
push 0
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x104]
push eax
push esi
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x6788793d
call sym.MfcHlpr520.dll_class_CMHPDrawHelpers____cdecl_MHPDrawHelpers_void_
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xec]
push eax
push ecx
call sym.MfcHlpr520.dll_public:_static_void___cdecl_CMHPDrawHelpers::SetContextRTL_class_CDC___int_
add esp, 8
mov edx, dword [esp + 0x14]
add edx, 0xc
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x140]
mov dword [esp + 0x14], 0
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x2c]
test eax, eax
jle 0x67887abe
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x67887985
cmp ecx, eax
jge 0x67887985
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
mov esi, dword [edx + eax*4]
jmp 0x67887987
xor esi, esi
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x84]
test eax, eax
je 0x67887aa6
mov eax, dword [esi + 0xa0]
cmp eax, 0xffffffff
jne 0x678879b5
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x678879b5
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPControlAction::GetEnabled_void_const
test eax, eax
je 0x678879c4
test ebp, ebp
je 0x678879c4
mov eax, 1
jmp 0x678879c6
xor eax, eax
mov ecx, dword [esi + 0x88]
lea edi, [esi + 0xc4]
mov edx, edi
mov dword [esp + 0x8c], ecx
push eax
mov ecx, dword [edx]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [edx + 0xc]
mov ebp, dword [ecx]
mov dword [esp + 0x68], edx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x7c]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
mov ecx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x6c]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10c]
push edx
call dword [ebp + 0x150]
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x9c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0xa0], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x67887a9b
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x67887969
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push ebp
push eax
sub ecx, ebx
sub esp, 0x10
mov dword [esp + 0x4c], ecx
mov eax, esp
mov ecx, dword [esp + 0x28]
mov dword [eax], esi
mov esi, dword [esp + 0x48]
mov edx, dword [ecx]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x4c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x50]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x104]
push eax
call dword [edx + 0x154]
lea ecx, [esp + 0xec]
mov dword [esp + 0x134], 0xffffffff
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPBufferDC::destructor_void_
jmp 0x67887d72
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x10]
push str.FRAMETOPLEFT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887be8
xor edx, edx
push 2
test ebp, ebp
sete dl
lea eax, [esp + 0xbc]
push edx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, eax
sub esp, 0x10
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov ebp, dword [edx + 8]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x90]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
add edx, ebx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x58], edx
mov ebp, esp
xor edx, edx
sub esp, 0x10
mov dword [ebp], edx
mov edx, 5
mov dword [esp + 0x54], ebx
mov dword [ebp + 4], edx
xor edx, edx
mov dword [ebp + 8], edx
mov edx, 3
mov dword [ebp + 0xc], edx
mov edx, esp
mov dword [edx], eax
mov eax, ebx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x5c]
push edx
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
push str.FRAMETOPRIGHT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887cb7
xor eax, eax
push 2
test ebp, ebp
sete al
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xcc], 5
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
mov ebp, edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x98]
sub ebp, ebx
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], edx
mov ebp, esp
xor edx, edx
sub esp, 0x10
mov eax, ecx
mov dword [ebp], edx
mov edx, dword [esp + 0xdc]
sub eax, ebx
mov dword [ebp + 4], edx
xor edx, edx
mov dword [esp + 0x4c], eax
mov dword [ebp + 8], edx
mov edx, 3
mov dword [ebp + 0xc], edx
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x5c]
push edx
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
push str.FRAMETOPCENTER
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887d72
xor eax, eax
push 2
test ebp, ebp
sete al
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, eax
sub esp, 0x10
mov ecx, dword [edx]
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x40], eax
mov ebp, dword [edx + 8]
mov dword [esp + 0x44], ebp
mov edx, dword [edx + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x38]
lea ebp, [eax + edx]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x28]
add ebp, ebx
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x30]
sub ebp, ebx
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x2c]
add ebp, edx
xor edx, edx
mov dword [esp + 0x58], ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x5c]
push edx
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x67888086
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x10]
push str.STATUSBARLIGHT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887e35
mov ecx, esi
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
lea ecx, [ebx - 1]
push eax
push ecx
push 0
lea edx, [esp + 0x64]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
inc eax
sub esp, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x5c]
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x28]
add edx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
mov edx, esp
xor eax, eax
xor ecx, ecx
mov dword [edx], eax
sub esp, 0x10
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
lea eax, [esp + 0x5c]
push eax
push edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
mov ecx, dword [esp + 0x10]
push str.STATUSBARDARK
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x67887ede
mov ecx, esi
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
lea ecx, [ebx - 1]
push eax
push ecx
push 0
lea edx, [esp + 0x64]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
sub eax, ebx
sub esp, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x5c]
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
mov edx, esp
xor eax, eax
xor ecx, ecx
mov dword [edx], eax
sub esp, 0x10
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
lea eax, [esp + 0x5c]
push eax
push edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
cmp ebx, 3
jle 0x67888086
mov ecx, dword [esp + 0x10]
push str.FRAMEBOTTOMLEFT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
test eax, eax
mov dword [esp + 0x4c], eax
je 0x67887fac
xor ecx, ecx
push 2
test ebp, ebp
sete cl
lea edx, [esp + 0xbc]
push ecx
push edx
mov ecx, eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov esi, eax
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
push 0xff00ff
mov eax, dword [esi]
mov dword [esp + 0x5c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x64], edx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x70], edi
mov edi, ecx
mov dword [esp + 0x68], esi
sub edi, esi
add edi, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x74], edi
mov edi, edx
sub edi, eax
add edi, ebp
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x7c], edi
xor edi, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea edi, [esp + 0x40]
push edi
sub esp, 0x10
mov edi, esp
mov dword [edi], eax
lea eax, [esp + 0x84]
push eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
mov edi, dword [esp + 0x158]
push edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
mov ebp, dword [esp + 0x50]
cmp ebx, 3
jle 0x67888086
mov ecx, dword [esp + 0x10]
push str.FRAMEBOTTOMRIGHT
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
test eax, eax
mov dword [esp + 0x4c], eax
je 0x67888086
xor ecx, ecx
push 2
test ebp, ebp
sete cl
lea edx, [esp + 0xbc]
push ecx
push edx
mov ecx, eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov esi, eax
mov ebp, dword [esp + 0x20]
push 0xff00ff
mov eax, dword [esi]
mov dword [esp + 0x5c], eax
mov ebx, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 8]
sub ebx, edx
mov dword [esp + 0x64], edx
mov esi, dword [esi + 0xc]
add ebx, ebp
mov ebp, ecx
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x28]
sub ebp, esi
add ebp, ebx
mov dword [esp + 0xa8], ebx
xor ebx, ebx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
lea ebx, [esp + 0xd0]
mov ebp, dword [esp + 0x24]
push ebx
mov dword [esp + 0x6c], esi
sub esp, 0x10
mov dword [esp + 0xb8], ebp
mov ebx, esp
mov dword [ebx], eax
lea eax, [esp + 0xb0]
push eax
push edi
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret 8