Function at 0x518a2c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x518a57
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.004050e4
jmp 0x518c76
mov edx, 4
mov eax, dword [0x4d8b30]
call fcn.004d8dc4
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x518c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 1
jne 0x518a9b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.0050fcbc
add eax, 0x14
mov edx, dword [ebp - 8]
call fcn.0050c254
jmp 0x518c54
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x518c4c
mov eax, dword [ebp - 8]
call fcn.00405090
push 0
push 0
push 0x36
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0xbc]
push eax
mov eax, dword [0x5582cc]
mov eax, dword [eax]
call eax
add esp, 0x14
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00512504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push eax
push 0x13
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.0050fd3c
push eax
mov eax, dword [0x55844c]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x518c45
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0x64
je 0x518c11
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00512504
mov eax, dword [0x5580d4]
cmp word [eax], 0x2328
jb 0x518bbf
mov eax, dword [ebp - 8]
mov edx, 0xfa0
call fcn.004e2088
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x518bb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x1e], 0xfa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push eax
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5580f8]
mov eax, dword [eax]
call eax
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00512504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c11
mov eax, dword [ebp - 8]
push eax
movzx ecx, word [ebp - 0x1e]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4d8b30]
call fcn.004d8ea0
mov eax, dword [ebp - 0x10]
call fcn.004e209c
ret
mov eax, dword [0x5580d4]
cmp word [eax], 0x1fa4
jb 0x518c03
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x518c11
mov eax, dword [ebp - 0x14]
cmp byte [eax], 2
jne 0x518bf6
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0050c800
jmp 0x518c11
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0050c5ac
jmp 0x518c11
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.0050c404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c54
mov eax, dword [0x557ba4]
cmp byte [eax], 0
jne 0x518c44
push 0x36
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5584a0]
mov eax, dword [eax]
call eax
add esp, 8
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00512504
ret
mov eax, dword [ebp - 4]
call fcn.0051242c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c76
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4d8b30]
call fcn.004d8de0
ret
mov esp, ebp
pop ebp
ret