Function at 0x512010
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x512018
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x512307
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2b], 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x51231c
mov edx, 0x512330
mov eax, ebx
call fcn.0050e4f4
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x2c]
call fcn.00404130
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0050e750
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x30]
call fcn.00404130
mov eax, dword [ebx + 0x30]
mov edx, 0x512344
call fcn.00404488
je 0x512096
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebx + 0x30]
mov eax, ebx
call fcn.0050ebb8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x40]
call fcn.00404130
jmp 0x5120b1
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebx + 0x2c]
mov eax, ebx
call fcn.0050ebb8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x40]
call fcn.00404130
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00510d3c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x44]
call fcn.00404130
lea ecx, [ebp - 0x18]
mov edx, 0x512350
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x48]
call fcn.00404130
mov eax, dword [ebx + 0x48]
mov edx, 0x512344
call fcn.00404488
jne 0x5120fc
lea eax, [ebx + 0x48]
mov edx, 0x512368
call fcn.00404130
lea ecx, [ebp - 0x1c]
mov edx, 0x51238c
mov eax, ebx
call fcn.00511944
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x54]
call fcn.00404130
lea ecx, [ebp - 0x20]
mov edx, 0x51239c
mov eax, ebx
call fcn.00511944
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x58]
call fcn.00404130
lea ecx, [ebp - 0x24]
mov edx, 0x5123b0
mov eax, ebx
call fcn.00511944
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x5c]
call fcn.00404130
mov eax, dword [ebx + 0x5c]
mov edx, 0x512344
call fcn.00404488
jne 0x512173
lea ecx, [ebp - 0x28]
mov edx, 0x5123c0
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x5c]
call fcn.00404130
lea ecx, [ebp - 0x2c]
mov edx, 0x5123dc
mov eax, ebx
call fcn.00511944
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x60]
call fcn.00404130
mov eax, dword [ebx + 0x60]
mov edx, 0x512344
call fcn.00404488
jne 0x5121b6
lea ecx, [ebp - 0x30]
mov edx, 0x5123ec
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x60]
call fcn.00404130
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00511ae4
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x64]
call fcn.00404130
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00511c70
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x68]
call fcn.00404130
lea ecx, [ebp - 0x3c]
mov edx, 0x512404
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x6c]
call fcn.00404130
lea ecx, [ebp - 0x40]
mov edx, 0x51241c
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x78]
call fcn.00404130
lea ecx, [ebp - 0x44]
mov edx, 0x512430
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x74]
call fcn.00404130
lea ecx, [ebp - 0x48]
mov edx, 0x512444
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x70]
call fcn.00404130
lea ecx, [ebp - 0x4c]
mov edx, 0x512458
mov eax, ebx
call fcn.00511e3c
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x50]
call fcn.00404130
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.00511310
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x4c]
call fcn.00404130
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.005114ec
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x80]
call fcn.00404130
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.005117a0
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x84]
call fcn.00404130
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.00510fd4
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x3c]
call fcn.00404130
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.00511174
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x7c]
call fcn.00404130
lea edx, [ebp - 0x64]
mov eax, 0x512474
call fcn.00655810
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x88]
call fcn.00404130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51230e
lea eax, [ebp - 0x64]
mov edx, 0x19
call fcn.00404100
ret