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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449778
push eax
mov eax, dword [0x45a3d8]
mov dword fs:[0], esp
sub esp, 0x4c
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x417945
mov ecx, 0x45a160
call fcn.0042e670
mov byte [esp + 0x18], al
mov ecx, 0x45a160
mov eax, dword [esp + 0x18]
push eax
call fcn.00427ff0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x417945
mov ecx, esi
call fcn.0041a660
mov ecx, esi
call fcn.0041a650
mov edx, dword [esi + 0x4720]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [ebx + 0x258]
mov dword [esp + 0x5c], 0
test al, al
jle 0x41774b
lea eax, [ebx + 0x78]
mov ecx, 0x45a160
push eax
call fcn.004283a0
test al, al
jne 0x41774b
movsx ecx, byte [ebx + 0x258]
push ecx
lea edx, [esp + 0x10]
push 0x457be4
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push edi
lea eax, [esp + 0x10]
push 2
push eax
push ebx
mov ecx, esi
call fcn.0041a760
mov al, byte [ebx + 0x258]
test al, al
jle 0x4178ee
lea edi, [ebx + 0x78]
mov ecx, 0x45a160
push edi
call fcn.004283a0
test al, al
je 0x4178ee
push 0
mov ecx, esi
call fcn.00418740
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00418610
test eax, eax
je 0x4177ae
mov ecx, esi
call fcn.00418660
neg eax
sbb eax, eax
and eax, 6
add eax, 0xe
mov dword [esp + 0x18], eax
jmp 0x4177b6
mov dword [esp + 0x18], 0xc
movsx ecx, byte [ebx + 0x258]
push ebp
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call fcn.00418a90
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push 2
call fcn.0041a690
mov ecx, esi
call fcn.004186d0
mov ebp, eax
mov eax, dword [esp + 0x44]
mov ecx, 0xfffffff6
sub ecx, eax
add ebp, ecx
mov ecx, esi
call fcn.00418610
test eax, eax
jne 0x4177fd
sub ebp, 0x6e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub edx, eax
cmp edx, ebp
jle 0x417811
mov dword [esp + 0x10], eax
jmp 0x417832
mov eax, dword [esp + 0x44]
mov ecx, esi
add eax, 0xa
mov dword [esp + 0x10], eax
call fcn.00418610
test eax, eax
jne 0x417832
mov ecx, dword [esp + 0x44]
add ecx, 0x6e
mov dword [esp + 0x10], ecx
mov ecx, esi
call fcn.004186b0
mov ebp, dword [esp + 0x30]
mov ecx, esi
sub ebp, eax
sub ebp, 2
call fcn.004187a0
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], 0
sub eax, ecx
mov cl, byte [ebx + 0x258]
sub eax, edx
sub eax, 0xd2
test cl, cl
mov dword [esp + 0x28], eax
jle 0x4178d5
mov ebx, dword [esp + 0x10]
push edi
mov ecx, 0x45a160
call fcn.004283a0
test al, al
je 0x4178ae
push 0
push 0
push 0
push 0
push edi
mov ecx, 0x45a160
call fcn.004283a0
mov ecx, dword [esp + 0x34]
movsx eax, al
push eax
push ecx
push ebp
push ebx
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__]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add ebx, ecx
movsx ecx, byte [edx + 0x258]
inc eax
add edi, 8
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x417876
mov eax, dword [esp + 0x28]
mov ebx, edx
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
sub edx, ebp
add edx, edi
pop ebp
cmp edx, eax
jle 0x4178ee
mov byte [esi + 0x1c], 0
mov ecx, 0x45a160
call fcn.0042e670
mov ecx, dword [0x464250]
pop edi
cmp ecx, eax
jne 0x41790c
mov eax, dword [0x464240]
test eax, eax
je 0x41792a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41791c
lea eax, [ebx + 0x45c]
push eax
jmp 0x417923
lea ecx, [ebx + 0x268]
push ecx
mov ecx, esi
call fcn.00418f40
push 2
push ebx
mov ecx, esi
call fcn.0041ab90
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret