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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 0xf
call esi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [esp + 0x78]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call ebp
push 6
mov edi, eax
call esi
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x88]
push eax
push ecx
push edx
push esi
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov eax, dword [esp + 0x78]
push eax
push ebx
call ebp
push eax
call edi
mov edi, dword [esp + 0x8c]
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x10], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], eax
jle 0x40f4a3
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x78]
mov edx, dword [eax + ecx*4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [esp + 0x10]
jle 0x40f493
mov eax, dword [esp + 0x78]
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [edi + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jl 0x40f463
mov eax, dword [esp + 0x80]
mov edi, dword [edi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x84]
sub eax, esi
lea ecx, [edi + edi*2]
mov dword [esp + 0x84], eax
add eax, eax
cdq
idiv ecx
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x88]
mov ecx, 0xf
lea edi, [esp + 0x38]
mov dword [esp + 0x34], edx
lea eax, [eax + esi - 2]
mov esi, 0x4d5968
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
push ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + edi*4]
mov edi, dword [esp + 0x2c]
push ecx
sub esp, 0x10
mov ecx, esp
push ebx
mov dword [ecx], edi
mov edi, dword [esp + 0x48]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
call fcn.00409a70
mov edx, dword [esp + 0x9c]
mov ecx, eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x54], ecx
sub eax, ecx
add esp, 0x1c
sub eax, edx
xor edi, edi
cdq
sub eax, edx
mov dword [esp + 0x3c], edi
sar eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x84]
cdq
idiv dword [esi + 0x20]
lea edx, [esp + 0x38]
mov dword [esp + 0x40], edi
push edx
mov dword [esp + 0x38], ecx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push ebx
call ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jle 0x40f71d
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov eax, ecx
sub eax, edx
cdq
and edx, 3
add eax, edx
mov edx, ecx
sar eax, 2
sub edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x80]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
add edx, eax
sub ecx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], edx
add eax, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x80], eax
mov eax, 0x55555556
imul esi
mov eax, dword [esp + 0x7c]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
lea edx, [ecx + eax + 2]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ecx
mov ecx, dword [esp + 0x7c]
lea edx, [edx + ecx + 2]
mov dword [esp + 0x7c], edx
mov eax, dword [edi*4 + 0x4d5924]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call ebp
push 0
push 0
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x18]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x78]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x28]
mov ecx, dword [eax + 0x24]
push 4
push edx
push 0xffffffffffffffff
mov edx, dword [ecx + edi*4]
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
add eax, esi
add edx, esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
add ecx, esi
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 0x20]
inc edi
add edx, esi
cmp edi, ecx
mov dword [esp + 0x7c], edx
jl 0x40f626
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call ebp
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret