Function at 0x485c30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x485e86
mov eax, dword [ebp - 4]
test byte [eax + 0x18], 0x10
je 0x485c5e
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
jmp 0x485e86
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 1
xor ecx, ecx
push ebp
push 0x485e7f
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.00409128
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, ebx
call fcn.00407c7c
test eax, eax
jl 0x485e6a
mov eax, dword [ebp - 4]
and byte [eax + 0x18], 0xfe
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jle 0x485caa
add ebx, 0x64
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
jmp 0x485cb3
add ebx, 0x32
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x485e2a
xor ecx, ecx
push ebp
push 0x485e19
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
je 0x485e0f
call fcn.00439f78
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
call fcn.0043a02c
lea edx, [ebp - 0x2c]
call fcn.00439ed4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
je 0x485d5f
cmp byte [0x4f3b88], 0
jne 0x485d5f
push 0x410
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
push ecx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.00409848
mov ecx, ebx
mov dl, 1
mov eax, dword [0x43a2d8]
call fcn.0043a338
mov ebx, eax
push 1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0x18]
mov eax, ebx
call fcn.00404468
jmp 0x485df5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
je 0x485d9e
call fcn.004096b0
cmp ebx, eax
jne 0x485d9e
cmp byte [0x4f3b88], 0
jne 0x485d9e
push 0x410
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
push ecx
push edx
push eax
push 0xffffffffffffffff
push ebx
call fcn.00409848
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00409678
test eax, eax
je 0x485df5
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
add dword [ebp - 0x10], eax
mov al, 1
mov ecx, ebx
mov dl, 1
mov eax, dword [0x43a2d8]
call fcn.0043a338
mov ebx, eax
push 0
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0x18]
mov eax, ebx
call fcn.00404468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp byte [eax + 8], 0
je 0x485e0f
mov eax, dword [ebp - 4]
or byte [eax + 0x18], 1
mov eax, dword [ebp - 4]
or byte [eax + 0x18], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485e2a
mov eax, dword [ebp - 4]
test byte [eax + 0x18], 1
je 0x485e44
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
jmp 0x485e6a
mov eax, dword [ebp - 4]
mov byte [eax + 0x31], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jle 0x485e6a
mov eax, dword [ebp - 4]
dec dword [eax + 0x34]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x485e6a
mov eax, dword [ebp - 4]
or byte [eax + 0x18], 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485e86
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret