Function at 0x4088c0
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x459ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 1
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [edi + 0xb4]
mov ebp, dword [esp + 0x78]
xor ecx, ecx
mov byte [esp + 0x70], 2
mov dword [esp + 0x10], ecx
test edx, edx
je 0x408b8d
mov eax, dword [edi + 0xb8]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x408b8d
mov eax, dword [edi + 0xb4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x408b8d
cmp dword [esi], ebp
je 0x408937
inc ecx
jmp 0x408904
mov edx, dword [esp + 0x80]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x7c]
mov dword [esi + 0x18], ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edx
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 8]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40898a
call fcn.004092f0
test eax, eax
je 0x408985
mov edx, dword [eax]
push eax
call dword [edx + 0x84]
jmp 0x408987
xor eax, eax
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40899b
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x28]
test eax, eax
jne 0x4089ba
call fcn.00406030
test eax, eax
je 0x4089b6
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
jmp 0x4089b8
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4089e3
mov eax, dword [esp + 0x84]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x4089e3
call fcn.00406030
test eax, eax
je 0x4089e3
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x58]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x408b91
lea ecx, [esp + 0x38]
call fcn.00456236
push 0
push 0
push 0
push str.DISPLAY
mov byte [esp + 0x80], 3
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CDC::Attach
lea edx, [esp + 0x18]
mov ecx, edi
push edx
push ebp
call fcn.00408440
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov ecx, dword [esi + 0x24]
mov ebp, esp
add eax, eax
sub eax, edx
mov dword [ebp], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov ebx, dword [ecx]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 0xc], eax
call dword [ebx + 8]
mov eax, dword [esi + 0x10]
test al, 1
je 0x408a75
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x3c]
push 0x65
push 5
mov edx, dword [ecx]
push 2
push eax
lea eax, [esp + 0x68]
jmp 0x408a9c
mov ecx, dword [esi + 0x24]
push 0x65
test al, 2
mov edx, dword [ecx]
je 0x408a8f
mov eax, dword [esp + 0x40]
push 6
push 2
push eax
lea eax, [esp + 0x68]
jmp 0x408a9c
mov eax, dword [esp + 0x40]
push 4
push 2
push eax
lea eax, [esp + 0x68]
push eax
call dword [edx + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::DeleteDC
mov ecx, dword [edi + 0xb4]
test ecx, ecx
jne 0x408ac3
xor eax, eax
jmp 0x408ace
mov eax, dword [edi + 0xb8]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x10]
lea ecx, [edx + 1]
cmp ecx, eax
jae 0x408b7d
mov eax, dword [edi + 0xb4]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x408b7d
mov eax, dword [ebx + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408b7d
mov ecx, dword [esi + 0x20]
mov dword [esi + 0xc], ecx
mov ecx, edi
call fcn.00407f20
mov eax, dword [ebx + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x10]
test al, 8
je 0x408b4e
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
sub edx, ebp
add edx, ecx
cmp eax, edx
jg 0x408b5a
mov ecx, dword [ebx + 0x14]
push 0
push ecx
jmp 0x408b60
test al, 0x10
je 0x408b5a
mov edx, dword [ebx + 0x14]
push 0
push edx
jmp 0x408b60
mov eax, dword [ebx + 0x14]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edx
add ecx, 8
mov dword [esi + 0xc], ecx
mov ecx, edi
call fcn.00407f20
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 2
call sub.MFC42u.DLL_CDC::CDC
jmp 0x408b91
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x70], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x84]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0x14