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

Disassembly:
push 0xffffffffffffffff
push 0x4767b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], 0x4830f4
mov ebx, dword [esp + 0x134]
push 0x48
push 0x5a
push ebx
mov dword [esp + 0x138], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x84], eax
mov edi, 0x493204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x98], 0
shr ecx, 2
mov byte [esp + 0x99], 0
mov byte [esp + 0x9a], 0
mov byte [esp + 0x9b], 0
mov byte [esp + 0x9c], 4
mov byte [esp + 0x9d], 0
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 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]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
call esi
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x48]
call fcn.004666ce
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x40], 0x186a0
jge 0x412b52
lea ecx, [esp + 0x5c]
push ecx
push 4
push 0x495644
jmp 0x412b5e
lea edx, [esp + 0x5c]
push edx
push 5
push 0x49563c
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
push 1
lea edi, [ecx + eax]
mov eax, dword [esp + 0x78]
sub eax, ecx
mov ecx, dword [esp + 0x7c]
sub ecx, edx
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ecx
sub eax, edi
sub ecx, edx
push ebx
mov dword [esp + 0x30], edx
mov dword [ebp + 0x64], edi
mov dword [esp + 0x78], edx
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], ecx
call esi
mov ecx, dword [ebp + 0x78]
xor edi, edi
cmp ecx, edi
jle 0x412c98
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov esi, eax
test esi, esi
jge 0x412bc5
xor esi, esi
jmp 0x412bd2
cmp esi, 0xff
jle 0x412bd2
mov esi, 0xff
mov ecx, eax
test ecx, ecx
jge 0x412bdc
xor ecx, ecx
jmp 0x412be9
cmp ecx, 0xff
jle 0x412be9
mov ecx, 0xff
test eax, eax
jge 0x412bf1
xor eax, eax
jmp 0x412bfd
cmp eax, 0xff
jle 0x412bfd
mov eax, 0xff
xor edx, edx
and esi, 0xff
mov dh, al
mov dl, cl
lea ecx, [esp + 0x3c]
shl edx, 8
or edx, esi
push edx
push 1
push 0
call fcn.0046673b
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x64]
mov esi, eax
mov eax, dword [ebp + 0x68]
push 0
add eax, edi
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x6c]
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 + 0x3c], 0x480444
lea ecx, [esp + 0x3c]
mov byte [esp + 0x12c], 1
call fcn.00466725
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 0x40
mov byte [esp + 0x12c], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x78]
cmp edi, ecx
jl 0x412bb4
push 0
push 2
push 0
lea ecx, [esp + 0x58]
call fcn.0046673b
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
mov byte [esp + 0x12c], 2
and eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x64]
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 + 0x68]
mov ecx, dword [ebp + 0x6c]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
dec eax
inc ecx
push eax
push ecx
push ebx
call edi
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x6c]
inc edx
inc eax
push edx
push eax
push ebx
call edi
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x64]
inc ecx
dec edx
push ecx
push edx
push ebx
call edi
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
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 + 0x40]
call fcn.0046673b
push 0x404040
push 1
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0046673b
xor esi, esi
mov byte [esp + 0x12c], 4
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 0x74]
mov eax, 0x66666667
imul ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x64]
add edx, eax
mov eax, esi
and eax, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
jne 0x412e2d
lea ecx, [esi + esi*4]
lea edx, [esp + 0xc0]
push ecx
push 0x4931f8
push edx
call fcn.0043c57a
add esp, 0xc
cmp esi, 0x14
jne 0x412de1
mov edi, 0x4931f4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
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 + 0x18]
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc0]
push ecx
mov ecx, dword [ebp + 0x70]
push eax
push ecx
push edx
push ebx
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 ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
mov dword [esp + 0x20], eax
jmp 0x412e47
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 + 0x20], eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x70]
mov eax, dword [esp + 0x14]
sub edx, eax
mov eax, dword [esp + 0x1c]
add edx, 2
push edx
push eax
push ebx
call edi
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
inc esi
cmp esi, 0x15
mov dword [esp + 0x18], esi
jl 0x412d5f
mov edx, dword [ebp + 0x40]
lea eax, [esp + 0xc0]
push edx
push 0x4931f8
push eax
call fcn.0043c57a
lea edi, [esp + 0xcc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
fld qword [0x47ca58]
not ecx
dec ecx
add ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
call fcn.0043ce40
call fcn.0043c808
mov ecx, eax
mov eax, dword [ebp + 0x40]
cdq
idiv ecx
mov dword [esp + 0x1c], ecx
mov esi, eax
inc esi
push esi
call fcn.00410070
mov edi, eax
mov eax, esi
cdq
idiv edi
add esp, 0x10
mov dword [esp + 0x14], edi
mov ecx, eax
imul ecx, edi
cmp ecx, esi
jge 0x412ef7
inc eax
mov edx, eax
lea esi, [eax + eax]
imul edx, edi
imul edx, dword [esp + 0x10]
mov eax, esi
mov dword [ebp + 0x44], edx
cdq
sub eax, edx
mov dword [esp + 0x1c], esi
mov ecx, eax
mov eax, dword [ebp + 0x4c]
sar ecx, 1
lea eax, [eax + esi - 1]
mov dword [esp + 0x10], ecx
cdq
idiv esi
lea ecx, [ecx + ecx*4]
imul eax, esi
cdq
idiv ecx
imul eax, dword [esp + 0x10]
lea edx, [eax + eax*4]
mov eax, esi
imul eax, edi
mov dword [ebp + 0x50], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fild dword [ebp + 0x44]
fmul qword [0x47ca50]
fdivp st(1)
fcom qword [0x47ca48]
fst qword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x412f7d
fild dword [esp + 0x14]
fdiv st(1)
call fcn.0043c808
fstp st(0)
fld qword [0x47ca48]
mov edi, eax
fst qword [esp + 0x54]
mov eax, esi
imul eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x47ca40]
fdiv st(1)
call fcn.0043c808
test esi, esi
fstp st(0)
mov dword [ebp + 0x44], eax
mov dword [esp + 0x18], 0
jle 0x41317d
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
neg edi
fstp qword [esp + 0x7c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], eax
fild dword [ebp + 0x78]
fimul dword [esp + 0x18]
fdiv qword [esp + 0x7c]
fiadd dword [ebp + 0x68]
call fcn.0043c808
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, ecx
mov dword [esp + 0x64], edi
and eax, 1
mov dword [esp + 0x14], eax
jne 0x41310d
cmp ecx, esi
jge 0x41310d
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x10]
fmul qword [0x47c3b8]
fstp qword [esp + 0x20]
fld qword [esp + 0x54]
fcomp qword [0x47ca48]
fnstsw ax
test ah, 0x40
je 0x413037
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0xc8]
push 0x49481c
push eax
jmp 0x413052
fld qword [esp + 0x20]
fdiv qword [esp + 0x54]
sub esp, 8
lea ecx, [esp + 0xc8]
fstp qword [esp]
push 0x494814
push ecx
call fcn.0043c57a
mov eax, dword [esp + 0x38]
mov esi, edi
cdq
sub eax, edx
lea edi, [esp + 0xd0]
sar eax, 1
sub esi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x64]
lea edx, [esp + 0xc0]
not ecx
dec ecx
sub eax, 5
push ecx
push edx
push esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp + 0x50]
mov eax, ecx
imul eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x1c]
sub ecx, eax
push ecx
lea ecx, [esp + 0xc4]
push 0x4931f8
push ecx
call fcn.0043c57a
lea edi, [esp + 0xcc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x6c]
lea edx, [esp + 0xc0]
not ecx
dec ecx
add eax, 5
push ecx
push edx
push esi
push eax
push ebx
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 ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jmp 0x413127
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 + 0x20], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [esp + 0x14]
push 0
push edi
lea eax, [edx + ecx - 2]
push eax
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x6c]
mov edx, dword [esp + 0x14]
sub ecx, edx
push edi
add ecx, 3
push ecx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
inc eax
add edx, ecx
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x412fc2
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x49480c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x68]
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 + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp + 0x64]
push ecx
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x4931f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x68]
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 + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x6c]
not ecx
dec ecx
sub edx, edi
push ecx
lea ecx, [esp + 0xc4]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0xafafaf
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, 0x49562c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x68]
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 + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x64]
not ecx
dec ecx
add eax, 3
push ecx
lea ecx, [esp + 0xc4]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x68]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov al, byte [ebp + 0x60]
test al, al
je 0x41332a
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0xd95]
test ecx, ecx
jle 0x4132f0
mov edx, dword [eax + esi*4 + 0xd99]
mov ecx, ebp
push edx
push esi
call fcn.00413420
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0xd95]
jl 0x4132d4
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0x10cd]
test ecx, ecx
jle 0x41332a
mov ecx, dword [eax + esi*8 + 0x10d5]
mov edx, dword [eax + esi*8 + 0x10d1]
mov eax, dword [eax + esi*4 + 0x29d1]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00413590
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0x10cd]
jl 0x4132ff
mov esi, 0x480444
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 5
call fcn.00466725
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x12c], 6
call fcn.00466725
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x12c], 7
call fcn.00466725
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x12c], 8
call fcn.00466725
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 4