Function at 0x506794
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x506a33
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dl, byte [ebx + 0x30]
je 0x506a0d
sub dl, 1
jb 0x506999
jne 0x506a0d
mov eax, dword [ebx + 0x38]
sub eax, 1
jb 0x5067e0
je 0x506800
dec eax
je 0x50684b
jmp 0x50687b
lea eax, [ebx + 0x5c]
call fcn.00407290
push eax
mov eax, dword [0x5c0460]
push eax
push 1
push 0
mov eax, dword [0x5bfdc4]
push eax
call sub.ole32.dll_CoCreateInstance
jmp 0x50687b
lea eax, [ebx + 0x60]
call fcn.00407290
push eax
mov eax, dword [0x5bf214]
push eax
push 1
push 0
mov eax, dword [0x5bfbc0]
push eax
call sub.ole32.dll_CoCreateInstance
lea eax, [ebx + 0x5c]
call fcn.00407290
push eax
mov eax, dword [0x5c0460]
push eax
push 1
push 0
mov eax, dword [0x5bfdc4]
push eax
call sub.ole32.dll_CoCreateInstance
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 0x60]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x50687b
lea eax, [ebx + 0x64]
call fcn.00407290
push eax
mov eax, dword [0x5bf300]
push eax
push 1
push 0
mov eax, dword [0x5bfcd8]
push eax
call sub.ole32.dll_CoCreateInstance
lea eax, [ebx + 0x5c]
call fcn.00407290
push eax
mov eax, dword [ebx + 0x64]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov byte [ebx + 0x30], 1
lea eax, [ebx + 0x68]
call fcn.00407290
push eax
push 0x506a40
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
mov dword [ebp - 0x10], eax
test byte [ebp - 0xd], 0x80
sete byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x5068c5
push 0
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
mov eax, dword [ebx + 0x68]
push eax
push 0x8001
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
lea eax, [ebp - 4]
call fcn.00407290
push eax
push 0x5bec68
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
mov dword [ebp - 0x18], eax
test byte [ebp - 0x15], 0x80
sete byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
je 0x506952
lea eax, [ebp - 0xc]
call fcn.00407290
push eax
mov eax, dword [0x5bfc20]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
cmp dword [ebp - 0xc], 0
je 0x50691a
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0xc]
call fcn.00407290
lea eax, [ebp - 8]
call fcn.00407290
push eax
mov eax, dword [0x5c002c]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
cmp dword [ebp - 8], 0
je 0x50694a
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 8]
call fcn.00407290
lea eax, [ebp - 4]
call fcn.00407290
movzx edx, byte [ebx + 0x6c]
mov eax, ebx
call fcn.00507a48
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00508134
mov eax, ebx
call fcn.00507cf4
cmp word [ebx + 0x82], 0
je 0x506986
mov edx, ebx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
mov ecx, 1
mov edx, 7
mov eax, ebx
call fcn.00507eb8
jmp 0x506a0d
xor ecx, ecx
mov edx, 7
mov eax, ebx
call fcn.00507eb8
mov eax, ebx
call fcn.00507c14
cmp dword [ebx + 0x68], 0
je 0x5069c7
push 1
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
lea eax, [ebx + 0x68]
call fcn.00407290
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x5069d8
call fcn.00502fa8
xor eax, eax
mov dword [ebx + 0x70], eax
push 0
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
cmp dword [ebx + 0x78], 0
je 0x5069f1
lea eax, [ebx + 0x78]
call fcn.00502e70
lea eax, [ebx + 0x5c]
call fcn.00407290
lea eax, [ebx + 0x60]
call fcn.00407290
lea eax, [ebx + 0x64]
call fcn.00407290
mov byte [ebx + 0x30], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506a3a
lea eax, [ebp - 0xc]
call fcn.00407290
lea eax, [ebp - 8]
call fcn.00407290
lea eax, [ebp - 4]
call fcn.00407290
ret