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

Disassembly:
push 0xffffffffffffffff
push 0x4069a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [esp + 0x178]
push ebx
push ebp
push esi
mov edx, dword [eax + 8]
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
lea eax, [esp + 0xa0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [edi + 0xc4]
test eax, eax
je 0x403fb5
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x1a8]
push eax
lea edx, [esp + 0xa4]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [edi + 0xe0]
cmp eax, 4
ja case.default.0x403fda
jmp dword [eax*4 + 0x40473c]
mov dword [edi + 0xe0], 0
jmp case.default.0x403fda
mov eax, 0x32
jmp 0x404007
mov eax, 0x12c
jmp 0x404007
mov eax, 0x4b0
jmp 0x404007
mov eax, 0xfa0
mov ecx, dword [edi + 0x90]
mov dword [edi + 0xe0], eax
add ecx, eax
mov dword [edi + 0x90], ecx
mov ecx, dword [edi + 0x90]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x118]
push 0x4090f4
push edx
call ebx
mov eax, dword [edi + 0xe0]
lea ecx, [esp + 0xbc]
push eax
push 0x4090f4
push ecx
call ebx
mov edx, dword [esi]
add esp, 0x18
lea eax, [edi + 0xd4]
mov ecx, esi
push eax
lea ebp, [edi + 0xdc]
call dword [edx + 0x30]
push 1
mov ecx, esi
mov dword [ebp], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esi]
push 0x1a3fb
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 0
mov ecx, dword [eax - 8]
push ecx
push eax
push pe_nt_image_headers32
push 0x14
mov ecx, esi
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040623c
test ebp, ebp
je 0x4040d2
mov eax, dword [esi + 4]
push ebp
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
lea eax, [edi + 0xcc]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [ebp], eax
mov eax, dword [esi]
push 0x264fe
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 1
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x217
push 0xe6
mov ecx, esi
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040623c
mov ecx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [edi + 0xe4]
cmp eax, 4
ja case.default.0x40414f
jmp dword [eax*4 + 0x404750]
mov dword [edi + 0xe4], 0
jmp case.default.0x40414f
mov eax, 0x32
jmp 0x40417c
mov eax, 0x12c
jmp 0x40417c
mov eax, 0x4b0
jmp 0x40417c
mov eax, 0xfa0
mov ecx, dword [edi + 0xb8]
mov dword [edi + 0xe4], eax
add ecx, eax
mov dword [edi + 0xb8], ecx
mov edx, dword [edi + 0xb8]
lea eax, [esp + 0x114]
push edx
push 0x4090f4
push eax
call ebx
mov ecx, dword [edi + 0xe4]
lea edx, [esp + 0xbc]
push ecx
push 0x4090f4
push edx
call ebx
mov edx, dword [esi]
add esp, 0x18
lea eax, [edi + 0xd4]
mov ecx, esi
push eax
call dword [edx + 0x30]
push 1
mov ecx, esi
mov dword [ebp], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esi]
push 0xff
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 2
mov ecx, dword [eax - 8]
push ecx
push eax
push pe_nt_image_headers32
push 0x29e
mov ecx, esi
call dword [edx + 0x64]
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], ebx
call fcn.0040623c
test ebp, ebp
je 0x40423d
mov eax, dword [esi + 4]
push ebp
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi]
lea eax, [edi + 0xcc]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [ebp], eax
mov eax, dword [esi]
push 0x2a8fe
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x180], 3
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x217
push 0x208
mov ecx, esi
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], ebx
call fcn.0040623c
mov ecx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1a0]
mov eax, 0x5a
sub edx, ecx
mov dword [esp + 0x30], 0xffffff
mov dword [esp + 0x34], 0xff0000
mov dword [esp + 0x38], 0xff00
mov dword [esp + 0x3c], 0xff
mov dword [esp + 0x40], 0xffff
mov dword [esp + 0x44], 0xffff00
mov dword [esp + 0x48], 0x800000
mov dword [esp + 0x4c], 0x800080
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x404316
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 0x14]
mov ebp, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
mov ebx, 0x19
mov dword [esp + 0x10], edx
lea ecx, [ebx - 0x14]
lea edx, [ebx + 0x271]
mov dword [esp + 0x70], ecx
lea ecx, [eax + 0x14]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x285]
mov dword [esp + 0x74], eax
mov dword [esp + 0x88], edx
mov edx, dword [ecx]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], eax
cmp byte [edx + ebp], 0
je 0x40441a
mov eax, dword [ecx]
xor ecx, ecx
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
lea ecx, [esp + 0x58]
push edx
call sub.MFC42.DLL_CBrush::CBrush
test eax, eax
je 0x40439b
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x58], 0x407bb0
lea ecx, [esp + 0x58]
mov dword [esp + 0x180], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x58], 0x407e98
mov eax, dword [edx]
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
mov ecx, edi
push edx
call fcn.00405340
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x34]
push eax
call fcn.004052c0
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dl, byte [ecx + ebp]
add ecx, ebp
test dl, dl
je 0x4044cb
xor edx, edx
mov dl, byte [ecx]
lea ecx, [esp + 0x24]
mov eax, dword [esp + edx*4 + 0x30]
push eax
call sub.MFC42.DLL_CBrush::CBrush
test eax, eax
je 0x404446
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x80]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x24], 0x407bb0
lea ecx, [esp + 0x24]
mov dword [esp + 0x180], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x24], 0x407e98
mov ecx, dword [eax]
mov dl, byte [ecx + ebp]
mov ecx, edi
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.00405340
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x34]
push ecx
mov ecx, edi
call fcn.004052c0
lea edx, [esp + 0x84]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov eax, dword [esp + 0x18]
add ebx, 0x14
inc ebp
cmp ebx, 0x91
jl 0x404331
mov edx, dword [esp + 0x14]
add eax, 0x14
add edx, 4
cmp eax, 0xaa
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x40430e
mov edx, dword [esp + 0x20]
test edx, edx
jbe 0x40471f
mov eax, dword [esp + 0x19c]
mov ebx, dword [esp + 0x198]
mov ecx, 0x46
sub ebx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jbe 0x4046fe
lea eax, [ecx + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add ebx, eax
mov eax, 0x1c7
mov dword [esp + 0x10], eax
lea edx, [eax - 0x132]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], edx
lea edx, [eax - 0x11e]
mov dword [esp + 0x98], edx
lea edx, [ecx + 0x14]
mov dword [esp + 0x9c], edx
lea edx, [eax - 0x14]
mov dword [esp + 0x60], edx
lea edx, [ecx + 0x14]
mov dword [esp + 0x6c], edx
mov edx, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov edx, dword [edx]
cmp byte [edx + ebp], 0
je 0x404639
mov eax, dword [ebx]
xor ecx, ecx
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x30]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CBrush::CBrush
test eax, eax
je 0x4045b8
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x24], 0x407bb0
lea ecx, [esp + 0x24]
mov dword [esp + 0x180], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [ebx]
xor eax, eax
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x24], 0x407e98
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x30]
push ecx
mov ecx, edi
call fcn.00405340
mov edx, dword [ebx]
push eax
xor eax, eax
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x34]
push ecx
mov ecx, edi
call fcn.004052c0
lea edx, [esp + 0x94]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
add edx, ebp
cmp byte [edx], 0
je 0x4046e6
xor eax, eax
mov al, byte [edx]
mov ecx, dword [esp + eax*4 + 0x30]
push ecx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CBrush::CBrush
test eax, eax
je 0x404663
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x50], 0x407bb0
lea ecx, [esp + 0x50]
mov dword [esp + 0x180], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x50], 0x407e98
mov edx, dword [ecx]
mov al, byte [edx + ebp]
mov ecx, dword [esp + eax*4 + 0x30]
push ecx
mov ecx, edi
call fcn.00405340
mov edx, dword [esp + 0x14]
push eax
xor ecx, ecx
mov eax, dword [edx]
mov cl, byte [eax + ebp]
mov edx, dword [esp + ecx*4 + 0x34]
mov ecx, edi
push edx
call fcn.004052c0
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
inc ebp
add eax, 0x14
cmp ebp, edx
mov dword [esp + 0x10], eax
jb 0x40454d
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0x14
add edx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x404529
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 0x24