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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4828d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], vtable.CFont.0
mov eax, dword [ebp + 8]
push 0x48
push 0x5a
push eax
mov dword [esp + 0x15c], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0xa0], eax
mov edi, 0x4a121c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
lea edx, [esp + 0xbc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xb4], 0
shr ecx, 2
mov byte [esp + 0xb5], 0
mov byte [esp + 0xb6], 0
mov byte [esp + 0xb7], 0
mov byte [esp + 0xb8], 4
mov byte [esp + 0xb9], 0
mov byte [esp + 0xba], 0
mov byte [esp + 0xbb], 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 + 0xa0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x34]
call fcn.004725bb
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x78]
push ecx
push 4
push str.8192
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], eax
lea ecx, [eax + edx]
push 1
cdq
mov dword [esp + 0x10], ecx
mov dword [ebx + 0x48], ecx
mov ecx, dword [esp + 0x88]
sub eax, edx
add ecx, edi
mov edx, eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x20], ecx
mov dword [ebx + 0x4c], ecx
mov ecx, dword [esp + 0x90]
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x20]
sub ecx, edi
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
sub eax, edi
sub ecx, edx
push esi
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x9c], eax
push 1
push 0x404040
lea eax, [esp + 0x98]
push 0
push eax
push esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
call fcn.004180f0
add esp, 0x14
lea ecx, [esp + 0x5c]
push 0
push 2
push 0
call fcn.00472628
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x5c]
neg eax
sbb eax, eax
mov byte [esp + 0x150], 1
and eax, edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
dec ecx
push 0
dec edx
push ecx
push edx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x50]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
dec eax
inc ecx
push eax
push ecx
push esi
call edi
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
inc edx
inc eax
push edx
push eax
push esi
call edi
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x48]
inc ecx
dec edx
push ecx
push edx
push esi
call edi
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x48]
dec eax
dec ecx
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x1c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x707070
push 1
push 0
lea ecx, [esp + 0x44]
call fcn.00472628
push 0x404040
push 1
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x15c], 2
call fcn.00472628
mov eax, dword [ebx + 0x40]
lea ecx, [esp + 0xe4]
push eax
push 0x4a1264
push ecx
mov byte [esp + 0x15c], 3
call fcn.004478fa
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
fld qword [0x4895d8]
not ecx
dec ecx
add ecx, 0xfffffffe
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call fcn.00447fc0
call fcn.00447b88
mov ecx, eax
mov eax, dword [ebx + 0x40]
cdq
idiv ecx
mov dword [esp + 0x18], ecx
mov edi, eax
inc edi
push edi
call fcn.00415e60
mov ecx, eax
mov eax, edi
cdq
idiv ecx
add esp, 0x10
mov dword [esp + 0x20], ecx
mov edx, eax
imul edx, ecx
cmp edx, edi
jge 0x41242d
inc eax
mov edx, eax
lea edi, [eax + eax]
imul edx, ecx
imul edx, dword [esp + 0xc]
mov eax, edi
mov dword [ebx + 0x60], edx
imul eax, ecx
cdq
sub eax, edx
mov dword [esp + 0x2c], edi
sar eax, 1
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fild dword [ebx + 0x60]
fmul qword [0x4895d0]
fdivp st(1)
fcom qword [0x4895c8]
fst qword [esp + 0x64]
fnstsw ax
test ah, 1
je 0x41248c
fild dword [esp + 0x20]
fdiv st(1)
call fcn.00447b88
fstp st(0)
fld qword [0x4895c8]
mov dword [esp + 0x20], eax
mov ecx, eax
fst qword [esp + 0x64]
imul edi, ecx
mov dword [esp + 0xc], edi
fild dword [esp + 0xc]
fmul qword [0x4895c0]
fdiv st(1)
call fcn.00447b88
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x2c]
test eax, eax
fstp st(0)
mov dword [esp + 0x18], 0
jle 0x412636
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
neg eax
fstp qword [esp + 0xdc]
mov dword [esp + 0x24], eax
fild dword [ebx + 0x5c]
fimul dword [esp + 0x18]
fdiv qword [esp + 0xdc]
fiadd dword [ebx + 0x4c]
call fcn.00447b88
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, ecx
and eax, 1
mov dword [esp + 0xc], eax
jne 0x4125c0
cmp ecx, dword [esp + 0x2c]
jge 0x4125c0
push 2
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x1c]
fmul qword [0x4895b8]
fstp qword [esp + 0x6c]
fld qword [esp + 0x64]
fcomp qword [0x4895c8]
fnstsw ax
test ah, 0x40
je 0x41254e
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0xec]
push str._.0f
push edx
jmp 0x412569
fld qword [esp + 0x6c]
fdiv qword [esp + 0x64]
sub esp, 8
lea eax, [esp + 0xec]
fstp qword [esp]
push str._.1f
push eax
call fcn.004478fa
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
cdq
not ecx
sub eax, edx
mov edx, dword [esp + 0x20]
dec ecx
sar eax, 1
push ecx
sub edx, eax
mov eax, dword [ebx + 0x48]
lea ecx, [esp + 0xe8]
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 + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
jmp 0x4125cc
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 ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x48]
mov edi, eax
mov eax, dword [esp + 0xc]
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 + 0xc]
mov edx, dword [esp + 0x20]
sub eax, ecx
add eax, 3
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x4124d6
push 6
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
mov dword [esp + 0xc], 0
and eax, edx
mov dword [esp + 0x10], 0x3fe00000
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov edi, dword [ebx + 0x58]
mov eax, 0x88888889
imul edi, dword [esp + 0x18]
imul edi
mov ecx, edx
mov eax, 0x88888889
add ecx, edi
mov edi, dword [ebx + 0x58]
sar ecx, 3
mov edx, ecx
shr edx, 0x1f
add ecx, edx
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 + 0x18]
add ecx, edx
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
jne 0x4126cf
push str._.1f
jmp 0x4126d4
push str._.0f
lea edx, [esp + 0xf0]
push edx
call fcn.004478fa
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x24]
dec ecx
push ecx
mov ecx, dword [ebx + 0x54]
lea eax, [esp + 0xe8]
add ecx, 5
push eax
push ecx
push edi
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [ebx + 0x4c]
push 0
push edx
push edi
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebx + 0x54]
add eax, 6
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0xc]
mov eax, dword [esp + 0x18]
fadd st(0), st(0)
inc eax
cmp eax, 0xf
mov dword [esp + 0x18], eax
fstp qword [esp + 0xc]
jl 0x412671
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x4a256c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
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 + 0xe4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x48]
not ecx
mov esi, dword [ebp + 8]
dec ecx
push ecx
sub edx, edi
lea ecx, [esp + 0xe8]
sub edx, 2
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x40]
push 0x80ff
push 0x4080
lea edx, [ecx - 5]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], eax
cdq
sub eax, edx
sub ecx, edi
mov edi, dword [esp + 0x2c]
mov edx, eax
mov eax, dword [ebx + 0x50]
sub esp, 0x10
sar edx, 1
mov dword [esp + 0x70], edi
mov edi, esp
sub eax, edx
inc ecx
mov dword [edi], eax
mov dword [esp + 0x64], eax
lea edx, [eax + 8]
mov eax, dword [esp + 0x70]
mov dword [edi + 4], ecx
mov dword [esp + 0x68], ecx
push esi
mov ecx, ebx
mov dword [edi + 8], edx
mov dword [esp + 0x70], edx
mov dword [edi + 0xc], eax
call fcn.00412a40
mov edi, 0x4a2a10
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
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 + 0xe4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
not ecx
mov esi, dword [ebp + 8]
dec ecx
push ecx
sub edx, eax
mov eax, dword [ebx + 0x50]
lea ecx, [esp + 0xe8]
sub edx, 2
push ecx
sub eax, edi
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x4c]
lea eax, [edi + edi]
mov edi, dword [esp + 0x54]
push 0xffc000
push 0x806000
sub ecx, eax
sub esp, 0x10
mov dword [esp + 0x64], ecx
lea edx, [esp + 0x64]
sub edi, eax
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x70], edi
call fcn.00412d30
push esi
mov ecx, ebx
call fcn.00412a40
mov edi, 0x4a2a08
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
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 + 0xe4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebx + 0x50]
mov esi, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0xe8]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x30]
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 0x412945
xor esi, esi
push 2
push esi
mov ecx, ebx
call fcn.00412b80
push 1
push esi
mov ecx, ebx
call fcn.00412b80
inc esi
cmp esi, 0xf
jl 0x41292b
mov ecx, dword [esp + 0x74]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x150], 4
call fcn.00472612
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x150], 5
call fcn.00472612
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x150], 6
call fcn.00472612
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x150], 7
call fcn.00472612
mov ecx, dword [esp + 0x148]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4