Function at 0x4d15b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5e04cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.004ac770
lea ecx, [esp + 0x54]
call fcn.004ac770
lea eax, [ebx + 0x54]
lea ecx, [ebx + 0x50]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004ac7d0
mov dx, word [ebx + 0x38]
xor ebp, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], ebp
call fcn.00481170
test eax, eax
je 0x4d166b
push 0x6637f0
push 0x12
push 2
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x190
push ebp
push ebp
push ebp
push 0x90
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edi, dword [esp + 0x134]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x38], eax
call esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0xec]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call esi
jmp 0x4d1678
mov edi, dword [esp + 0x134]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x70]
push edx
push edi
call esi
mov esi, eax
lea eax, [esp + 0xb4]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x13c]
neg eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x4d1e18
jmp 0x4d16c6
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x134]
test ebp, ebp
je 0x4d1755
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x144]
mov esi, dword [esp + 0x140]
lea eax, [esp + 0x10]
mov edx, dword [ecx + 0x14]
lea ecx, [esp + 0x5c]
not edx
shr edx, 1
and edx, 1
push edx
push eax
mov eax, dword [esp + 0x28]
push edi
push esi
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x15c]
push edx
mov edx, dword [esp + 0x154]
push ebp
push eax
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004d1fd0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4d1744
cmp dword [esi], 0
mov eax, dword [esp + 0x18]
jne 0x4d173f
mov edx, dword [eax + 0x10]
mov dword [esi], edx
mov eax, dword [eax + 0x10]
mov dword [edi], eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x44], eax
jmp 0x4d1e05
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4d178d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x68]
push edx
push eax
push ecx
push edi
mov ecx, ebx
call fcn.004d1e60
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4d1e18
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x44], 0
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d1e2b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov dword [esp + 0x44], eax
call fcn.00481170
test eax, eax
je 0x4d186a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x148]
movsx ecx, word [eax + 0x18]
imul ecx, dword [edx]
mov eax, dword [esp + 0xec]
lea edx, [eax + eax]
cmp ecx, edx
jle 0x4d186a
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xc0c0c0
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x48]
push 4
push 0x666c0c
push ecx
mov ecx, dword [ebx + 0x4c]
sub edx, ecx
add edx, 5
push edx
push edi
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xec]
mov edx, dword [ebx + 0x48]
push 4
add ecx, eax
mov ebp, dword [esp + 0x138]
push 0x666c04
push ecx
sub edx, dword [ebx + 0x4c]
add edx, 5
push edx
push ebp
call edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x88]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4d1877
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
mov ebp, dword [esp + 0x134]
mov eax, dword [ebx + 0x10]
mov cx, word [esp + 0x20]
cmp cx, word [eax + 0xa4]
jne 0x4d19bc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4d19bc
cmp word [eax + 0x9c], 0
je 0x4d19bc
movsx edx, word [ecx + 0x18]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0xb4]
imul edx, dword [eax]
lea eax, [ecx*4]
cmp edx, eax
jle 0x4d19bc
mov ecx, dword [ebx + 0x70]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcef5b1
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [ebx + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x6678fc
add esi, 0x32
call ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x134]
push eax
push 0x6678fc
push edx
mov edx, dword [ebx + 0x4c]
mov eax, esi
sub eax, edx
push eax
push ecx
call edi
push 0x6678e0
call ebp
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xb8]
push 0x6678e0
add eax, edx
mov edx, dword [esp + 0x13c]
push eax
mov eax, dword [ebx + 0x4c]
mov ecx, esi
sub ecx, eax
push ecx
push edx
call edi
push 0x6678c8
call ebp
mov ecx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x14]
push 0x6678c8
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [ebx + 0x4c]
mov eax, esi
sub eax, edx
push eax
push ecx
call edi
push 0x6678a4
call ebp
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xb8]
push 0x6678a4
lea ecx, [edx + eax*2]
add eax, ecx
mov ecx, dword [ebx + 0x4c]
sub esi, ecx
push eax
push esi
mov esi, dword [esp + 0x144]
push esi
call edi
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x88]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebx + 0x10]
mov ebp, dword [esi + 0x130]
cmp dword [ebp + 0x1c], 0xffffffff
jle 0x4d1dbc
mov eax, dword [ebx + 0x20]
lea edi, [ebx + 0x1c]
test eax, eax
jne 0x4d19dd
xor edx, edx
jmp 0x4d19f3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
xor eax, eax
cmp edx, eax
mov edx, dword [esp + 0x10]
sete byte [esp + 0x1f]
cmp word [esi + 0x12c], ax
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
jbe 0x4d1db4
add ebp, 0x22
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebp
mov al, byte [esp + 0x1f]
test al, al
je 0x4d1bc8
mov eax, dword [ebp - 0x1a]
lea ecx, [esp + 0x64]
push eax
call fcn.004ca3c0
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
mov dword [esp + 0x12c], 0
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4d1b1b
mov ecx, edi
call fcn.004d2720
cmp eax, 1
jbe 0x4d1a7d
mov ecx, edi
call fcn.004d2720
mov ebp, eax
jmp 0x4d1a82
mov ebp, 1
mov ecx, edi
call fcn.004d2720
add eax, ebp
mov dword [esp + 0x28], eax
jns 0x4d1a93
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
call fcn.0059dece
mov edx, dword [edi + 4]
add esp, 4
mov ebp, eax
mov ecx, edi
push ebp
push esi
push edx
call fcn.004d2780
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.004d27c0
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 8]
add edx, 0x18
mov ecx, edi
push edx
push eax
push esi
call fcn.004d2780
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.004d2750
mov eax, dword [edi + 4]
push eax
call fcn.0059def7
mov eax, dword [esp + 0x2c]
add esp, 4
lea eax, [eax + eax*2]
lea ecx, [ebp + eax*8]
mov dword [edi + 0xc], ecx
mov ecx, edi
call fcn.004d2720
inc eax
mov dword [edi + 4], ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*8]
mov dword [edi + 8], eax
jmp 0x4d1bb4
mov ecx, esi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jae 0x4d1b83
lea edx, [esi + 0x18]
mov ecx, edi
push edx
push esi
push esi
call fcn.004d2780
mov ebp, dword [edi + 8]
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, edi
sub eax, edx
push eax
push ebp
call fcn.004d27c0
mov edx, dword [edi + 8]
lea ecx, [esp + 0x64]
push ecx
push edx
push esi
call fcn.004beca0
add esp, 0xc
jmp 0x4d1bb0
push esi
lea eax, [esi - 0x18]
push esi
push eax
mov ecx, edi
call fcn.004d2780
mov eax, dword [edi + 8]
push eax
add eax, 0xffffffe8
push eax
push esi
call fcn.004d27f0
lea ecx, [esp + 0x70]
lea edx, [esi + 0x18]
push ecx
push edx
push esi
call fcn.004beca0
add esp, 0x18
add dword [edi + 8], 0x18
lea ecx, [esp + 0x64]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004ca3a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
and eax, 0xffff
cmp eax, dword [ecx - 6]
jne 0x4d1d81
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x7c]
push ecx
mov eax, dword [edx]
mov edx, dword [esp + 0x138]
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x4d1d81
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x4d1d81
jmp 0x4d1c2e
mov ebp, dword [esp + 0x38]
xor cl, cl
mov dword [esp + 0x2c], 0
mov byte [esp + 0x3c], cl
mov eax, dword [esp + 0x3c]
mov edx, dword [ebp + 0xc]
and eax, 0xff
mov byte [esp + 0x24], cl
mov esi, dword [esp + 0x24]
mov al, byte [eax + edx]
test al, al
je 0x4d1c78
cmp al, 0xa
je 0x4d1c78
cmp cl, 0xff
jae 0x4d1c78
inc cl
mov byte [esp + 0x24], cl
mov esi, dword [esp + 0x24]
mov eax, esi
and eax, 0xff
mov al, byte [eax + edx]
test al, al
jne 0x4d1c57
and esi, 0xff
cmp byte [esi + edx], 0
je 0x4d1c90
cmp cl, 0xff
jae 0x4d1c90
mov eax, 1
jmp 0x4d1c92
xor eax, eax
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
add esi, edx
test eax, eax
mov dword [esp + 0x10], esi
je 0x4d1cb4
inc cl
mov dword [esp + 0x2c], 1
mov byte [esp + 0x3c], cl
jmp 0x4d1c3c
mov edx, dword [esp + 0x14]
movzx cx, byte [ebp + 4]
cmp cx, word [edx - 2]
lea eax, [edx - 0x22]
jne 0x4d1d6d
mov eax, dword [ebp + 0xc]
mov ecx, edx
mov dword [esp + 0x4c], eax
xor ebp, ebp
movsx eax, word [ecx]
test eax, eax
jle 0x4d1ce6
mov ebp, dword [esp + 0x90]
imul ebp, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax]
sub esi, edx
test ecx, ecx
mov ecx, dword [esp + 0x7c]
jne 0x4d1d0c
add esi, eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
add esi, eax
mov eax, dword [esp + 0x4c]
push 0x6667e8
push eax
add esi, ecx
call fcn.0055bac0
add esp, 8
test eax, eax
mov eax, dword [esp + 0x7c]
cdq
je 0x4d1d2f
sub eax, edx
sar eax, 1
jmp 0x4d1d37
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [ebx + 0x20]
mov edx, dword [esp + 0x34]
neg eax
push 0x3f800000
add ecx, edx
mov edx, dword [ebx + 0x48]
push 0
add esi, eax
mov eax, dword [esp + 0x13c]
push ecx
push 0x3f800000
add edx, ebp
push esi
push edx
push eax
push eax
call fcn.004cae40
mov ebp, dword [esp + 0x58]
add esp, 0x20
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 4]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x4d1c2a
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
add edx, 0x18
inc eax
mov dword [esp + 0x34], edx
xor edx, edx
mov dx, word [ecx + 0x12c]
add ebp, 0x28
cmp eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ebp
jl 0x4d1a20
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x48]
mov esi, dword [esp + 0x134]
push 0
push ecx
mov ecx, dword [ebx + 0x4c]
sub edx, ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, ebx
call fcn.004d2990
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004d29e0
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0x4c]
add eax, ecx
mov ecx, dword [ebx + 0x48]
sub ecx, edi
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jl 0x4d16bb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d1e2b
mov ebx, dword [ebx + 0xc]
push eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x10]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4d1e3e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret 0x18