Function at 0x5f14f0
Capabilities:
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x790148
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00428920
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp byte [ebp + 0xc], bl
jne 0x5f1685
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x74]
push ecx
call fcn.00616bc0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [ecx + 0x74]
call fcn.00616b40
mov eax, dword [esi + 8]
mov edi, dword [eax + 0x44]
sub edi, dword [eax + 0x40]
add eax, 0x34
sar edi, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x14], eax
jle 0x5f15f0
mov dword [esp + 0xc], ebx
mov ebx, dword [esi + 8]
mov edx, dword [ebx + 0x44]
sub edx, dword [ebx + 0x40]
add ebx, 0x34
sar edx, 4
cmp eax, edx
jb 0x5f158b
call fcn.006441b7
mov eax, dword [ebx + 0xc]
add eax, dword [esp + 0xc]
mov ecx, dword [eax]
sub ecx, 1
je 0x5f15cd
sub ecx, 1
je 0x5f15b8
sub ecx, 1
jne 0x5f15dc
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 4]
push ecx
push edx
call fcn.005fb0a0
jmp 0x5f15dc
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 4]
push ecx
push edx
call fcn.005fb060
jmp 0x5f15dc
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 4]
push ecx
call fcn.005fb030
mov eax, dword [esp + 0x14]
add dword [esp + 0xc], 0x10
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x5f1573
xor ebx, ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x5f1685
mov dword [esp + 0xc], 0xa
cmp eax, 0xa
ja 0x5f160c
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jle 0x5f1683
cmp ebx, dword [esi + 0x28]
jbe 0x5f161d
call fcn.006441b7
mov edi, 0x10
cmp dword [esi + 0x2c], edi
jb 0x5f162c
mov eax, dword [esi + 0x18]
jmp 0x5f162f
lea eax, [esi + 0x18]
cmp byte [eax + ebx], 0x30
jl 0x5f167c
cmp ebx, dword [esi + 0x28]
jbe 0x5f163f
call fcn.006441b7
cmp dword [esi + 0x2c], edi
jb 0x5f1649
mov eax, dword [esi + 0x18]
jmp 0x5f164c
lea eax, [esi + 0x18]
cmp byte [eax + ebx], 0x39
jg 0x5f167c
cmp ebx, dword [esi + 0x28]
jbe 0x5f165c
call fcn.006441b7
cmp dword [esi + 0x2c], edi
jb 0x5f1666
mov eax, dword [esi + 0x18]
jmp 0x5f1669
lea eax, [esi + 0x18]
movsx eax, byte [eax + ebx]
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x74]
sub eax, 0x30
push ebx
call fcn.00616d60
inc ebx
cmp ebx, dword [esp + 0xc]
jl 0x5f1613
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x5f178a
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x74]
sub ecx, dword [eax + 0x70]
add eax, 0x64
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
jle 0x5f178a
mov dword [esp + 0x14], ebx
mov ebx, dword [esi + 8]
mov ecx, dword [ebx + 0x74]
sub ecx, dword [ebx + 0x70]
add ebx, 0x64
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x5f16e7
call fcn.006441b7
mov ebx, dword [ebx + 0xc]
add ebx, dword [esp + 0x14]
cmp dword [ebx], 0
jne 0x5f1772
push 0
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005f0560
mov edi, eax
test edi, edi
jne 0x5f1729
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5f176e
mov edx, dword [esi + 4]
push eax
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 0x44]
call fcn.005f08e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5f176e
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, dword [ebx + 0x44]
add eax, eax
sar ecx, 2
add eax, eax
cmp ecx, eax
jge 0x5f1745
mov eax, ecx
mov dword [esp + 0xc], eax
jmp 0x5f1749
mov dword [esp + 0xc], eax
test ecx, ecx
ja 0x5f1756
call fcn.006441b7
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebx + 0x40]
sar eax, 2
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [eax + 0x74]
push edx
push ecx
call fcn.00616fd0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x48
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x5f16bf
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x5f18a0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xa4]
sub ecx, dword [eax + 0xa0]
add eax, 0x94
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
jle 0x5f18a0
mov dword [esp + 0xc], ebx
mov ebx, dword [esi + 8]
mov ecx, dword [ebx + 0xa4]
sub ecx, dword [ebx + 0xa0]
add ebx, 0x94
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x5f17fd
call fcn.006441b7
mov ebx, dword [ebx + 0xc]
add ebx, dword [esp + 0xc]
cmp dword [ebx], 0
jne 0x5f1888
push 0
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005f0560
mov edi, eax
test edi, edi
jne 0x5f183f
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5f1884
mov edx, dword [esi + 4]
push eax
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 0x44]
call fcn.005f08e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5f1884
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, dword [ebx + 0x44]
add eax, eax
sar ecx, 2
add eax, eax
cmp ecx, eax
jge 0x5f185b
mov eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5f185f
mov dword [esp + 0x14], eax
test ecx, ecx
ja 0x5f186c
call fcn.006441b7
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebx + 0x40]
sar eax, 2
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [eax + 0x74]
push edx
push ecx
call fcn.00616ed0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add dword [esp + 0xc], 0x48
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x5f17cc
xor ebx, ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x5f18b1
push eax
call fcn.006441c7
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8