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

Disassembly:
push 0xffffffffffffffff
push 0x43f303
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], vtable.CFont.0
mov ebp, dword [esp + 0x114]
push 0x48
push 0x5a
push ebp
mov dword [esp + 0x118], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x64], eax
mov edi, str.Arial
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
lea edx, [esp + 0x80]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x78], 0
shr ecx, 2
mov byte [esp + 0x79], 0
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7b], 0
mov byte [esp + 0x7c], 4
mov byte [esp + 0x7d], 0
mov byte [esp + 0x7e], 0
mov byte [esp + 0x7f], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x20]
call fcn.00438937
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebp
call esi
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x5c]
push ecx
push 3
push 0x4530f8
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add edx, ecx
mov dword [ebx + 0x40], edx
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x60]
add edi, eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x60]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], edi
sub eax, edx
mov dword [ebx + 0x4c], ecx
sub ecx, edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 4
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
call edi
push eax
push 1
push 0
lea ecx, [esp + 0x38]
call fcn.004389a4
push 4
mov byte [esp + 0x110], 1
call edi
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00438a3e
push 4
mov byte [esp + 0x110], 2
call edi
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
push ebp
call esi
mov edx, dword [esp + 0x40]
mov edi, eax
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebp
call esi
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x10]
push edx
push ebp
call esi
push edi
push ebp
call esi
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
push 7
call edi
push eax
push ebp
call esi
push 4
mov dword [esp + 0x18], eax
call edi
push eax
push ebp
call esi
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x44]
mov edi, eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x40]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebp
call esi
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call esi
push 6
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x707070
push 1
push 0
lea ecx, [esp + 0x40]
call fcn.004389a4
push 0x404040
push 1
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 3
call fcn.004389a4
xor edi, edi
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + 0x50]
mov eax, 0x66666667
imul ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebx + 0x40]
add edx, eax
mov eax, edi
and eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x54], eax
jne 0x401325
lea ecx, [edi + edi*4]
lea edx, [esp + 0xa0]
push ecx
push 0x4530f4
push edx
call fcn.0041f1e7
add esp, 0xc
cmp edi, 0x14
jne 0x4012df
mov edi, 0x4530f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
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 [sym.imp.GDI32.dll_SelectObject]
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xa0]
push ecx
mov ecx, dword [ebx + 0x4c]
push eax
push ecx
push edx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebp
call esi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x40133b
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebp
call esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x18]
add edx, 2
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call esi
inc edi
cmp edi, 0x15
mov dword [esp + 0x10], edi
jl 0x40125b
mov edx, dword [esp + 0x58]
push edx
push ebp
call esi
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 4
call fcn.0043898e
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 5
call fcn.0043898e
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 6
call fcn.0043898e
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10c], 7
call fcn.0043898e
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10c], 8
call fcn.0043898e
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 4