Function at 0x5faf6c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5fb18d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [esi + 0x30]
sbb edx, dword [esi + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp dword [esi + 0x1c], 0
je 0x5fb165
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov ecx, 1
mov edx, ebx
mov eax, 0x5fb1a8
call fcn.00409d34
mov edi, eax
mov ecx, 1
mov edx, ebx
mov eax, 0x5fb1b8
call fcn.00409d34
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x10]
jge 0x5fb165
mov eax, ebx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x5fb00d
mov edx, dword [ebp - 0x34]
sub edx, 4
mov edx, dword [edx]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5fb021
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x34]
sub ecx, edi
dec ecx
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x10]
sub ecx, eax
lea edx, [edi + 1]
mov eax, ebx
call fcn.00409b24
mov eax, dword [ebp - 4]
test eax, eax
je 0x5fb049
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
mov ax, 0x2a
call fcn.005f7ca8
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x44]
wait
push dword [ebp - 0x40]
push dword [ebp - 0x44]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x4c]
wait
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.005f9280
fstp qword [ebp - 0x28]
wait
cmp byte [esi + 0x40], 0
je 0x5fb14e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, 1
mov edx, ebx
mov eax, 0x5fb1c8
call fcn.00409d34
mov dword [ebp - 0x14], eax
cmp edi, dword [ebp - 0x14]
jle 0x5fb14e
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebp - 0x14]
sub edx, 2
mov ecx, 2
mov eax, ebx
call fcn.00409b24
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 8]
call fcn.00421384
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov ecx, 2
mov eax, ebx
call fcn.00409b24
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0xc]
call fcn.00421384
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00422014
test al, al
je 0x5fb14e
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00422014
test al, al
je 0x5fb14e
mov eax, dword [ebp - 0x1c]
dec eax
imul eax, eax, 0x64
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x44]
wait
push dword [ebp - 0x40]
push dword [ebp - 0x44]
imul eax, dword [ebp - 0x20], 0x64
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x4c]
wait
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.005f9280
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call dword [esi + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb194
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004087a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004087a8
ret