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

Disassembly:
push 0xffffffffffffffff
push 0x45b20b
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 + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 2
mov dword [esp + 0x64], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
xor ebx, ebx
mov eax, 0x464888
mov dword [esp + 0x70], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0x465a80
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0x465a6c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x78]
push 1
mov ecx, esi
mov byte [esp + 0x74], 4
call sub.MFC71.DLL_CDC::SetBkMode
push ebx
mov ecx, esi
call sub.MFC71.DLL_CDC::SetTextAlign
mov ecx, dword [edi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
push 0xd
lea ecx, [esp + 0x40]
call fcn.00413780
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x50]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [edi + 8]
push eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x48]
call sub.MFC71.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x84]
mov eax, dword [esi]
sub ebp, ecx
mov edi, ebx
sub edi, edx
xor edx, edx
cmp edi, ebp
setg dl
push 8
mov ecx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x406340
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
lea eax, [ebx + 1]
push eax
mov eax, dword [esp + 0x80]
inc ecx
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40637a
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
lea edx, [esp + 0x54]
je 0x4063d3
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::MoveTo
mov eax, dword [esp + 0x84]
push ebx
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::LineTo
cmp edi, 0x10
jge 0x4063f1
mov edx, dword [esi]
push 8
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x2c]
mov edx, dword [esi]
push 0xd
mov ecx, esi
call dword [edx + 0x2c]
jmp 0x406751
mov ecx, dword [esp + 0x7c]
push ebx
push ecx
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::MoveTo
mov eax, dword [esp + 0x84]
push ebx
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
cmp eax, edx
jle 0x40640f
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], eax
mov ecx, edx
jmp 0x40641e
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], edx
sub eax, edx
cdq
mov dword [esp + 0x78], ecx
neg ecx
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov ecx, esi
je 0x406738
push 1
call sub.MFC71.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x24]
test eax, eax
push 0x464770
je 0x406556
mov ebp, dword [esp + 0x18]
add ebp, 0xc
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x406504
lea ecx, [esp + 0x18]
push ecx
call fcn.00413710
add esp, 4
mov ecx, eax
mov byte [esp + 0x70], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x10
push 6
push 0x11
push 4
push 1
push 0
push 0
push 0
push 0x190
push 0x384
push 0x384
push 0
push 0xe
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::Attach
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 6
mov ecx, esi
call sub.MFC71.DLL_CDC::SetTextAlign
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4064e3
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, edi
mov edi, dword [esp + 0x80]
cdq
sub eax, edx
sar eax, 1
push ebp
add eax, edi
push eax
mov eax, dword [esp + 0x84]
push eax
mov ecx, esi
call fcn.00406180
fild dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
test eax, eax
fidiv dword [esp + 0x20]
fstp dword [esp + 0x18]
je 0x406547
fild dword [esp + 0x1c]
fldlg2
fxch st(1)
fyl2x
fadd dword [0x4647e0]
fmul dword [0x465a9c]
fadd dword [0x465a98]
call fcn.0045a0cc
mov dword [esp + 0x1c], eax
push 2
jmp 0x406631
mov dword [esp + 0x1c], 0x10
push 2
jmp 0x406631
mov edi, dword [esp + 0x18]
add edi, 0xc
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x4065fe
lea edx, [esp + 0x30]
push edx
call fcn.00413710
add esp, 4
mov ecx, eax
mov byte [esp + 0x70], 6
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x10
push 6
push 0x11
push 4
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x12
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::Attach
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 6
mov ecx, esi
call sub.MFC71.DLL_CDC::SetTextAlign
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4065e0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x80]
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x7c]
push edi
sar eax, 1
push ecx
add eax, edx
push eax
mov ecx, esi
call fcn.00406180
fild dword [esp + 0x18]
fidiv dword [esp + 0x20]
fstp dword [esp + 0x18]
fild dword [esp + 0x1c]
fldlg2
fxch st(1)
fyl2x
fadd dword [0x4647e0]
fmul dword [0x465a9c]
fadd dword [0x465a98]
call fcn.0045a0cc
mov dword [esp + 0x1c], eax
push 0xe
mov ecx, esi
call sub.MFC71.DLL_CDC::SetTextAlign
fild dword [esp + 0x1c]
xor eax, eax
fstp qword [esp + 0x54]
mov dword [esp + 0x20], eax
cdq
mov ecx, 3
idiv ecx
test eax, eax
mov dword [esp + 0x30], edx
mov edx, 0xa
mov ecx, eax
jge 0x40665f
neg ecx
mov edi, 1
test cl, 1
je 0x40666c
imul edi, edx
shr ecx, 1
test ecx, ecx
je 0x406679
mov ebp, edx
imul edx, ebp
jmp 0x406664
test eax, eax
jge 0x40668b
mov eax, 1
cdq
idiv edi
mov dword [esp + 0x1c], eax
jmp 0x40668f
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
mov edx, dword [esp + 0x38]
fimul dword [esp + edx*4 + 0x64]
add esp, 8
fmul dword [esp + 0x18]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 5
mov eax, dword [esp + 0x20]
jp 0x4066c0
inc eax
jmp 0x406642
cdq
mov ecx, 3
idiv ecx
push eax
push 0xa
mov edi, edx
call fcn.004061c0
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
add esp, 8
call fcn.0045a0cc
imul eax, dword [esp + edi*4 + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x406710
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x406710
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4067bd
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
cmp edi, dword [eax + 0x14]
jge 0x4067d0
push 2
mov ecx, esi
call sub.MFC71.DLL_CDC::SetBkMode
mov ecx, esi
mov eax, dword [esi]
push 8
call dword [eax + 0x2c]
mov edx, dword [esi]
mov ecx, esi
push 5
call dword [edx + 0x2c]
mov eax, dword [esi]
mov ecx, esi
push 0xd
call dword [eax + 0x2c]
mov esi, 0x4647f4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 3
mov dword [esp + 0x3c], esi
call fcn.004594a6
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 2
mov dword [esp + 0x44], esi
call fcn.004594a6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 1
mov dword [esp + 0x4c], esi
call fcn.004594a6
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
mov dword [esp + 0x34], esi
call fcn.004594a6
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
cmp ecx, dword [edx + 0x14]
jg 0x40672d
mov edi, ecx
push edi
lea eax, [esp + 0x14]
push 0x465a94
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x406869
mov ecx, dword [esp + 0x28]
add edi, ecx
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
lea ebp, [ebx - 6]
fmul dword [esp + 0x18]
call fcn.0045a0cc
mov edx, dword [esp + 0x7c]
mov ebx, dword [esi]
lea ecx, [esp + 0x10]
lea edi, [eax + edx]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebp
push edi
mov ecx, esi
call dword [ebx + 0x64]
mov ebx, dword [esp + 0x88]
push ebx
push edi
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::MoveTo
push ebp
push edi
mov ecx, esi
call sub.MFC71.DLL_CDC::LineTo
mov eax, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x78]
je 0x406909
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x78], eax
jmp 0x406710
mov eax, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
fmul dword [esp + 0x18]
fst dword [esp + 0x20]
fadd dword [0x465a9c]
call fcn.0045a0cc
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffffe
dec ecx
cmp eax, ecx
mov edx, eax
jg 0x4068a1
mov edx, ecx
lea edi, [ebx - 0xb]
cmp edi, edx
jl 0x4068b0
cmp eax, ecx
mov edi, eax
jg 0x4068b0
mov edi, ecx
mov ebp, dword [esp + 0x84]
mov ebx, dword [esi]
lea ecx, [esp + 0x10]
add ebp, 0xfffffffa
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push edi
push ebp
mov ecx, esi
call dword [ebx + 0x64]
fld dword [esp + 0x20]
call fcn.0045a0cc
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edi, ebx
sub edi, eax
push edi
push ecx
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::MoveTo
push edi
push ebp
jmp 0x406843
mov edx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x78], eax
jmp 0x406710