Function at 0x678880b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x67987348
push eax
mov eax, dword [esp + 0x30]
mov dword fs:[0], esp
sub esp, 0x50
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
mov ebx, ecx
jne 0x678880e4
mov ebp, 3
jmp 0x6788810a
mov eax, dword [esp + 0x88]
test edi, edi
je 0x678880fa
test eax, eax
je 0x67888105
mov ebp, 2
jmp 0x6788810a
test eax, eax
jne 0x67888105
xor ebp, ebp
jmp 0x678881a3
mov ebp, 1
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x6788811d
test edi, edi
je 0x678881a3
push str.FRAMECAPTIONBUTTON
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
test edi, edi
mov esi, eax
je 0x67888141
mov eax, dword [esp + 0x88]
test eax, eax
je 0x67888141
mov eax, 1
jmp 0x67888143
xor eax, eax
mov ecx, 3
push 0xff00ff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x54]
push ecx
push 2
push eax
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x8c]
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_const___unsigned_long_int_
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
sub eax, edx
mov edi, 0x17
cmp eax, 0x1b
jge 0x678881bc
mov edi, 0x11
cmp eax, 0xf
jge 0x678881c6
mov edi, 0xd
mov eax, dword [esp + 0x84]
cmp eax, 0xf060
jne 0x678881db
mov esi, str.CLOSE
jmp 0x678881fa
cmp eax, 0xf020
jne 0x678881e9
mov esi, str.MINIMIZE
jmp 0x678881fa
cmp eax, 0xf030
mov esi, str.MAXIMIZE
je 0x678881fa
mov esi, str.RESTORE
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::CString_4
push edi
push esi
lea eax, [esp + 0x98]
push str.FRAMECAPTION_s_i
push eax
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0xa0]
add esp, 0x10
push ecx
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov ebx, eax
push 5
lea edx, [esp + 0x14]
push ebp
push edx
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
mov esi, ebp
push 0xff00ff
sub esi, ecx
mov ecx, dword [esp + 0x1c]
mov edi, ecx
sub eax, ecx
sub edi, edx
add eax, edx
add eax, dword [esp + 0x78]
cdq
sub eax, edx
mov edx, dword [esp + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x18]
sub eax, ebp
add eax, edx
mov edx, dword [esp + 0x7c]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x48], eax
add esi, eax
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
sar ecx, 1
lea eax, [esp + 0x34]
mov dword [esp + 0x44], ecx
push eax
mov eax, dword [esp + 0x1c]
add ecx, edi
sub esp, 0x10
mov dword [esp + 0x60], ecx
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
lea eax, [esp + 0x58]
push eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], ebp
mov ecx, dword [esp + 0x8c]
push ecx
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
lea ecx, [esp + 0x90]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 0x24