Function at 0x10012b90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005726d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1007301c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
test dword [ebx + 0x14], 0x4000
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x70], eax
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x68], ecx
mov eax, dword [ecx]
je 0x10012db5
call dword [eax + 4]
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
call fcn.10011e20
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x68]
mov ebx, eax
test ecx, ecx
je 0x10012c1c
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10012c1c
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov dword [ebp - 0x48], 0
push eax
push 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.100114b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.10008240
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x10012ca2
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012c98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e8c
push edx
push ecx
call fcn.1002aeca
add esp, 8
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
cmp ecx, edx
jae 0x10012cc3
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
xor edx, edx
mov dword [eax + ecx*2], edx
jmp 0x10012cd5
push 0
mov byte [ebp - 0x64], 0
push dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000a190
mov eax, dword [ebx]
lea ecx, [ebp - 0x60]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.10008240
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x10012d2e
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012d24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e91
push edx
push ecx
call fcn.1002aeca
add esp, 8
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 1
cmovae eax, dword [ebp - 0x48]
push eax
push 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10011660
add esp, 0x14
sub eax, 0
je 0x10012d68
sub eax, 1
je 0x10012d63
mov byte [esi], 0
mov dword [edi], 2
jmp 0x10012d6b
mov byte [esi], 1
jmp 0x10012d6b
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x10012e49
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012da6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e96
push edx
push ecx
call fcn.1002aeca
add esp, 8
jmp 0x10012e49
call dword [eax + 4]
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 4
push eax
push dword [ebx + 0x14]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x64]
call fcn.100121e0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x68]
mov ebx, eax
test ecx, ecx
je 0x10012dfe
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10012dfe
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp - 0x30], 0
jne 0x10012e09
mov byte [esi], 0
jmp 0x10012e43
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.100160b4
mov ecx, eax
add esp, 0x10
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x64], eax
je 0x10012e40
cmp dword [ebp - 0x68], 0
jne 0x10012e40
test ecx, ecx
setne al
mov byte [esi], al
test ecx, ecx
je 0x10012e49
cmp ecx, 1
je 0x10012e49
jmp 0x10012e43
mov byte [esi], 1
mov dword [edi], 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10012ae0
add esp, 8
test al, al
je 0x10012e60
or dword [edi], 1
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ac6c
mov esp, ebp
pop ebp
ret 0x20
call fcn.10039a08
call fcn.10039a08
call fcn.10039a08
int3