Function at 0x419610
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x482e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], vtable.CFont.0
mov ebx, dword [esp + 0x138]
push 0x48
push 0x5a
push ebx
mov dword [esp + 0x13c], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x88], eax
mov edi, 0x4a121c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
lea edx, [esp + 0xa4]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x9c], 0
shr ecx, 2
mov byte [esp + 0x9d], 0
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 0
mov byte [esp + 0xa0], 4
mov byte [esp + 0xa1], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xa3], 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 edi, dword [sym.imp.GDI32.dll_SetBkMode]
call edi
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x44]
call fcn.004725bb
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x40], 0x186a0
jge 0x419752
lea ecx, [esp + 0x50]
push ecx
push 4
push str.9999
jmp 0x41975e
lea edx, [esp + 0x50]
push edx
push 5
push str.19999
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x54]
push 1
lea esi, [edx + eax]
mov eax, dword [esp + 0x7c]
sub eax, edx
mov edx, dword [esp + 0x80]
sub edx, ecx
mov dword [ebp + 0x6c], eax
add edx, 0xfffffffc
sub eax, esi
mov dword [ebp + 0x70], edx
sub edx, ecx
push ebx
mov dword [esp + 0x34], ecx
mov dword [ebp + 0x64], esi
mov dword [esp + 0x7c], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], edx
call edi
mov ecx, dword [ebp + 0x78]
xor edi, edi
cmp ecx, edi
jle 0x41989e
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov esi, eax
test esi, esi
jge 0x4197cb
xor esi, esi
jmp 0x4197d8
cmp esi, 0xff
jle 0x4197d8
mov esi, 0xff
mov ecx, eax
test ecx, ecx
jge 0x4197e2
xor ecx, ecx
jmp 0x4197ef
cmp ecx, 0xff
jle 0x4197ef
mov ecx, 0xff
test eax, eax
jge 0x4197f7
xor eax, eax
jmp 0x419803
cmp eax, 0xff
jle 0x419803
mov eax, 0xff
xor edx, edx
and esi, 0xff
mov dh, al
mov dl, cl
lea ecx, [esp + 0x24]
shl edx, 8
or edx, esi
push edx
push 1
push 0
call fcn.00472628
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x24]
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 + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], 1
call fcn.00472612
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x40
mov byte [esp + 0x130], 0
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x78]
cmp edi, ecx
jl 0x4197ba
push 0
push 2
push 0
lea ecx, [esp + 0x54]
call fcn.00472628
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
mov byte [esp + 0x130], 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 edi, eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
mov esi, dword [sym.imp.GDI32.dll_LineTo]
dec eax
inc ecx
push eax
push ecx
push ebx
call esi
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x6c]
inc edx
inc eax
push edx
push eax
push ebx
call esi
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x64]
inc ecx
dec edx
push ecx
push edx
push ebx
call esi
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
dec eax
dec ecx
push eax
push ecx
push ebx
call esi
push edi
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 + 0x44]
call fcn.00472628
push 0x404040
push 1
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x13c], 3
call fcn.00472628
xor edi, edi
mov byte [esp + 0x130], 4
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 0x74]
mov eax, 0x66666667
imul ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x64]
add edx, eax
mov eax, edi
and eax, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jne 0x419af8
mov al, byte [ebp + 0x60]
test al, al
je 0x419aea
mov edi, dword [ebp + 0x5c]
mov byte [esp + 0x17], 1
mov ecx, dword [edi + 0x496]
mov edx, dword [edi + 0x492]
mov eax, dword [edi + 0x4be]
push ecx
mov ecx, dword [edi + 0x4ba]
push edx
push eax
push ecx
call fcn.00447a00
push 0
push 0xf4240
push edx
push eax
call fcn.00447950
mov dword [esp + 0x24], eax
mov esi, eax
mov eax, dword [edi + 0x1436]
mov dword [esp + 0x28], edx
test eax, eax
mov ecx, edx
jne 0x419a19
mov edi, dword [edi + 0x143a]
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, edx
cmp ecx, eax
jl 0x419a19
jg 0x419a13
cmp esi, dword [esp + 0x24]
jbe 0x419a19
mov esi, dword [esp + 0x24]
mov ecx, eax
test ecx, ecx
jl 0x419a3e
jg 0x419a27
cmp esi, 0x2710
jbe 0x419a3e
push 0
push 0x3e8
push ecx
push esi
mov byte [esp + 0x27], 0
call fcn.00447950
mov esi, eax
mov ecx, edx
mov edi, dword [esp + 0x20]
push ecx
mov eax, edi
push esi
cdq
push edx
push eax
call fcn.00447a00
push 0
push 0x14
push edx
push eax
call fcn.00447950
push edx
push eax
lea edx, [esp + 0xcc]
push 0x4a120c
push edx
call fcn.004478fa
add esp, 0x10
cmp edi, 0x14
jne 0x419ab3
mov al, byte [esp + 0x17]
mov edi, 0x4a1208
test al, al
jne 0x419a87
mov edi, 0x4a1204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc4]
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]
lea edi, [esp + 0xc4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc4]
push ecx
mov ecx, dword [ebp + 0x70]
add ecx, 4
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
jmp 0x419b04
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x68]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x70]
lea eax, [edx + edx]
mov edx, dword [esp + 0x1c]
sub ecx, eax
add ecx, 5
push ecx
push edx
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
inc edi
cmp edi, 0x15
mov dword [esp + 0x20], edi
jl 0x419965
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0xc4]
push ecx
push 0x4a1264
push edx
call fcn.004478fa
lea edi, [esp + 0xd0]
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 + 0x1c], ecx
fild dword [esp + 0x1c]
call fcn.00447fc0
call fcn.00447b88
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.00415e60
mov edi, eax
mov eax, esi
cdq
idiv edi
add esp, 0x10
mov dword [esp + 0x18], edi
mov ecx, eax
imul ecx, edi
cmp ecx, esi
jge 0x419bc5
inc eax
mov edx, eax
lea esi, [eax + eax]
imul edx, edi
imul edx, dword [esp + 0x10]
cmp esi, 6
mov dword [ebp + 0x44], edx
mov dword [esp + 0x1c], esi
jne 0x419bea
mov dword [esp + 0x1c], 0xc
mov esi, dword [esp + 0x1c]
mov eax, esi
cdq
sub eax, edx
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 [0x4895d0]
fdivp st(1)
fcom qword [0x4895c8]
fst qword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x419c5c
fild dword [esp + 0x18]
fdiv st(1)
call fcn.00447b88
fstp st(0)
fld qword [0x4895c8]
mov edi, eax
fst qword [esp + 0x58]
mov eax, esi
imul eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x4895c0]
fdiv st(1)
call fcn.00447b88
test esi, esi
fstp st(0)
mov dword [ebp + 0x44], eax
mov dword [esp + 0x20], 0
jle 0x419e60
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
neg edi
fstp qword [esp + 0x80]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
jmp 0x419caa
mov esi, dword [esp + 0x1c]
fild dword [esp + 0x20]
fimul dword [ebp + 0x78]
fdiv qword [esp + 0x80]
fiadd dword [ebp + 0x68]
call fcn.00447b88
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, ecx
mov dword [esp + 0x68], edi
and eax, 1
mov dword [esp + 0x18], eax
jne 0x419df2
cmp ecx, esi
jge 0x419df2
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x10]
fmul qword [0x4895b8]
fstp qword [esp + 0x60]
fld qword [esp + 0x58]
fcomp qword [0x4895c8]
fnstsw ax
test ah, 0x40
je 0x419d22
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
push edx
lea eax, [esp + 0xcc]
push str._.0f
push eax
jmp 0x419d3d
fld qword [esp + 0x60]
fdiv qword [esp + 0x58]
sub esp, 8
lea ecx, [esp + 0xcc]
fstp qword [esp]
push str._.1f
push ecx
call fcn.004478fa
mov eax, dword [esp + 0x3c]
mov esi, edi
cdq
sub eax, edx
lea edi, [esp + 0xd4]
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 + 0xc4]
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 + 0x20]
cdq
idiv dword [esp + 0x1c]
sub ecx, eax
push ecx
lea ecx, [esp + 0xc8]
push 0x4a1264
push ecx
call fcn.004478fa
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x6c]
lea edx, [esp + 0xc4]
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 + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x68]
mov esi, eax
jmp 0x419e0a
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [esp + 0x18]
push 0
push edi
lea eax, [edx + ecx - 3]
push eax
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x6c]
mov edx, dword [esp + 0x18]
sub ecx, edx
push edi
add ecx, 3
push ecx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
jl 0x419ca6
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x4a256c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc4]
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 + 0xc4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp + 0x64]
push ecx
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x34]
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, 0x4a1200
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc4]
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 + 0xc4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x6c]
not ecx
dec ecx
sub edx, edi
push ecx
lea ecx, [esp + 0xc8]
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, str.
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc4]
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 + 0xc4]
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 + 0xc8]
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 + 0x6c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov al, byte [ebp + 0x60]
test al, al
je 0x41a00d
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0x10fe]
test ecx, ecx
jle 0x419fd3
mov edx, dword [eax + esi*4 + 0x1102]
mov ecx, ebp
push edx
push esi
call fcn.0041a100
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0x10fe]
jl 0x419fb7
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0x1446]
test ecx, ecx
jle 0x41a00d
mov ecx, dword [eax + esi*8 + 0x144e]
mov edx, dword [eax + esi*8 + 0x144a]
mov eax, dword [eax + esi*4 + 0x2d4a]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0041a270
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0x1446]
jl 0x419fe2
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 5
call fcn.00472612
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x130], 6
call fcn.00472612
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x130], 7
call fcn.00472612
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x130], 8
call fcn.00472612
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4