Function at 0x487510
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514878
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x544354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4874d0
push 0x18
push dword [ebx + 0x34]
push dword [ebx + 0x30]
call fcn.00502bb0
xor edx, edx
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
cmp dword [ebx + 0x34], edx
jbe 0x487593
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
add eax, 0x10
add edx, dword [eax]
adc esi, dword [eax + 4]
lea eax, [eax + 0x18]
sub ecx, 1
jne 0x487567
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], edx
test esi, esi
jne 0x487586
cmp edx, 0x10000000
jbe 0x487593
push 0x68
mov byte [ebp - 0xd], 1
call fcn.00415f30
jmp 0x487597
mov byte [ebp - 0xd], 0
push 0x100000
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
call fcn.004087e0
mov dword [ebp - 4], 0
xor eax, eax
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
cmp dword [ebx + 0x34], eax
jbe 0x487711
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebx + 0x30]
add esi, ecx
mov ecx, dword [ebx]
push 0
push dword [esi + 4]
mov eax, dword [ecx]
push dword [esi]
call dword [eax + 0x10]
mov ecx, dword [ebx + 4]
push 0
push dword [esi + 0xc]
mov eax, dword [ecx]
push dword [esi + 8]
call dword [eax + 0x10]
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x20], esi
test esi, esi
jl 0x4876f5
jg 0x487625
test edi, edi
je 0x4876f5
call fcn.004954a0
test esi, esi
jg 0x48763b
jl 0x487637
mov eax, dword [ebp - 0x40]
cmp edi, eax
jae 0x48763e
mov edx, edi
jmp 0x487640
mov eax, dword [ebp - 0x40]
mov edx, eax
mov ecx, dword [ebx]
push edx
push dword [ebp - 0x44]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4876f5
mov ecx, dword [ebx + 4]
push esi
push dword [ebp - 0x44]
call fcn.0046bda0
mov eax, esi
mov esi, dword [ebp - 0x20]
cdq
sub edi, eax
sbb esi, edx
add dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
adc dword [ebp - 0x18], edx
cmp byte [ebp - 0xd], 0
je 0x4876e3
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0x7fffffff
jne 0x48769c
cmp ecx, eax
jne 0x48769c
mov dword [0x57f460], 0xffffffff
jmp 0x4876e3
push ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00493da0
mov esi, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2214]
cmp byte [eax + 0x6148], 0
jne 0x4876da
cmp esi, dword [0x57f460]
je 0x4876da
push 0
push 0x64
mov eax, esi
cdq
push edx
push eax
push 0x525f34
call fcn.00497630
mov dword [0x57f460], esi
mov esi, dword [ebp - 0x20]
test esi, esi
jg 0x487625
jl 0x4876f5
test edi, edi
jne 0x487625
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
inc eax
add ecx, 0x18
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
cmp eax, dword [ebx + 0x34]
jb 0x4875e7
mov esi, dword [ebp - 0x44]
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x487728
push eax
call fcn.004fe8b9
add esp, 4
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x487759
cmp byte [ebp - 0x34], 0
je 0x487750
push dword [ebp - 0x3c]
push esi
call fcn.00491e00
push esi
call fcn.004fe8b9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret