Function at 0x4baca4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bb067
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
mov byte [ebp - 0xd], al
mov byte [ebp - 0xf], 0
mov esi, dword [ebx + 0x4c]
cmp byte [ebp - 0xd], 0
je 0x4bae5d
test esi, esi
jne 0x4bae5d
cmp dword [ebx + 0x40], 0
je 0x4badb1
mov eax, dword [ebp - 4]
cmp word [eax + 0xa6], 0
jne 0x4bad39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [0x4cda84]
call fcn.00403104
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x40]
mov edi, dword [eax]
call dword [edi + 0x90]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x40]
call fcn.00403c38
jmp 0x4bad70
mov eax, dword [ebp - 4]
cmp word [eax + 0xae], 0
je 0x4bad70
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x9c]
mov edi, dword [ebp - 4]
mov ecx, dword [ebx + 0x40]
mov eax, dword [edi + 0xb0]
call dword [edi + 0xac]
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 0x14]
call fcn.00403c38
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x40]
call fcn.0040781c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x104]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
jne 0x4badad
lea eax, [ebx + 0x50]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebx + 0x58]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x54]
call fcn.004bd96c
mov esi, eax
jmp 0x4badb1
mov byte [ebp - 0xf], 1
test esi, esi
jne 0x4bae04
cmp byte [ebp - 0xf], 0
je 0x4bade2
mov eax, dword [0x534c74]
mov eax, dword [eax]
mov dword [ebx + 0x4c], eax
mov esi, dword [0x534c74]
mov esi, dword [esi]
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x104]
mov ecx, ebx
mov edx, dword [ebx + 0x40]
mov edi, dword [eax]
call dword [edi + 0x38]
jmp 0x4bae5d
mov eax, dword [0x534de0]
mov eax, dword [eax]
mov dword [ebx + 0x4c], eax
mov esi, dword [0x534de0]
mov esi, dword [esi]
mov eax, dword [0x5350b4]
mov eax, dword [eax]
mov dword [ebx + 0x50], eax
mov byte [ebx + 0x58], 1
jmp 0x4bae5d
mov eax, esi
mov edx, dword [0x4b6abc]
call fcn.004030ec
test al, al
je 0x4bae5a
cmp byte [ebp - 0xe], 0
je 0x4bae32
mov ecx, esi
mov dl, 1
mov eax, dword [0x4b6abc]
call fcn.004b7f90
mov edi, eax
mov dword [ebx + 0x4c], edi
mov esi, edi
jmp 0x4bae35
mov dword [ebx + 0x4c], esi
cmp byte [ebx + 0x25], 0
jne 0x4bae4e
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0xdc]
mov edx, dword [ebx + 0x4c]
call fcn.0040f5e0
jmp 0x4bae5d
xor edx, edx
mov eax, dword [ebx + 0x4c]
call fcn.004b8928
jmp 0x4bae5d
mov dword [ebx + 0x4c], esi
cmp byte [ebp - 0xd], 0
jne 0x4bae6b
mov esi, dword [0x534c74]
mov esi, dword [esi]
mov eax, esi
mov edx, dword [0x4b6abc]
call fcn.004030ec
test al, al
je 0x4bae89
mov eax, esi
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4bae9c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0xc], eax
cmp byte [ebx + 0x3c], 0
jne 0x4baf84
mov eax, dword [0x534de0]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x4c]
je 0x4baf5f
mov eax, dword [0x534c74]
cmp esi, dword [eax]
je 0x4baf5f
cmp byte [ebx + 0x30], 0
je 0x4baef2
push 0x64
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4baeea
mov dword [ebx + 0x34], eax
jmp 0x4baf84
mov dword [ebx + 0x34], edi
jmp 0x4baf84
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4baf11
cmp dword [ebx + 0x28], 0
je 0x4baf11
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4baf84
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4baf32
mov dword [ebx + 0x34], edx
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4baf84
test eax, eax
je 0x4baf50
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0xc]
push eax
push edi
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x3c], 1
jmp 0x4baf84
mov dword [ebx + 0x34], edi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4baf84
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4baf7b
cmp dword [ebx + 0x2c], 0
je 0x4baf7b
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4baf84
mov dword [ebx + 0x34], edi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
cmp byte [ebp - 0xd], 0
je 0x4baf9f
mov eax, dword [0x534de0]
cmp esi, dword [eax]
je 0x4baf9f
mov eax, dword [0x534c74]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x4c]
jne 0x4bb015
cmp byte [ebx + 0x3c], 0
jne 0x4bb015
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x4bb080
call fcn.00418448
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 8
call fcn.004184c0
cmp dword [ebx + 0x44], 0
je 0x4bafea
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 8]
call fcn.00419420
mov esi, eax
add esi, 2
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 8]
call fcn.0041943c
mov edi, eax
jmp 0x4bafee
xor edi, edi
xor esi, esi
lea edx, [esi + 0x18]
mov eax, dword [ebx + 0x38]
call fcn.004ca414
mov dword [ebx + 0x38], eax
mov edx, edi
mov eax, 0x18
call fcn.004ca414
mov edx, eax
mov eax, dword [ebx + 0x34]
call fcn.004ca414
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 4]
cmp dword [eax], 0
je 0x4bb035
cmp byte [ebx + 0x48], 0
je 0x4bb039
xor eax, eax
jmp 0x4bb03b
mov al, 1
mov byte [ebx + 0x5b], al
cmp byte [ebx + 0x5b], 0
je 0x4bb04c
add dword [ebx + 8], 2
add dword [ebx + 0xc], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb06e
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403c08
ret