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

Disassembly:
push 0xffffffffffffffff
push 0x412215
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x58]
push edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], edx
call fcn.0040973e
mov ebx, dword [esp + 0x104]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0xfc], ebp
jne 0x405e0d
xor eax, eax
jmp 0x405e10
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
lea ecx, [esp + 0x44]
call fcn.00401670
mov dword [esp + 0x44], 0x413634
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
sub eax, ecx
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [ebx + 4]
sub ecx, edi
push ecx
push eax
mov byte [esp + 0x108], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], eax
call fcn.00401670
mov dword [esp + 0x54], 0x4137e8
push 0xffffff
mov byte [esp + 0x100], 2
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push 1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SetBkMode
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], 0x4137d4
mov ecx, dword [esi + 0x5c]
mov byte [esp + 0xfc], 3
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SetTextColor
push 0x419060
push ebp
mov eax, dword [esi + 0x58]
push ebp
push ebp
mov ecx, dword [esi + 0x54]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x94], eax
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::ScreenToClient
push 0xd0d0d0
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CBrush::CBrush
cmp eax, ebp
jne 0x405f5f
xor eax, eax
jmp 0x405f62
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
lea ecx, [esp + 0x9c]
push eax
push ecx
push edx
call edi
mov dword [esp + 0x34], 0x413620
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 0xffffffffffffffff
lea eax, [esp + 0xa0]
push 0xffffffffffffffff
push eax
mov byte [esp + 0x108], 3
call dword [sym.imp.USER32.dll_InflateRect]
push 0xffffff
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CBrush::CBrush
cmp eax, ebp
jne 0x405fc1
xor eax, eax
jmp 0x405fc4
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x9c]
push eax
push ecx
push edx
call edi
mov dword [esp + 0x34], 0x413620
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 0x20]
push ebp
push ebp
push 0x1200
push eax
mov byte [esp + 0x10c], 3
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [eax + 1]
mov dword [esp + 0x74], eax
cmp ecx, ebp
jle 0x406395
jmp 0x40601b
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
mov ebx, dword [esi + 0x48]
cmp ebp, eax
mov dword [esp + 0x30], ecx
jne 0x406054
lea edx, [esp + 0x10]
dec eax
push edx
push eax
mov eax, dword [esi + 0x20]
push 0x1207
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
jmp 0x406069
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x1207
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x80]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x78], eax
jg 0x4061a5
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x40], 0
inc ecx
mov dword [esp + 0x3c], 0x4137e8
mov dword [esp + 0x88], ecx
xor edx, edx
mov eax, edi
mov dh, bl
and eax, 0xff
mov dl, byte [esp + 0x30]
mov byte [esp + 0xfc], 6
shl edx, 8
or edx, eax
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x7c]
and eax, edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 0x4c]
mov edx, dword [esp + 0x30]
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [esp + 0x30], edx
test edi, edi
jge 0x406143
xor edi, edi
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x406153
mov dword [esp + 0x30], 0
test ebx, ebx
jge 0x406159
xor ebx, ebx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x3c], 0x413620
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xfc], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
inc eax
mov byte [esp + 0xfc], 3
cmp eax, ecx
mov dword [esp + 0x3c], 0x41360c
mov dword [esp + 0x78], eax
jle 0x4060b8
test ebp, ebp
je 0x40624d
push 0xffffff
push 1
push 0
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x8c]
mov byte [esp + 0xfc], 8
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x10]
add edx, 2
push edx
lea ecx, [esp + 0xb0]
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add edx, 0xfffffffe
lea ecx, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [esp + 0x8c], 0x413620
lea ecx, [esp + 0x8c]
mov byte [esp + 0xfc], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0xfc], 3
mov dword [esp + 0x8c], 0x41360c
mov ebx, dword [esp + 0x74]
cmp ebp, ebx
jge 0x406380
push 0xd0d0d0
push 1
push 0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc], 0xa
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
add edx, 2
dec eax
push edx
lea ecx, [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edx, 0xfffffffe
dec eax
push edx
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::LineTo
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esi + 0x78]
mov edi, 1
mov al, byte [ecx + ebp]
cmp al, 0x30
jne 0x4062e1
mov eax, dword [esp + 0x10]
xor edi, edi
add eax, 0xf
mov dword [esp + 0x10], eax
jmp 0x406300
cmp al, 0x31
jne 0x4062ec
mov edi, 1
jmp 0x406300
cmp al, 0x32
jne 0x406300
mov eax, dword [esp + 0x18]
mov edi, 2
sub eax, 0xf
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xbc]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x14]
sub eax, ecx
sub eax, edx
lea ecx, [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x68]
push edi
lea eax, [edx + ebp*4]
lea edx, [esp + 0x14]
push edx
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 0x70]
mov dword [esp + 0x34], 0x413620
lea ecx, [esp + 0x34]
mov byte [esp + 0xfc], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0xfc], 3
mov dword [esp + 0x34], 0x41360c
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jl 0x406017
mov ebx, dword [esp + 0x104]
xor ebp, ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], 0x4137e8
push 0xff00ff
mov byte [esp + 0x100], 0xc
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x6c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x5c]
and eax, edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
sub ecx, eax
lea eax, [esp + 0x20]
sub edx, edi
mov edi, dword [esp + 0x24]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edi
push ebp
push ebp
push eax
push ecx
mov ecx, dword [ebx + 4]
push edx
push ebp
push ebp
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x98]
cmp eax, ebp
jne 0x40643e
xor eax, eax
jmp 0x406441
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::DeleteDC
mov edi, 0x413620
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xfc], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x41360c
mov dword [esp + 0x4c], edi
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xfc], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xfc], 0xf
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x54], esi
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0xfc], 0x10
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], esi
mov dword [esp + 0xfc], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf0
ret 4