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

Disassembly:
push 0xffffffffffffffff
push 0x4427a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov esi, ecx
mov dword [esp + 0x28], esi
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x40f3c2
push 0
push 0
push 0
push 0
lea eax, [esi + 0xb4]
push 0
push eax
push 0
push 0
push 0
lea ecx, [esi + 0x24]
call dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
mov edx, dword [esi + 0x148]
push ebx
push ebp
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ebp, [esi + 0x14c]
push 0xc0
mov ecx, ebp
call fcn.00433b80
mov edi, eax
push 0x68
mov ecx, ebp
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
call fcn.00433fc0
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ebx, edx
push 0xa0
mov ecx, ebp
sub ebx, eax
call fcn.00433fc0
sub ebx, eax
mov ecx, dword [edi + 0x10]
mov eax, ebx
push 0x66
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, ebp
inc eax
mov dword [esp + 0x1c], eax
call fcn.00433fe0
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ebx, edx
push 0x6b
mov ecx, ebp
sub ebx, eax
call fcn.00433fe0
sub ebx, eax
mov eax, ebx
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x10], 0
inc eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40f4d9
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test ecx, ecx
jle 0x40f4cc
mov esi, dword [edi + 0x10]
mov ebx, dword [edi + 0xc]
push 0
push 0
push 0
push 0
push 0
push edi
push 0x66
mov ecx, ebp
call fcn.00433fe0
imul esi, dword [esp + 0x28]
add eax, esi
mov ecx, ebp
push eax
push 0x68
call fcn.00433fc0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
imul ebx, esi
add eax, ebx
lea ecx, [edx + 0xb4]
push eax
push 0
call dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x40f470
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x40f460
push 0x6e
mov ecx, ebp
call fcn.00433b80
push 0
push 0
push 0
push 0
push 0
push eax
push 0x6e
mov ecx, ebp
lea ebx, [esi + 0xb4]
call fcn.00433fe0
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub ecx, edi
sub ecx, eax
mov eax, ecx
mov ecx, ebp
cdq
sub eax, edx
sar eax, 1
push eax
push 0x6e
call fcn.00433fc0
mov ecx, esi
mov edi, eax
call fcn.004118c0
sub eax, edi
mov edi, dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
cdq
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
push 0
call edi
push 0x65
mov ecx, ebp
call fcn.00433b80
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
mov ecx, ebx
call edi
push 0x66
mov ecx, ebp
call fcn.00433b80
test eax, eax
mov dword [esp + 0x18], eax
je 0x40f5e0
push 0x65
mov ecx, ebp
call fcn.00433b80
mov esi, dword [eax + 0xc]
push 0x67
mov ecx, ebp
call fcn.00433b80
mov edx, dword [eax + 0xc]
push 0x66
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.00433b80
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x14]
sub eax, esi
mov esi, dword [esp + 0x24]
sub eax, esi
xor esi, esi
cdq
idiv ecx
inc eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x40f5e0
push 0x65
mov ecx, ebp
call fcn.00433b80
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push 0
push 0
mov ecx, dword [edx + 0xc]
push 0
imul ecx, esi
push 0
push 0
push edx
add ecx, eax
push 0
push ecx
push 0
mov ecx, ebx
call edi
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x40f5ab
push 0x67
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [eax + 0xc]
push 0
mov esi, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push 0
sub eax, ecx
mov ecx, ebx
sub eax, esi
push eax
push 0
call edi
push 0x68
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [eax + 0x10]
push 0x65
mov dword [esp + 0x18], ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.00433fe0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub esi, edx
push 0x6a
mov ecx, ebp
sub esi, eax
call fcn.00433fe0
sub esi, eax
mov dword [esp + 0x10], 0
mov eax, esi
cdq
idiv dword [esp + 0x14]
mov esi, eax
inc esi
test esi, esi
jle 0x40f698
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
mov edx, dword [eax + 0x10]
push 0
push 0
push eax
push 0x65
mov ecx, ebp
mov dword [esp + 0x30], edx
call fcn.00433fe0
mov ecx, eax
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x28]
add ecx, eax
push ecx
push 0
push 0
mov ecx, ebx
call edi
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
mov dword [esp + 0x10], eax
jl 0x40f656
push 0x6a
mov ecx, ebp
call fcn.00433b80
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
push 0
push 0
push 0
sub edx, esi
push 0
push 0
sub edx, ecx
push eax
push edx
push 0
push 0
mov ecx, ebx
call edi
push 0x6b
mov ecx, ebp
call fcn.00433b80
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
push 0x6a
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.00433fc0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub esi, edx
push 0x6c
mov ecx, ebp
sub esi, eax
call fcn.00433fc0
sub esi, eax
mov dword [esp + 0x1c], 0
mov eax, esi
cdq
idiv dword [esp + 0x14]
inc eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x40f758
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push 0
push 0
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
push 0
push 0
push 0
push eax
sub edx, dword [esp + 0x40]
sub edx, ecx
mov ecx, ebp
push edx
push 0x6a
call fcn.00433fc0
imul esi, dword [esp + 0x38]
add eax, esi
mov ecx, ebx
push eax
push 0
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40f710
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x50dc]
test ecx, ecx
je 0x40f76a
push 0x69
jmp 0x40f76f
push 0xa0
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [eax + 0x10]
push 0x67
mov dword [esp + 0x18], ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.00433fe0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub esi, edx
push 0x6c
mov ecx, ebp
sub esi, eax
call fcn.00433fe0
sub esi, eax
mov dword [esp + 0x1c], 0
mov eax, esi
cdq
idiv dword [esp + 0x14]
add eax, 2
test eax, eax
mov dword [esp + 0x10], eax
jle 0x40f817
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
push 0
push 0
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
push 0
push 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
push 0
mov dword [esp + 0x34], ecx
push eax
push 0x67
mov ecx, ebp
sub esi, edx
call fcn.00433fe0
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x34]
lea edx, [eax + ecx - 3]
mov ecx, dword [esp + 0x38]
sub esi, ecx
push edx
push esi
push 0
mov ecx, ebx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40f7bb
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x50dc]
test ecx, ecx
je 0x40f829
push 0x6c
jmp 0x40f82e
push 0xa1
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
sub eax, esi
mov esi, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x44]
sub ecx, edx
push eax
sub ecx, esi
push ecx
push 0
mov ecx, ebx
call edi
push 0x70
mov ecx, ebp
call fcn.00433b80
push 0
push 0
push 0
push 0
push 0
push eax
push 2
push 0xa
push 0
mov ecx, ebx
call edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x58]
push 0x44e818
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], 0xfffffff4
mov dword [esp + 0x54], 0x190
mov byte [esp + 0x5b], 0x86
mov byte [esp + 0x5f], 2
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea eax, [esp + 0x84]
mov ecx, ebx
mov dword [esp + 0x78], 0xffffff
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
call dword [sym.imp.2DEngineDll.dll_public:_struct_IXHandler::_mimage::_log_font___thiscall_IXHandler::_mimage::get_logfont_void_]
mov ecx, 0x12
mov esi, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], 0x1dbef9
push ecx
push edx
mov ecx, ebx
call dword [sym.imp.2DEngineDll.dll_public:_struct_IXHandler::_mimage::_log_font___thiscall_IXHandler::_mimage::set_logfont_struct_IXHandler::_mimage::_log_font_const__]
mov ecx, 0x12
mov esi, eax
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
xor esi, esi
push 0x450918
lea eax, [esp + 0x24]
push 0x44e7fc
mov dword [esp + 0x124], esi
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], 0x23
call dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::text_int_const___int_const___char_const___int_const___int_const__]
lea edx, [esp + 0x3c]
lea eax, [esp + 0xcc]
push edx
push eax
mov ecx, ebx
call dword [sym.imp.2DEngineDll.dll_public:_struct_IXHandler::_mimage::_log_font___thiscall_IXHandler::_mimage::set_logfont_struct_IXHandler::_mimage::_log_font_const__]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x50dc], esi
je 0x40fc51
push 0x6d
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
push esi
push esi
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
sub ecx, edx
push 0x20
sub ecx, eax
sub ecx, 5
push ecx
push esi
mov ecx, ebx
call edi
push 0x71
mov ecx, ebp
call fcn.00433b80
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push esi
push esi
push esi
push esi
sub edx, ecx
push esi
push eax
sub edx, 0xf0
push 0xf5
push edx
push esi
mov ecx, ebx
call edi
push 0x72
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
push esi
sub ecx, edx
mov edx, dword [esp + 0x28]
push esi
push esi
push esi
sub ecx, edx
push esi
push eax
sub ecx, 8
push 0x76
push ecx
push esi
mov ecx, ebx
call edi
push 0x73
mov ecx, ebp
call fcn.00433b80
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
jmp 0x40fa7a
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov esi, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
push 0
mov dword [esp + 0x28], ecx
push eax
push 0x72
mov ecx, ebp
sub esi, edx
call fcn.00433fe0
mov ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x28]
lea edx, [eax + ecx + 0x76]
mov ecx, ebx
push edx
mov edx, dword [esp + 0x30]
sub esi, edx
sub esi, 8
push esi
push 0
call edi
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xd
mov dword [esp + 0x10], eax
jl 0x40fa76
push 0x74
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ecx, edx
push 0
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0xc]
push 0
push 0
push 0
mov dword [esp + 0x28], ecx
push eax
push 0x73
mov ecx, ebp
call fcn.00433fe0
lea edx, [eax + eax*2]
push 0x72
mov ecx, ebp
lea esi, [eax + edx*4]
call fcn.00433fe0
lea eax, [esi + eax + 0x76]
mov esi, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
sub eax, esi
mov ecx, ebx
sub eax, 8
push eax
push 0
call edi
push 0x72
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x24]
push 0
push 0
sub ecx, esi
push 0
push 0
sub ecx, edx
push 0
push eax
sub ecx, 8
push 0x179
push ecx
push 0
mov ecx, ebx
call edi
push 0x73
mov ecx, ebp
call fcn.00433b80
mov esi, eax
push 0x72
mov ecx, ebp
mov dword [esp + 0x1c], esi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], edx
call fcn.00433fe0
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], 0
sub eax, edx
sub eax, ecx
sub eax, 0x187
cdq
idiv dword [esp + 0x20]
inc eax
test eax, eax
mov dword [esp + 0x38], eax
jle 0x40fc0e
jmp 0x40fbac
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x10]
mov esi, dword [esp + 0x2c]
push 0
mov ecx, dword [eax + 0xc]
push 0
push 0
push 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
push 0
mov dword [esp + 0x28], ecx
push eax
push 0x72
mov ecx, ebp
sub esi, edx
call fcn.00433fe0
mov ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x28]
lea edx, [eax + ecx + 0x179]
mov ecx, ebx
push edx
mov edx, dword [esp + 0x30]
sub esi, edx
sub esi, 8
push esi
push 0
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40fba8
push 0x74
mov ecx, ebp
call fcn.00433b80
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0
sub ecx, ebp
mov ebp, dword [esp + 0x30]
push 0
push 0
sub ecx, 0xe
push eax
push ecx
mov ecx, dword [eax + 0xc]
sub edx, ecx
mov ecx, ebx
sub edx, ebp
sub edx, 8
push edx
push 0
call edi
mov eax, dword [esp + 0x34]
xor esi, esi
jmp 0x40fc57
mov edi, dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
push esi
push esi
lea ecx, [eax + 0x24]
mov dword [eax + 0x144], esi
call edi
mov ecx, dword [esp + 0x114]
pop edi
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret