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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4971e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], vtable.CFont.0
mov eax, dword [ebp + 8]
push 0x48
push 0x5a
push eax
mov dword [esp + 0x164], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0xb0], eax
mov edi, 0x4ba2ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
lea edx, [esp + 0xcc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xc4], 0
shr ecx, 2
mov byte [esp + 0xc5], 0
mov byte [esp + 0xc6], 0
mov byte [esp + 0xc7], 0
mov byte [esp + 0xc8], 4
mov byte [esp + 0xc9], 0
mov byte [esp + 0xca], 0
mov byte [esp + 0xcb], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x48]
call fcn.00476be4
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
and eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0xec]
push ecx
push 0x4ba2f4
push edx
call fcn.00445f52
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
fld qword [0x49f460]
dec ecx
add ecx, 0xfffffffe
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
call fcn.00446620
call fcn.004461e8
mov ecx, eax
mov eax, dword [ebx + 0x40]
cdq
idiv ecx
mov dword [esp + 0x24], ecx
mov edi, eax
inc edi
push edi
call fcn.0040a780
mov ecx, eax
mov eax, edi
cdq
idiv ecx
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, eax
imul edx, ecx
cmp edx, edi
jge 0x40476f
inc eax
mov edx, eax
lea edi, [eax + eax]
imul edx, ecx
imul edx, dword [esp + 0x18]
mov eax, edi
mov dword [ebx + 0x60], edx
imul eax, ecx
cdq
sub eax, edx
mov dword [esp + 0x38], edi
sar eax, 1
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fild dword [ebx + 0x60]
fmul qword [0x49f650]
fdivp st(1)
fcom qword [0x49f468]
fst qword [esp + 0x6c]
fnstsw ax
test ah, 1
je 0x4047ce
fild dword [esp + 0x14]
fdiv st(1)
call fcn.004461e8
fstp st(0)
fld qword [0x49f468]
mov dword [esp + 0x14], eax
mov ecx, eax
fst qword [esp + 0x6c]
imul edi, ecx
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
fmul qword [0x49f648]
fdiv st(1)
call fcn.004461e8
mov dword [ebx + 0x60], eax
mov eax, edi
cdq
fstp st(0)
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
push 0x4ba2f4
push eax
call fcn.00445f52
add esp, 0xc
lea ecx, [esp + 0x7c]
lea edi, [esp + 0xec]
xor eax, eax
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0xf0]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x98]
add eax, 6
mov dword [esp + 0x34], edi
add ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x48], ecx
lea ecx, [edx + edi]
push 1
cdq
sub eax, edx
mov dword [esp + 0x30], ecx
mov dword [ebx + 0x4c], ecx
mov ecx, eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x20]
sar ecx, 1
sub eax, ecx
mov ecx, dword [esp + 0xa4]
sub ecx, edi
mov edi, dword [esp + 0x30]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
sub eax, edx
sub ecx, edi
push esi
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x88], edx
push 1
push 0x404040
lea edx, [esp + 0x8c]
push 0
push edx
push esi
mov dword [esp + 0x98], edi
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
call fcn.0040d040
add esp, 0x14
push 0
push 2
push 0
lea ecx, [esp + 0x60]
call fcn.00476c51
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
mov byte [esp + 0x158], 1
and eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4c]
push 0
dec eax
dec ecx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x50]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
dec edx
inc eax
push edx
push eax
push esi
call edi
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x50]
inc ecx
inc edx
push ecx
push edx
push esi
call edi
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x48]
inc eax
dec ecx
push eax
push ecx
push esi
call edi
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
dec edx
dec eax
push edx
push eax
push esi
call edi
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x707070
push 1
push 0
lea ecx, [esp + 0x48]
call fcn.00476c51
push 0x404040
push 1
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x164], 2
call fcn.00476c51
mov eax, dword [esp + 0x38]
mov byte [esp + 0x158], 3
test eax, eax
mov dword [esp + 0x10], 0
jle 0x404b46
fild dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
neg eax
fstp qword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
fild dword [ebx + 0x5c]
fimul dword [esp + 0x10]
fdiv qword [esp + 0xa4]
fiadd dword [ebx + 0x4c]
call fcn.004461e8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, ecx
and eax, 1
mov dword [esp + 0x1c], eax
jne 0x404ace
cmp ecx, dword [esp + 0x38]
jge 0x404ace
push 2
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x28]
fmul qword [0x49f640]
fstp qword [esp + 0x2c]
fld qword [esp + 0x6c]
fcomp qword [0x49f468]
fnstsw ax
test ah, 0x40
je 0x404a48
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0xf4]
push str._.0f
push edx
jmp 0x404a63
fld qword [esp + 0x2c]
fdiv qword [esp + 0x6c]
sub esp, 8
lea eax, [esp + 0xf4]
fstp qword [esp]
push str._.1f
push eax
call fcn.00445f52
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
cdq
not ecx
sub eax, edx
mov edx, dword [esp + 0x14]
dec ecx
sar eax, 1
push ecx
sub edx, eax
mov eax, dword [ebx + 0x48]
lea ecx, [esp + 0xf0]
push ecx
sub eax, 5
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
mov dword [esp + 0x2c], eax
jmp 0x404ae8
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x48]
mov eax, dword [esp + 0x1c]
push 0
push ecx
lea ecx, [eax + edx - 2]
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, ecx
add eax, 3
push edx
push eax
push esi
call edi
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4049d0
push 6
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov dword [esp + 0x1c], 0
and eax, edx
mov dword [esp + 0x20], 0x3fe00000
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0
mov edi, dword [ebx + 0x58]
mov eax, 0x88888889
imul edi, dword [esp + 0x10]
imul edi
mov ecx, edx
add ecx, edi
mov edi, dword [ebx + 0x58]
sar ecx, 3
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 3
mov edi, edx
mov eax, edx
shr edi, 0x1f
add eax, edi
cdq
sub eax, edx
mov edx, dword [ebx + 0x48]
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
test eax, eax
push ecx
push edx
jne 0x404bdf
push str._.1f
jmp 0x404be4
push str._.0f
lea eax, [esp + 0xf8]
push eax
call fcn.00445f52
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [ebx + 0x54]
mov edi, dword [esp + 0x24]
not ecx
dec ecx
add edx, 5
push ecx
lea ecx, [esp + 0xf0]
push ecx
push edx
push edi
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebx + 0x4c]
push 0
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebx + 0x54]
add ecx, 6
push ecx
push edi
push esi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x1c]
mov eax, dword [esp + 0x10]
fadd st(0), st(0)
inc eax
cmp eax, 0xf
mov dword [esp + 0x10], eax
fstp qword [esp + 0x1c]
jl 0x404b81
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x4bb644
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0x4c]
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 + 0xec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x48]
not ecx
mov edi, dword [ebp + 8]
dec ecx
push ecx
sub edx, esi
lea ecx, [esp + 0xf0]
sub edx, 2
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x18]
push 0x80ff
push 0x4080
lea edx, [ecx - 5]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
cdq
sub eax, edx
sub ecx, esi
mov esi, dword [esp + 0x2c]
mov edx, eax
mov eax, dword [ebx + 0x50]
sub esp, 0x10
sar edx, 1
mov dword [esp + 0x80], esi
mov esi, esp
sub eax, edx
inc ecx
mov dword [esi], eax
mov dword [esp + 0x74], eax
lea edx, [eax + 8]
mov eax, dword [esp + 0x80]
mov dword [esi + 4], ecx
mov dword [esp + 0x78], ecx
push edi
mov ecx, ebx
mov dword [esi + 8], edx
mov dword [esp + 0x80], edx
mov dword [esi + 0xc], eax
call fcn.00404f50
mov edi, str.write
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [ebx + 0x4c]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
not ecx
mov edi, dword [ebp + 8]
dec ecx
push ecx
sub edx, eax
mov eax, dword [ebx + 0x50]
lea ecx, [esp + 0xf0]
sub edx, 2
push ecx
sub eax, esi
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x5c]
lea eax, [esi + esi]
mov esi, dword [esp + 0x64]
push 0xffc000
push 0x806000
sub ecx, eax
sub esp, 0x10
mov dword [esp + 0x74], ecx
lea edx, [esp + 0x74]
sub esi, eax
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x80], esi
call fcn.00405280
push edi
mov ecx, ebx
call fcn.00404f50
mov edi, 0x4bbbc0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0x4c]
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 + 0xec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebx + 0x50]
mov esi, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0xf0]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
sub edx, 2
sub eax, esi
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov al, byte [ebx + 0x3c]
test al, al
je 0x404e61
xor esi, esi
push 2
push esi
mov ecx, ebx
call fcn.00405090
push 1
push esi
mov ecx, ebx
call fcn.00405090
inc esi
cmp esi, 0xf
jl 0x404e47
mov ecx, dword [esp + 0x78]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x158], 4
call fcn.00476c3b
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x158], 5
call fcn.00476c3b
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x158], 6
call fcn.00476c3b
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x158], 7
call fcn.00476c3b
mov ecx, dword [esp + 0x150]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4