Function at 0x51c330
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6072e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
call fcn.0051baa0
mov eax, dword [0x6516d0]
mov dword [esi + 4], eax
inc eax
mov dword [0x6516d0], eax
mov eax, dword [ebp + 8]
lea edi, [esi + 0x30]
cmp eax, edi
je 0x51c37f
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ebp + 0xb]
push edx
push ecx
push eax
mov ecx, edi
call fcn.0040c800
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x64]
mov byte [esi + 0x72], 0
mov byte [esi + 0x73], 0
mov dword [esi + 0x74], 2
call fcn.004f26c0
push 2
push 0
push 0x616224
mov ecx, edi
mov dword [esi + 0x54], 0x50
call fcn.00509230
xor ebx, ebx
cmp eax, 0xffffffff
je 0x51c41d
lea ebx, [eax + 2]
dec eax
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0050cd80
lea ecx, [esi + 0x3c]
cmp eax, ecx
mov dword [ebp - 4], 0
je 0x51c3ee
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp + 0xb]
push eax
push edx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, ecx
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x51c41d
cmp eax, 0x80
jbe 0x51c413
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x51c41d
push eax
push ecx
call fcn.00401f50
add esp, 8
push 1
push ebx
push 0x612690
mov ecx, edi
call fcn.00509230
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
mov ecx, edi
je 0x51c4fa
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.0050cd80
lea ebx, [esi + 0x48]
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x51c467
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ebp + 0xb]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.0040c800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, ecx
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x51c496
cmp eax, 0x80
jbe 0x51c48c
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x51c496
push eax
push ecx
call fcn.00401f50
add esp, 8
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.0050cd80
lea ecx, [esi + 0x58]
cmp eax, ecx
mov dword [ebp - 4], 2
je 0x51c4c5
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea edi, [ebp + 0xb]
push edi
push edx
push eax
call fcn.0040c800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, ecx
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x51c567
cmp eax, 0x80
jbe 0x51c4ee
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x51c567
push eax
push ecx
call fcn.00401f50
add esp, 8
jmp 0x51c567
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x18]
push edx
call fcn.0050cd80
lea ebx, [esi + 0x48]
cmp eax, ebx
mov dword [ebp - 4], 3
je 0x51c526
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ebp + 0xb]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.0040c800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, ecx
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x51c555
cmp eax, 0x80
jbe 0x51c54b
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x51c555
push eax
push ecx
call fcn.00401f50
add esp, 8
push 0x612691
push 0x612690
lea ecx, [esi + 0x58]
call fcn.00413300
push 0
push 0x3a
mov ecx, ebx
call fcn.00512100
mov edi, eax
cmp edi, 0xffffffff
je 0x51c628
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.0050cd80
mov eax, dword [eax]
push eax
call fcn.005e0d3a
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x10]
add esp, 4
sub eax, ecx
test ecx, ecx
je 0x51c5c4
cmp eax, 0x80
jbe 0x51c5ba
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x51c5c4
push eax
push ecx
call fcn.00401f50
add esp, 8
push edi
push 0
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.0050cd80
cmp eax, ebx
mov dword [ebp - 4], 4
je 0x51c5ef
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [ebp + 0xb]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0040c800
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, ecx
test ecx, ecx
je 0x51c628
cmp eax, 0x80
jbe 0x51c61e
push ecx
call fcn.005e05ca
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push eax
push ecx
call fcn.00401f50
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4