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

Disassembly:
push 0xffffffffffffffff
push 0x45c87b
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, 0x4658b0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0x466aa8
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0x466a94
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.00413870
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 0x406390
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 0x4063ca
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 0x406423
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 0x406441
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 0x4067a1
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 0x40645f
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], eax
mov ecx, edx
jmp 0x40646e
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 0x406788
push 1
call sub.MFC71.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x24]
test eax, eax
push 0x465798
je 0x4065a6
mov ebp, dword [esp + 0x18]
add ebp, 0xc
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x406554
lea ecx, [esp + 0x18]
push ecx
call fcn.00413800
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 0x406533
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.004061d0
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 0x406597
fild dword [esp + 0x1c]
fldlg2
fxch st(1)
fyl2x
fadd dword [0x465808]
fmul dword [0x466ac4]
fadd dword [0x466ac0]
call fcn.0045b73c
mov dword [esp + 0x1c], eax
push 2
jmp 0x406681
mov dword [esp + 0x1c], 0x10
push 2
jmp 0x406681
mov edi, dword [esp + 0x18]
add edi, 0xc
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40664e
lea edx, [esp + 0x30]
push edx
call fcn.00413800
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 0x406630
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.004061d0
fild dword [esp + 0x18]
fidiv dword [esp + 0x20]
fstp dword [esp + 0x18]
fild dword [esp + 0x1c]
fldlg2
fxch st(1)
fyl2x
fadd dword [0x465808]
fmul dword [0x466ac4]
fadd dword [0x466ac0]
call fcn.0045b73c
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 0x4066af
neg ecx
mov edi, 1
test cl, 1
je 0x4066bc
imul edi, edx
shr ecx, 1
test ecx, ecx
je 0x4066c9
mov ebp, edx
imul edx, ebp
jmp 0x4066b4
test eax, eax
jge 0x4066db
mov eax, 1
cdq
idiv edi
mov dword [esp + 0x1c], eax
jmp 0x4066df
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 0x406710
inc eax
jmp 0x406692
cdq
mov ecx, 3
idiv ecx
push eax
push 0xa
mov edi, edx
call fcn.00406210
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
add esp, 8
call fcn.0045b73c
imul eax, dword [esp + edi*4 + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x406760
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x406760
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40680d
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
cmp edi, dword [eax + 0x14]
jge 0x406820
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, 0x46581c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 3
mov dword [esp + 0x3c], esi
call fcn.0045ab26
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 2
mov dword [esp + 0x44], esi
call fcn.0045ab26
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 1
mov dword [esp + 0x4c], esi
call fcn.0045ab26
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
mov dword [esp + 0x34], esi
call fcn.0045ab26
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 0x40677d
mov edi, ecx
push edi
lea eax, [esp + 0x14]
push 0x466abc
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4068b9
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.0045b73c
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 0x406959
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x78], eax
jmp 0x406760
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 [0x466ac4]
call fcn.0045b73c
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffffe
dec ecx
cmp eax, ecx
mov edx, eax
jg 0x4068f1
mov edx, ecx
lea edi, [ebx - 0xb]
cmp edi, edx
jl 0x406900
cmp eax, ecx
mov edi, eax
jg 0x406900
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.0045b73c
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 0x406893
mov edx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x78], eax
jmp 0x406760