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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x679806e8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor edx, edx
push ebx
mov ebx, ecx
push ebp
push esi
cmp ebx, edx
push edi
je 0x67817e93
cmp dword [ebx + 0x20], edx
je 0x67817e93
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 4]
add edi, eax
mov eax, dword [esp + 0x60]
mov ebp, eax
sub ebp, ecx
cmp edi, ebp
jg 0x67817e93
test byte [esp + 0x6c], 1
jne 0x67817cdc
mov edx, dword [esp + 0x68]
push edx
push esi
mov esi, dword [esp + 0x5c]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
jmp 0x67817e93
cmp dword [ebx + 0x24], edx
je 0x67817d2a
mov edi, dword [esi]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x74]
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edx + 8], ecx
mov ecx, ebx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edx
push eax
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
jmp 0x67817e93
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x67995a04
mov edi, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov ecx, dword [eax]
sub edi, ebp
mov ebp, dword [eax + 8]
sub ebp, ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], edx
cmp eax, edx
jne 0x67817d59
xor eax, eax
jmp 0x67817d5c
mov eax, dword [eax + 4]
lea ecx, [esp + 0x64]
push ecx
push edi
push ebp
push eax
call sym.MfcHlpr520.dll_public:_static_struct_HBITMAP______cdecl_CMHPImageManager::Create32BPPDIBSection_struct_HDC_____int__int__unsigned_char___
add esp, 0x10
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x30]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCompatibleDC::constructor_class_CDC___class_CBitmap__
xor eax, eax
mov byte [esp + 0x44], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], ebp
cmp eax, 0xffffffff
mov dword [esp + 0x24], edi
je 0x67817db8
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [edx + 8], eax
lea eax, [esp + 0x48]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_
imul ebp, edi
test ebp, ebp
jle 0x67817e3b
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
cmp ecx, 0xffffffff
je 0x67817e27
cmp dword [eax], ecx
jne 0x67817e27
mov dword [eax], 0
jmp 0x67817e2d
or dword [eax], 0xff000000
mov eax, dword [esp + 0x64]
add eax, 4
dec ebp
mov dword [esp + 0x64], eax
jne 0x67817e12
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, esi
test ecx, ecx
je 0x67817e54
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
call sym.MfcHlpr520.dll_class_CMHPImageManager____cdecl_MHPImageManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPImageManager::AlphaBlend_struct_HDC_____class_CRect_const___struct_HDC_____class_CRect_const__const
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCompatibleDC::destructor_void_
mov dword [esp + 0x10], 0x67995a18
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 0x24