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

Disassembly:
push 0xffffffffffffffff
push 0x475643
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 0x4830f4
mov ebx, dword [esp + 0x110]
push 0x48
push 0x5a
push ebx
mov dword [esp + 0x114], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x60], eax
mov edi, 0x493204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
lea edx, [esp + 0x7c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x74], 0
shr ecx, 2
mov byte [esp + 0x75], 0
mov byte [esp + 0x76], 0
mov byte [esp + 0x77], 0
mov byte [esp + 0x78], 4
mov byte [esp + 0x79], 0
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7b], 0x20
push 1
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 + 0x60]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x38]
call fcn.004666ce
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x48]
push ecx
push 6
push 0x4931fc
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
lea esi, [ecx + edx]
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x60], esi
add eax, edi
mov dword [esp + 0x18], eax
mov dword [ebp + 0x64], eax
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x58]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x5c]
sub eax, edx
mov edx, dword [esp + 0x18]
sub ecx, edi
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
sub ecx, edx
xor edi, edi
sub eax, esi
cmp ecx, edi
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
jle 0x401357
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
cdq
idiv dword [ebp + 0x74]
mov esi, eax
test esi, esi
jge 0x401280
xor esi, esi
jmp 0x40128d
cmp esi, 0xff
jle 0x40128d
mov esi, 0xff
mov ecx, eax
test ecx, ecx
jge 0x401297
xor ecx, ecx
jmp 0x4012a4
cmp ecx, 0xff
jle 0x4012a4
mov ecx, 0xff
test eax, eax
jge 0x4012ac
xor eax, eax
jmp 0x4012b8
cmp eax, 0xff
jle 0x4012b8
mov eax, 0xff
xor edx, edx
and esi, 0xff
mov dh, al
mov dl, cl
lea ecx, [esp + 0x18]
shl edx, 8
or edx, esi
push edx
push 1
push 0
call fcn.0046673b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
mov esi, eax
mov eax, edi
add eax, edx
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x68]
mov edx, edi
add edx, ecx
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 + 0x18], 0x480444
lea ecx, [esp + 0x18]
mov byte [esp + 0x108], 1
call fcn.00466725
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x74]
inc edi
add ecx, 0x40
cmp edi, eax
mov byte [esp + 0x108], 0
mov dword [esp + 0x10], ecx
jl 0x40126e
push 0
push 2
push 0
lea ecx, [esp + 0x48]
call fcn.0046673b
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x108], 2
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
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 + 0x64]
mov ecx, dword [ebp + 0x68]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
dec eax
inc ecx
push eax
push ecx
push ebx
call edi
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
inc edx
inc eax
push edx
push eax
push ebx
call edi
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x60]
inc ecx
dec edx
push ecx
push edx
push ebx
call edi
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
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 + 0x30]
call fcn.0046673b
push 0x404040
push 1
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x114], 3
call fcn.0046673b
xor esi, esi
mov byte [esp + 0x108], 4
mov dword [esp + 0x14], esi
mov ecx, esi
mov eax, 0x66666667
imul ecx, dword [ebp + 0x70]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x60]
add edx, eax
mov eax, esi
and eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jne 0x4014ec
lea ecx, [esi + esi*4]
lea edx, [esp + 0x9c]
push ecx
push 0x4931f8
push edx
call fcn.0043c57a
add esp, 0xc
cmp esi, 0x14
jne 0x4014a0
mov edi, 0x4931f4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
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 + 0x14]
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x9c]
push ecx
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
mov dword [esp + 0x14], eax
jmp 0x401506
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x6c]
mov eax, dword [esp + 0x10]
sub edx, eax
mov eax, dword [esp + 0x18]
add edx, 2
push edx
push eax
push ebx
call edi
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
inc esi
cmp esi, 0x15
mov dword [esp + 0x14], esi
jl 0x40141e
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [ebp + 0x64]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x60]
mov esi, dword [sym.imp.GDI32.dll_TextOutA]
push 2
sub edx, edi
push 0x47afb3
push edx
push eax
push ebx
call esi
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [ebp + 0x5c]
lea ecx, [esp + 0x9c]
push ecx
push edx
call fcn.00412650
mov eax, edi
lea edi, [esp + 0xa4]
cdq
sub eax, edx
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
add esp, 8
sar edx, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], edx
push ecx
mov ecx, dword [ebp + 0x64]
sub ecx, edx
mov edx, dword [ebp + 0x60]
lea eax, [esp + 0xa0]
sub edx, 3
push eax
push ecx
push edx
push ebx
call esi
xor esi, esi
mov ecx, dword [ebp + 0x74]
mov eax, 0x66666667
imul ecx, esi
imul ecx
mov edi, dword [ebp + 0x6c]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
sub edi, edx
and eax, 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
je 0x4015fd
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
jmp 0x401609
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401682
test esi, esi
je 0x401682
lea ecx, [esp + 0x9c]
mov eax, 0x66666667
push ecx
mov ecx, esi
imul ecx, dword [ebp + 0x5c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
call fcn.00412650
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
sub edx, eax
mov eax, dword [ebp + 0x60]
push ecx
lea ecx, [esp + 0xa0]
sub eax, 3
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x60]
mov edx, dword [esp + 0x10]
sub ecx, edx
push 0
sub ecx, 3
push edi
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x68]
push edi
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
inc esi
cmp esi, 0x14
jl 0x4015c4
mov al, byte [ebp + 0x44]
test al, al
je 0x4016f2
xor esi, esi
mov eax, dword [ebp + 0x40]
mov cl, byte [eax + esi + 0x10]
test cl, cl
je 0x4016ec
mov ecx, dword [eax + esi*4 + 0x15]
xor edi, edi
test ecx, ecx
jle 0x4016ec
push edi
push esi
mov ecx, ebp
call fcn.00401780
mov ecx, dword [ebp + 0x40]
inc edi
cmp edi, dword [ecx + esi*4 + 0x15]
jl 0x4016d9
inc esi
cmp esi, 5
jl 0x4016c4
mov edx, dword [esp + 0x44]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, 0x480444
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x108], 5
call fcn.00466725
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x108], 6
call fcn.00466725
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x108], 7
call fcn.00466725
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x108], 8
call fcn.00466725
mov ecx, dword [esp + 0x100]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret 4