Function at 0x4d15ac
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], 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 0x4d1970
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 0x4d1768
test esi, esi
jne 0x4d1768
cmp dword [ebx + 0x40], 0
je 0x4d16bc
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
jne 0x4d1644
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [0x4e476c]
call fcn.00403d04
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x40]
mov edi, dword [eax]
call dword [edi + 0xd8]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x40]
call fcn.00404998
jmp 0x4d167b
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4d167b
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 + 0xb4]
call dword [edi + 0xb0]
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 0x14]
call fcn.00404998
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
call fcn.00408dd8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10c]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4d16b8
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.004d42dc
mov esi, eax
jmp 0x4d16bc
mov byte [ebp - 0xf], 1
test esi, esi
jne 0x4d170f
cmp byte [ebp - 0xf], 0
je 0x4d16ed
mov eax, dword [0x530624]
mov eax, dword [eax]
mov dword [ebx + 0x4c], eax
mov esi, dword [0x530624]
mov esi, dword [esi]
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x10c]
mov ecx, ebx
mov edx, dword [ebx + 0x40]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x4d1768
mov eax, dword [0x5307a0]
mov eax, dword [eax]
mov dword [ebx + 0x4c], eax
mov esi, dword [0x5307a0]
mov esi, dword [esi]
mov eax, dword [0x530b0c]
mov eax, dword [eax]
mov dword [ebx + 0x50], eax
mov byte [ebx + 0x58], 1
jmp 0x4d1768
mov eax, esi
mov edx, dword [0x4cf2e0]
call fcn.00403ce0
test al, al
je 0x4d1765
cmp byte [ebp - 0xe], 0
je 0x4d173d
mov ecx, esi
mov dl, 1
mov eax, dword [0x4cf2e0]
call fcn.004cf794
mov edi, eax
mov dword [ebx + 0x4c], edi
mov esi, edi
jmp 0x4d1740
mov dword [ebx + 0x4c], esi
cmp byte [ebx + 0x25], 0
jne 0x4d1759
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0xe4]
mov edx, dword [ebx + 0x4c]
call fcn.004176f8
jmp 0x4d1768
xor edx, edx
mov eax, dword [ebx + 0x4c]
call fcn.004cfa0c
jmp 0x4d1768
mov dword [ebx + 0x4c], esi
cmp byte [ebp - 0xd], 0
jne 0x4d1776
mov esi, dword [0x530624]
mov esi, dword [esi]
mov eax, esi
mov edx, dword [0x4cf2e0]
call fcn.00403ce0
test al, al
je 0x4d1794
mov eax, esi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4d17a7
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 0x4d188f
mov eax, dword [0x5307a0]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x4c]
je 0x4d186a
mov eax, dword [0x530624]
cmp esi, dword [eax]
je 0x4d186a
cmp byte [ebx + 0x30], 0
je 0x4d17fd
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 0x4d17f5
mov dword [ebx + 0x34], eax
jmp 0x4d188f
mov dword [ebx + 0x34], edi
jmp 0x4d188f
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4d181c
cmp dword [ebx + 0x28], 0
je 0x4d181c
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 0x4d188f
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4d183d
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 0x4d188f
test eax, eax
je 0x4d185b
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 0x4d188f
mov dword [ebx + 0x34], edi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4d188f
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4d1886
cmp dword [ebx + 0x2c], 0
je 0x4d1886
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x38], eax
mov byte [ebx + 0x3c], 1
jmp 0x4d188f
mov dword [ebx + 0x34], edi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
cmp byte [ebp - 0xd], 0
je 0x4d18aa
mov eax, dword [0x5307a0]
cmp esi, dword [eax]
je 0x4d18aa
mov eax, dword [0x530624]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x4c]
jne 0x4d1920
cmp byte [ebx + 0x3c], 0
jne 0x4d1920
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 0x4d1988
call fcn.004236f8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, 8
call fcn.00423770
cmp dword [ebx + 0x44], 0
je 0x4d18f5
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 8]
call fcn.0042451c
mov esi, eax
add esi, 2
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 8]
call fcn.00424538
mov edi, eax
jmp 0x4d18f9
xor edi, edi
xor esi, esi
lea edx, [esi + 0x18]
mov eax, dword [ebx + 0x38]
call fcn.004e13ac
mov dword [ebx + 0x38], eax
mov edx, edi
mov eax, 0x18
call fcn.004e13ac
mov edx, eax
mov eax, dword [ebx + 0x34]
call fcn.004e13ac
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]
cmp dword [eax + 4], 0
je 0x4d193e
cmp byte [ebx + 0x48], 0
je 0x4d1942
xor eax, eax
jmp 0x4d1944
mov al, 1
mov byte [ebx + 0x5b], al
cmp byte [ebx + 0x5b], 0
je 0x4d1955
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 0x4d1977
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404968
ret