Function at 0x4f5cf0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x4f5d1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.00404190
jmp 0x4f5f28
mov edx, 4
mov eax, dword [0x4a4acc]
call fcn.004a4e7c
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4f5f21
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
cmp al, 1
jne 0x4f5d61
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.004ebc58
add eax, 0x14
mov edx, dword [ebp - 8]
call fcn.004e871c
jmp 0x4f5f06
cmp al, 2
jne 0x4f5efe
mov eax, dword [ebp - 8]
call fcn.0040413c
push 0
push 0
push 0x36
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0xbc]
push eax
mov eax, dword [0x51b3c8]
mov eax, dword [eax]
call eax
add esp, 0x14
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004edc3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
push 0x13
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.004ebc98
push eax
mov eax, dword [0x51b528]
mov eax, dword [eax]
call eax
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4f5ef7
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 0x64
je 0x4f5ec3
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004edc3c
mov eax, dword [0x51b1e4]
cmp word [eax], 0x2328
jb 0x4f5e7b
mov eax, dword [ebp - 8]
mov edx, 0xfa0
call fcn.004a591c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f5e74
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x16], 0xfa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
lea eax, [ebp - 0x16]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x51b1fc]
mov eax, dword [eax]
call eax
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004edc3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5ec3
mov eax, dword [ebp - 8]
push eax
movzx ecx, word [ebp - 0x16]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4a4acc]
call fcn.004a4f58
mov eax, dword [ebp - 0x10]
call fcn.004a5930
ret
mov eax, dword [0x51b1e4]
cmp word [eax], 0x1fa4
jb 0x4f5eb5
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4f5ec3
cmp byte [ebx], 2
jne 0x4f5ea9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0xc]
mov eax, ebx
call fcn.004e8c5c
jmp 0x4f5ec3
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004e8a24
jmp 0x4f5ec3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004e88a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5f06
mov eax, dword [0x51ad5c]
cmp byte [eax], 0
jne 0x4f5ef6
push 0x36
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x51b57c]
mov eax, dword [eax]
call eax
add esp, 8
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004edc3c
ret
mov eax, dword [ebp - 4]
call fcn.004edb8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5f28
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a4acc]
call fcn.004a4e98
ret
pop ebx
mov esp, ebp
pop ebp
ret