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

Disassembly:
push 0xffffffffffffffff
push 0x10022e78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x1002b060]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
xor ebx, ebx
xor edx, edx
cmp eax, edx
setle bl
dec ebx
and eax, ebx
cmp eax, 0x270f
jge 0x10009045
mov ebx, eax
jmp 0x10009051
mov dword [esp + 0x34], 0x270f
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
cmp dword [esp + 0x3c], edx
je 0x100090bd
cmp ecx, edx
je 0x10009074
mov eax, dword [ecx]
lea edi, [esp + 0x30]
push edi
push edx
push edx
push ecx
mov ecx, dword [eax + 0x14]
call ecx
jmp 0x10009084
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push edx
push edx
push edx
mov edx, dword [eax + 0x48]
push esi
call edx
mov edi, eax
test edi, edi
jge 0x100090b9
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100090a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esp + 0x30]
cmp dword [ebp + 0x18], 0
je 0x100090cd
mov dword [esp + 0x10], 0xffffff00
jmp 0x100090f5
cmp dword [esp + 0x38], 0
je 0x100090ed
mov eax, dword [0x10036224]
neg eax
sbb eax, eax
and eax, 0xffcdcccc
add eax, 0xffff0000
mov dword [esp + 0x10], eax
jmp 0x100090f5
mov dword [esp + 0x10], 0xff00ff00
mov eax, dword [ebp + 0x28]
mov edi, 0x3e8
mov ecx, 4
mov dword [esp + 0x14], 1
cmp eax, 2
je 0x10009129
cmp eax, 5
je 0x10009129
cmp ebx, edi
jge 0x10009129
mov dword [esp + 0x38], 0x64
mov edi, dword [esp + 0x38]
mov ecx, 3
test ecx, ecx
jle 0x1000922e
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
jmp 0x10009144
mov edi, dword [esp + 0x38]
cmp ebx, edi
jge 0x10009169
cmp dword [esp + 0x14], 0
je 0x10009169
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], eax
jmp 0x10009214
mov eax, ebx
cdq
idiv edi
mov dword [esp + 0x14], 0
mov ecx, eax
mov edx, ecx
imul edx, edi
sub ebx, edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea edi, [ecx + ebp]
add eax, edx
imul edi, edi, 0xa4
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
je 0x10009259
xor ebx, ebx
cmp dword [edi + 0x100306f8], ebx
jle 0x100091de
lea ebp, [edi + 0x100306fc]
mov edx, dword [esp + 0x30]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x8c]
push 0xff000000
push ebp
push edx
push esi
call eax
inc ebx
add ebp, 0x10
cmp ebx, dword [edi + 0x100306f8]
jl 0x100091bc
xor ebx, ebx
cmp dword [edi + 0x10032098], ebx
jle 0x10009210
lea ebp, [edi + 0x1003209c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x8c]
push edx
push ebp
push eax
push esi
call ecx
inc ebx
add ebp, 0x10
cmp ebx, dword [edi + 0x10032098]
jl 0x100091ee
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
add ebp, 0xa
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebp
jne 0x10009140
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
test edx, edx
je 0x10009242
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
fldz
mov edx, dword [esi]
mov edx, dword [edx + 0xac]
push 0
push ecx
mov ecx, dword [edi + 0x100306f8]
fstp dword [esp]
push 0xff000000
push 1
lea eax, [edi + 0x100306fc]
push eax
push ecx
push esi
call edx
fldz
mov eax, dword [esi]
push 0
push ecx
mov ecx, dword [esp + 0x18]
fstp dword [esp]
push ecx
mov ecx, dword [edi + 0x10032098]
push 1
lea edx, [edi + 0x1003209c]
push edx
mov edx, dword [eax + 0xac]
push ecx
push esi
call edx
jmp 0x10009214