Function at 0x4fb340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x7bf010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x9eba88]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 0x1fc]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov edi, dword [ecx + 0x2c]
test edi, edi
je 0x4fb3ab
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x48], edx
call fcn.00482ef0
mov edi, dword [edi + 0x18]
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jne 0x4fb3a1
xor ebp, ebp
jmp 0x4fb3ab
add ebp, 0x10
test ebp, ebp
je 0x4fb3ab
mov ebx, dword [ebp + 0x28]
mov edi, dword [0x9ea14c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [edi + 0x14]
mov dword [esp + 0x1c], ebx
call fcn.00464a90
mov edi, dword [edi + 0x18]
mov ebx, dword [esp + 0x18]
cmp ebx, edi
je 0x4fb705
add ebx, 0x10
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4fb705
mov edx, dword [esi + 0x168]
add esi, 0x168
mov ecx, esi
call dword [edx]
push 0xa
mov ecx, esi
call fcn.004245f0
push 4
mov ecx, esi
call fcn.00424c70
xor edi, edi
add ebx, 0x34
push ebx
push edi
mov ecx, esi
call fcn.00424800
inc edi
add ebx, 0x10
cmp edi, 0xb
jl 0x4fb40c
mov edi, dword [esp + 0x18]
mov ecx, esi
lea eax, [edi + 0x14]
push eax
call fcn.00424450
add edi, 0x24
mov ecx, esi
push edi
call fcn.00424ed0
test ebp, ebp
je 0x4fb6a4
mov ecx, dword [ebp + 0x84]
test ecx, ecx
je 0x4fb54d
mov eax, 0x10624dd3
mov edi, dword [0x9ea098]
mul ecx
shr edx, 6
lea edx, [edx + edx*4]
lea eax, [edx + edx*4]
lea edx, [esp + 0x18]
push edx
lea ecx, [eax + eax*4]
lea eax, [esp + 0x18]
shl ecx, 3
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [edi + 0x14]
call fcn.00464b00
mov edi, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4fb48f
xor ebx, ebx
jmp 0x4fb492
lea ebx, [eax + 0x10]
xor eax, eax
test ebx, ebx
je 0x4fb54d
mov cl, byte [ebx + 4]
cmp cl, 0x2b
jae 0x4fb4e8
mov eax, dword [ebp + 0x84]
xor edx, edx
mov edi, 0x3e8
and ecx, 0xff
div edi
mov edi, dword [ecx*4 + 0x9ea09c]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x18]
push edx
call fcn.00464b70
mov edi, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4fb4e5
xor eax, eax
jmp 0x4fb4e8
add eax, 0x10
test eax, eax
je 0x4fb54d
mov al, byte [esp + 0x40]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00404e60
push 0x64
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x84]
push edx
lea eax, [esp + 0x30]
push 0
push eax
push ecx
push ebx
mov dword [esp + 0x58], 0
call fcn.0070a3f0
add esp, 0x20
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push 1
call fcn.004248c0
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00404e60
mov ecx, dword [ebp + 0x80]
test ecx, ecx
je 0x4fb673
mov eax, 0x10624dd3
mov edi, dword [0x9ea098]
mul ecx
shr edx, 6
lea ecx, [esp + 0x18]
lea edx, [edx + edx*4]
push ecx
lea ecx, [edi + 0x14]
lea eax, [edx + edx*4]
lea edx, [esp + 0x18]
push edx
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x20], eax
call fcn.00464b00
mov edi, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4fb59c
xor ebx, ebx
jmp 0x4fb59f
lea ebx, [eax + 0x10]
xor eax, eax
test ebx, ebx
je 0x4fb673
mov cl, byte [ebx + 4]
cmp cl, 0x2b
jae 0x4fb5f5
mov eax, dword [ebp + 0x80]
xor edx, edx
mov edi, 0x3e8
and ecx, 0xff
div edi
mov edi, dword [ecx*4 + 0x9ea09c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x20], edx
call fcn.00464b70
mov edi, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4fb5f2
xor eax, eax
jmp 0x4fb5f5
add eax, 0x10
test eax, eax
je 0x4fb673
mov dl, byte [esp + 0x40]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.00404e60
push 0x64
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x80]
push ecx
lea edx, [esp + 0x30]
push 0
push edx
push eax
push ebx
mov dword [esp + 0x58], 1
call fcn.0070a3f0
add esp, 0x20
lea ecx, [esp + 0x20]
push ecx
push 0
mov ecx, esi
call fcn.004248c0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
test ecx, ecx
je 0x4fb673
mov al, byte [ecx - 1]
test al, al
je 0x4fb669
cmp al, 0xff
je 0x4fb669
dec al
mov byte [ecx - 1], al
jmp 0x4fb673
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov edx, dword [esi]
push 0x3ecccccd
push 0x3ecccccd
push 0x3ecccccd
mov ecx, esi
call dword [edx + 0x34]
fild dword [ebp + 0x24]
mov edx, dword [esi]
mov ecx, esi
fmul dword [0x7e5ef0]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
push eax
call dword [edx + 0x34]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x334]
test eax, eax
je 0x4fb705
mov edx, dword [eax + 0x30]
test edx, edx
je 0x4fb6d1
mov ecx, dword [eax + 0x34]
mov eax, 0x88888889
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push 1
push 0
push 0
dec edx
push 0
push edx
mov ecx, esi
call fcn.00425000
push 1
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00425000
mov edx, dword [0x7e7f20]
push 0
push 0
push edx
mov ecx, esi
call fcn.00421fe0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4