Function at 0x517510
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5bfb87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], esi
call fcn.00530b90
lea ecx, [esi + 0x64]
mov dword [esp + 0x34], 0
call fcn.00581a0e
mov eax, dword [esp + 0x40]
mov ebx, 1
dec eax
mov byte [esp + 0x34], bl
mov dword [esi], 0x5d8eb4
mov dword [esi + 0x30], ebx
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
je 0x5176c3
dec eax
jne 0x51779f
push 0x118
call fcn.00586401
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x34], 6
je 0x5175a2
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x34]
push ecx
mov ecx, eax
call fcn.004b9210
jmp 0x5175a4
xor eax, eax
lea edx, [esp + 0x40]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x61d3a0]
push 0x13d
push edx
mov byte [esp + 0x3c], bl
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0xe4
mov byte [esp + 0x38], 7
call fcn.00586906
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], bl
call int.0058677d
mov ecx, dword [0x61d3a0]
lea eax, [esp + 8]
push 0x12f
push eax
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0xec
mov byte [esp + 0x38], 8
call fcn.00586906
lea ecx, [esp + 8]
mov byte [esp + 0x34], bl
call int.0058677d
lea ecx, [esp + 0xc]
push 0x140
push ecx
mov ecx, dword [0x61d3a0]
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0x10c
mov byte [esp + 0x38], 9
call fcn.00586906
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call int.0058677d
mov ecx, dword [0x61d3a0]
lea edx, [esp + 0x10]
push 0x141
push edx
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0x110
mov byte [esp + 0x38], 0xa
call fcn.00586906
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call int.0058677d
mov ecx, dword [0x61d3a0]
lea eax, [esp + 0x14]
push 0x13f
push eax
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0x114
mov byte [esp + 0x38], 0xb
call fcn.00586906
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x14]
jmp 0x51779a
push 0xf8
call fcn.00586401
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x34], 2
je 0x5176ee
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x34]
push ecx
mov ecx, eax
call fcn.004d3a70
jmp 0x5176f0
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x61d3a0]
push 0x13c
push edx
mov byte [esp + 0x3c], bl
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0xe4
mov byte [esp + 0x38], 3
call fcn.00586906
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call int.0058677d
mov ecx, dword [0x61d3a0]
lea eax, [esp + 0x1c]
push 0x12f
push eax
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0xec
mov byte [esp + 0x38], 4
call fcn.00586906
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call int.0058677d
lea ecx, [esp + 0x20]
push 0x13e
push ecx
mov ecx, dword [0x61d3a0]
call fcn.0055e860
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0xf0
mov byte [esp + 0x38], 5
call fcn.00586906
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x20]
call int.0058677d
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc