Function at 0x4be5e3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50761e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54d894]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x54d894]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x13c]
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x114], ebx
je 0x4be822
test ecx, ecx
je 0x4be64f
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.004bb0c8
mov ecx, eax
inc ebx
jmp 0x4be696
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x28]
call fcn.0043f095
mov dword [esp + 0x50], 1
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x14], 2
mov esi, dword [ecx]
mov ecx, eax
call fcn.00426faa
push ecx
push ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push eax
call dword [esi + 0xbc]
mov esi, dword [esp + 0x1c]
mov ecx, eax
push 6
pop ebx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov dword [ecx], 0x51d44c
mov dword [esp + 0x50], 2
test bl, 4
je 0x4be6c1
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffb
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
pop ecx
mov byte [esp + 0x50], 3
test bl, 2
je 0x4be6e0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34]
and ebx, 0xfffffffd
push edx
mov dword [esp + 0x18], ebx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov byte [esp + 0x50], 4
test bl, 1
je 0x4be6f9
mov eax, dword [esp + 0x24]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
pop ecx
lea ebx, [edi + 0x13c]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4be712
and dword [ebx], 0
test ecx, ecx
je 0x4be712
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [edi + 0x14]
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
mov ecx, ebx
call fcn.0040923a
cmp dword [eax], 0
je 0x4be736
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push dword [eax]
call fcn.004914a3
mov eax, dword [ebx]
push 0
and byte [eax + 0x68], 0xdf
lea eax, [esp + 0x24]
mov ecx, dword [ebx]
push eax
call fcn.004bafc7
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x14]
mov esi, dword [ebx]
add ecx, 0x70
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 5
lea ecx, [esi + 0x70]
mov edx, dword [esi + 0x70]
push eax
call dword [edx + 8]
push ecx
mov ecx, esp
mov byte [esp + 0x54], 4
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
call fcn.0042db1d
pop ecx
mov ecx, dword [ebx]
call fcn.0048f90c
mov cl, byte [edi + 0x12c]
cmp al, cl
je 0x4be7b1
test cl, cl
je 0x4be7a4
mov ecx, dword [edi + 0x14]
call fcn.0049361e
test al, al
je 0x4be7a4
mov al, 1
jmp 0x4be7a6
xor al, al
push ecx
mov ecx, dword [ebx]
push 0
push eax
call fcn.004bb1ef
mov ecx, dword [ebx]
lea eax, [edi + 0xc]
test eax, eax
je 0x4be7c6
push eax
add ecx, 0xa4
call fcn.00412b44
cmp dword [edi + 0x18], 2
je 0x4be7d2
cmp dword [edi + 0x18], 3
jne 0x4be806
push ecx
push dword [edi + 0x14]
mov ecx, dword [ebx]
call fcn.0049278a
push 0
lea ecx, [esp + 0x18]
call fcn.00496e4e
lea eax, [esp + 0x14]
mov byte [esp + 0x50], 6
mov ecx, dword [ebx]
push eax
call fcn.0049198a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4be806
call fcn.00496e00
or dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x20]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
mov esi, dword [esp + 0x20]
xor ebx, ebx
pop ecx
jmp 0x4be832
test ecx, ecx
je 0x4be832
mov dword [edi + 0x13c], ebx
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x18], 8
jne 0x4be951
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
lea ebx, [edi + 0x140]
push 1
push dword [edi + 0x14]
call dword [eax + 0x18]
push eax
mov ecx, ebx
call fcn.0040923a
cmp dword [eax], 0
je 0x4be868
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push dword [eax]
call fcn.004914a3
mov ecx, dword [ebx]
lea eax, [edi + 8]
push eax
call fcn.0049817d
mov ecx, dword [esp + 0x1c]
lea esi, [edi + 0x144]
add ecx, 0x2c
push 0
push dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
mov ecx, esi
call fcn.0040923a
cmp dword [eax], 0
je 0x4be8a3
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push dword [eax]
call fcn.004914a3
mov ecx, dword [esi]
lea eax, [edi + 8]
push eax
call fcn.0049817d
cmp dword [edi + 0x128], 0
je 0x4be8cf
push ecx
push dword [edi + 0x14]
mov ecx, dword [ebx]
call fcn.0049278a
push ecx
push dword [edi + 0x14]
mov ecx, dword [esi]
call fcn.0049278a
jmp 0x4be905
mov eax, dword [ebx]
push 0x64
pop edx
push 0x14
mov dword [eax + 0xa8], 0x12c
mov dword [eax + 0xac], edx
pop ecx
mov dword [eax + 0xb0], ecx
mov eax, dword [esi]
mov dword [eax + 0xa8], 0x12c
mov dword [eax + 0xac], edx
mov dword [eax + 0xb0], ecx
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x14]
add ecx, 0x70
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x50], 7
lea edx, [esp + 0x14]
mov ecx, dword [ebx]
add ecx, 0x70
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
add ecx, 0x70
push edx
mov eax, dword [ecx]
call dword [eax + 8]
or dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0042db1d
pop ecx
jmp 0x4be97d
mov ecx, dword [edi + 0x140]
test ecx, ecx
je 0x4be967
mov dword [edi + 0x140], ebx
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x144]
test ecx, ecx
je 0x4be97d
mov dword [edi + 0x144], ebx
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x1c]
push dword [edi + 0x14]
add ecx, 0x2c
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x3c], eax
je 0x4be99c
mov dword [ecx + 0x3c], eax
call fcn.00491a88
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [edi + 0x14]
call fcn.00491a88
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004db457
mov esp, ebp
pop ebp
ret 4