Function at 0x612f4c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x613260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.00611c3c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0x11]
sub al, 0x2b
je 0x612fb0
sub al, 0x15
je 0x612fb0
sub al, 9
je 0x612fb0
sub al, 6
jne 0x613004
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0x11]
sub al, 0x2b
je 0x612fcf
sub al, 0x1e
jne case.0x61305d.0
mov eax, dword [ebp + 0xc]
call fcn.0061238c
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je case.0x61305d.0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x80000000
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp case.0x61305d.0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.00403f58
push ebp
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.00612eb4
pop ecx
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
call fcn.00403f0c
mov eax, dword [ebp - 0x1c]
call fcn.004040f0
test eax, eax
setg byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je case.0x61305d.0
cmp dword [ebp + 8], 0
je case.0x61305d.0
xor eax, eax
mov al, byte [ebp - 1]
cmp eax, 9
ja case.0x61305d.0
jmp dword [eax*4 + 0x613064]
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
call fcn.00402c1c
cmp al, 0x54
jne 0x6130a7
mov eax, dword [ebp + 8]
mov word [eax], 1
jmp case.0x61305d.0
mov eax, dword [ebp + 8]
mov word [eax], 0
jmp case.0x61305d.0
mov al, byte [ebp - 1]
sub al, 2
jne 0x6130d0
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0040958c
mov edx, dword [ebp + 8]
mov word [edx], ax
jmp case.0x61305d.0
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0040958c
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp case.0x61305d.0
mov eax, dword [ebp - 0x1c]
call fcn.006123d0
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
jmp case.0x61305d.0
mov eax, dword [ebp - 0x1c]
call fcn.006123d0
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
jmp case.0x61305d.0
lea eax, [ebp - 0x34]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 0x1c]
call fcn.004042f4
mov eax, dword [ebp - 0x34]
mov edx, 1
call fcn.0040958c
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x34]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 0x1c]
call fcn.004042f4
mov eax, dword [ebp - 0x34]
mov edx, 1
call fcn.0040958c
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x34]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004042f4
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.0040958c
mov word [ebp - 0x2a], ax
cmp word [ebp - 0x26], 0
jne 0x613189
mov word [ebp - 0x26], 1
cmp word [ebp - 0x28], 0
jne 0x613196
mov word [ebp - 0x28], 1
cmp word [ebp - 0x2a], 0x64
jae 0x6131d6
lea eax, [ebp - 0x38]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004042f4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004091f4
mov eax, dword [ebp - 0x34]
call fcn.004040f0
dec eax
sub eax, 2
jae 0x6131d6
push ebp
lea eax, [ebp - 0x2a]
call fcn.00612efc
pop ecx
xor eax, eax
push ebp
push 0x61321f
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, word [ebp - 0x26]
mov dx, word [ebp - 0x28]
mov ax, word [ebp - 0x2a]
call fcn.0040ad90
fstp qword [ebp - 0x24]
wait
cmp dword [ebp + 8], 0
je 0x613215
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea eax, [ebp - 0x40]
call fcn.0040aaa0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp case.0x61305d.0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
call fcn.0040a094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x613267
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403e98
lea eax, [ebp - 0x1c]
call fcn.00403e74
ret