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

Disassembly:
push 0xffffffffffffffff
push 0x481d73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], vtable.CFont.0
mov ebx, dword [esp + 0x130]
push 0x48
push 0x5a
push ebx
mov dword [esp + 0x134], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x80], eax
mov edi, 0x4a121c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
lea edx, [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x94], 0
shr ecx, 2
mov byte [esp + 0x95], 0
mov byte [esp + 0x96], 0
mov byte [esp + 0x97], 0
mov byte [esp + 0x98], 4
mov byte [esp + 0x99], 0
mov byte [esp + 0x9a], 0
mov byte [esp + 0x9b], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x3c]
call fcn.004725bb
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x40], 0x186a0
jge 0x4085d0
lea ecx, [esp + 0x54]
push ecx
push 4
push str.9999
jmp 0x4085dc
lea edx, [esp + 0x54]
push edx
push 5
push str.19999
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x58]
push 1
lea esi, [eax + ecx]
mov ecx, dword [esp + 0x78]
cdq
sub eax, edx
sub ecx, edi
mov edx, eax
mov eax, dword [esp + 0x74]
sar edx, 1
sub eax, edx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x64], eax
sub eax, esi
sub ecx, edi
push ebx
mov dword [esp + 0x50], edi
mov dword [ebp + 0x5c], esi
mov dword [esp + 0x74], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp + 0x70]
xor edi, edi
cmp ecx, edi
jle 0x408721
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov esi, eax
test esi, esi
jge 0x40864e
xor esi, esi
jmp 0x40865b
cmp esi, 0xff
jle 0x40865b
mov esi, 0xff
mov ecx, eax
test ecx, ecx
jge 0x408665
xor ecx, ecx
jmp 0x408672
cmp ecx, 0xff
jle 0x408672
mov ecx, 0xff
test eax, eax
jge 0x40867a
xor eax, eax
jmp 0x408686
cmp eax, 0xff
jle 0x408686
mov eax, 0xff
xor edx, edx
and esi, 0xff
mov dh, al
mov dl, cl
lea ecx, [esp + 0x30]
shl edx, 8
or edx, esi
push edx
push 1
push 0
call fcn.00472628
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x5c]
mov esi, eax
mov eax, dword [ebp + 0x60]
push 0
add eax, edi
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x64]
add edx, edi
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], 1
call fcn.00472612
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x40
mov byte [esp + 0x128], 0
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x70]
cmp edi, ecx
jl 0x40863d
push 0
push 2
push 0
lea ecx, [esp + 0x58]
call fcn.00472628
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
mov byte [esp + 0x128], 2
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x5c]
dec ecx
push 0
dec edx
push ecx
push edx
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x64]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
dec eax
inc ecx
push eax
push ecx
push ebx
call edi
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x64]
inc edx
inc eax
push edx
push eax
push ebx
call edi
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x5c]
inc ecx
dec edx
push ecx
push edx
push ebx
call edi
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x5c]
dec eax
dec ecx
push eax
push ecx
push ebx
call edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 6
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x707070
push 1
push 0
lea ecx, [esp + 0x4c]
call fcn.00472628
push 0x404040
push 1
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x134], 3
call fcn.00472628
xor ecx, ecx
mov byte [esp + 0x128], 4
mov dword [esp + 0x14], ecx
jmp 0x4087ee
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x6c]
imul eax, ecx
cdq
and edx, 0x3f
add eax, edx
mov esi, eax
mov eax, dword [ebp + 0x5c]
sar esi, 6
add esi, eax
mov eax, ecx
and eax, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
jne 0x4088b2
push ecx
lea edx, [esp + 0xc0]
push 0x4a1264
push edx
call fcn.004478fa
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0x40
jne 0x408871
mov edi, 0x4a2584
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
test byte [esp + 0x14], 7
jne 0x4088a4
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xbc]
push ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
jmp 0x4088be
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 0x60]
push 0
push edx
push esi
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
add eax, 4
push eax
push esi
push ebx
call edi
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x41
mov dword [esp + 0x14], eax
jl 0x4087ea
mov edx, dword [ebp + 0x40]
lea eax, [esp + 0xbc]
push edx
push 0x4a1264
push eax
call fcn.004478fa
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
fld qword [0x4895d8]
not ecx
dec ecx
add ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
call fcn.00447fc0
call fcn.00447b88
mov ecx, eax
mov eax, dword [ebp + 0x40]
cdq
idiv ecx
mov dword [esp + 0x1c], ecx
mov edi, eax
inc edi
push edi
call fcn.00415e60
mov esi, eax
mov eax, edi
cdq
idiv esi
add esp, 0x10
mov dword [esp + 0x1c], esi
mov ecx, eax
imul ecx, esi
cmp ecx, edi
jge 0x408978
inc eax
mov edx, eax
lea edi, [eax + eax]
imul edx, esi
imul edx, dword [esp + 0x10]
mov eax, edi
mov dword [ebp + 0x44], edx
imul eax, esi
cdq
sub eax, edx
mov dword [esp + 0x18], edi
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fild dword [ebp + 0x44]
fmul qword [0x4895d0]
fdivp st(1)
fcom qword [0x4895c8]
fst qword [esp + 0x5c]
fnstsw ax
test ah, 1
je 0x4089d3
fild dword [esp + 0x1c]
fdiv st(1)
call fcn.00447b88
fstp st(0)
fld qword [0x4895c8]
mov esi, eax
fst qword [esp + 0x5c]
mov eax, edi
imul eax, esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x4895c0]
fdiv st(1)
call fcn.00447b88
mov dword [ebp + 0x44], eax
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
fstp st(0)
mov dword [esp + 0x14], edi
jle 0x408b72
fild dword [esp + 0x18]
mov eax, dword [esp + 0x10]
neg esi
fstp qword [esp + 0x78]
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x14]
fimul dword [ebp + 0x70]
fdiv qword [esp + 0x78]
fiadd dword [ebp + 0x60]
call fcn.00447b88
mov esi, eax
mov eax, edi
and eax, 1
mov dword [esp + 0x1c], eax
jne 0x408b02
cmp edi, dword [esp + 0x18]
jge 0x408b02
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x10]
fmul qword [0x4895b8]
fstp qword [esp + 0x20]
fld qword [esp + 0x5c]
fcomp qword [0x4895c8]
fnstsw ax
test ah, 0x40
je 0x408a89
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0xc4]
push str._.0f
push eax
jmp 0x408aa4
fld qword [esp + 0x20]
fdiv qword [esp + 0x5c]
sub esp, 8
lea ecx, [esp + 0xc4]
fstp qword [esp]
push str._.1f
push ecx
call fcn.004478fa
lea edi, [esp + 0xcc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0xbc]
not ecx
dec ecx
push ecx
push edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x5c]
sar eax, 1
mov ecx, esi
sub edx, 5
sub ecx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x408b1c
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [esp + 0x1c]
push 0
push esi
lea edx, [ecx + eax - 4]
push edx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
push esi
add eax, 3
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc edi
add ecx, edx
cmp edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
jl 0x408a1a
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x4a256c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp + 0x5c]
push ecx
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x64]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov al, byte [ebp + 0x58]
test al, al
je 0x408c03
mov edx, dword [ebp + 0x54]
xor esi, esi
mov eax, dword [edx + 0x45]
test eax, eax
jle 0x408c03
push esi
mov ecx, ebp
call fcn.00408c80
mov eax, dword [ebp + 0x54]
inc esi
cmp esi, dword [eax + 0x45]
jl 0x408bf2
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x128], 5
call fcn.00472612
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x128], 6
call fcn.00472612
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x128], 7
call fcn.00472612
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x128], 8
call fcn.00472612
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4