Function at 0x58ff10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x778887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov ebx, ecx
je 0x590193
cmp byte [eax], 0
je 0x590193
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x590193
cmp byte [eax], 0
je 0x590193
push 0
push str.GAMEID
push eax
call fcn.007411f0
add esp, 8
push eax
call fcn.00741e00
mov edi, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
add esp, 8
cmp edi, esi
mov dword [esp + 0x10], eax
je 0x58ffac
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jne 0x58ffa6
mov edx, dword [ebp + 8]
lea ecx, [edi + 0xc]
push ecx
push edx
call fcn.0043dca0
add esp, 8
test eax, eax
je 0x590193
mov edi, dword [edi]
cmp edi, esi
jne 0x58ff85
xor edi, edi
push edi
call fcn.0058f3e0
mov ecx, dword [eax + 0x1c]
add eax, 0x1c
add esp, 4
cmp ecx, 0xffffffff
je 0x590087
cmp eax, edi
je 0x590087
call fcn.00589d80
mov cl, byte [eax + 0x48]
test cl, cl
je 0x590193
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x590193
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push str.TEXT
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.007413e0
push esi
push str.PRIV
lea edx, [esp + 0x30]
push 0x80
push edx
call fcn.007417a0
push 0x4010020
push str.ATTR
lea eax, [esp + 0x40]
push 0x80
push eax
call fcn.007414b0
add esp, 0x30
push 0
push 0
push 0
call fcn.00589d80
push eax
push 0x5842d0
lea ecx, [esp + 0x2c]
push ecx
push 0x6d657367
call fcn.00589d80
mov ecx, eax
call fcn.00586640
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov ecx, esi
call fcn.0043bee0
cmp eax, 5
jne 0x5900bd
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push 3
push edx
push eax
mov ecx, ebx
call fcn.0058a300
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi], esi
push 0x28
sete byte [esp + 0x13]
call fcn.005752a0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0xa4], edi
je 0x5900f3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0x42f00000
push ecx
push edx
mov ecx, eax
call fcn.00584740
mov edi, eax
test edi, edi
mov dword [esp + 0xa4], 0xffffffff
je 0x590193
mov eax, dword [esi + 4]
mov dword [eax], edi
mov dword [esi + 4], edi
mov dword [edi + 4], eax
cmp byte [esp + 0xf], 1
mov dword [edi], esi
jne 0x590178
mov ecx, dword [ebx + 8]
lea eax, [ebx + 8]
cmp ecx, eax
jne 0x590178
push ebx
push 0x58cec0
call fcn.00589d80
mov ecx, eax
call fcn.00583e60
cmp eax, 0xffffffff
jne 0x590178
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x590158
push eax
call fcn.005752c0
add esp, 4
push edi
call fcn.005752c0
add esp, 4
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x590193
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
push ecx
call eax
add esp, 0x10
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8