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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5729c0
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [esp + 0x10]
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x69abd0]
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xec]
mov edi, dword [sym.imp.USER32.dll_InflateRect]
test eax, eax
je 0x418730
mov ecx, dword [esi + 0x78]
xor eax, eax
cmp ecx, eax
je 0x418725
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], vtable.CBrush.0
mov dword [esp + 0x44], eax
mov eax, dword [0x69abc4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov edx, dword [ebp + 4]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x44], 0xffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 1
je 0x418788
mov edx, dword [0x69abcc]
mov eax, dword [0x69abc8]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CDC::Draw3dRect
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [0x69abd4]
mov ecx, dword [0x69abd8]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
call sub.MFC42.DLL_CDC::Draw3dRect
push 1
lea eax, [esp + 0x20]
push 1
push eax
call edi
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov ecx, esi
call fcn.004181a0
mov eax, dword [esi + 0x4c]
xor ebx, ebx
test eax, eax
jle 0x4187f1
mov eax, dword [esi + 0x48]
xor edi, edi
test eax, eax
jle 0x4187e9
cmp ebx, dword [esi + 0x70]
jne 0x4187ca
cmp edi, dword [esi + 0x6c]
jne 0x4187ca
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
push edi
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
push ebp
mov ecx, esi
call dword [edx + 0xc8]
jmp 0x4187e1
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
push edi
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
push ebp
mov ecx, esi
call dword [edx + 0xc4]
mov eax, dword [esi + 0x48]
inc edi
cmp edi, eax
jl 0x4187a7
mov eax, dword [esi + 0x4c]
inc ebx
cmp ebx, eax
jl 0x41879e
mov eax, dword [esi + 0x80]
pop ebx
test eax, eax
je 0x4188a6
mov eax, dword [esi + 0x58]
mov ecx, dword [esp + 0x30]
add eax, 2
mov edx, dword [esp + 0x2c]
imul eax, dword [esi + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
add eax, 2
mov dword [esp + 0xc], edx
mov edx, dword [0x69abd4]
mov dword [esp + 0x18], eax
push 0xffffff
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Draw3dRect
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4188a6
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x70]
cmp ecx, eax
jne 0x41888c
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x6c]
cmp edx, ecx
jne 0x41888c
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x34]
push eax
push ecx
push ebp
mov ecx, esi
call dword [edx + 0xc8]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
mov ecx, dword [esi + 0x54]
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x34]
push eax
push ecx
push ebp
mov ecx, esi
call dword [edx + 0xc4]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 8