Function at 0x10028800
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1018c20a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor edi, edi
lea eax, [ebp + 0x30]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.10084010
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0x54]
mov esi, dword [ebp + 0x50]
mov ebx, eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edi
add ebx, edx
mov dword [esp + 0x18], eax
jne 0x1002887f
cmp esi, edi
je 0x10028874
mov edx, eax
dec eax
test edx, edx
je 0x10028865
lea ebx, [eax + 1]
push edi
mov ecx, esi
call fcn.10029c00
add esi, 0x64
dec ebx
jne 0x10028857
mov eax, dword [ebp + 0x50]
push eax
call fcn.1017c36b
add esp, 4
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x54], edi
jmp 0x10028a26
cmp esi, edi
jne 0x100288e2
lea eax, [ebx + ebx*4]
lea edi, [eax + eax*4]
shl edi, 2
push edi
call fcn.1017c342
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 0x50], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x30], 1
je 0x100288c8
mov ecx, esi
call fcn.1000d140
add esi, 0x64
dec edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x10], esi
jne 0x100288b4
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], ebx
jmp 0x10028a26
mov edi, dword [ebp + 0x58]
cmp ebx, edi
jg 0x10028982
cmp eax, ebx
jge 0x10028954
mov edx, ebx
sub edx, eax
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
lea eax, [edx + edx*4]
mov dword [esp + 0x10], edi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 2
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
dec edx
test ecx, ecx
je 0x1002897a
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x30], 2
je 0x1002893d
mov ecx, esi
call fcn.1000d140
add esi, 0x64
dec edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x10], esi
jne 0x10028929
mov dword [ebp + 0x54], ebx
jmp 0x10028a26
jle 0x1002897a
lea ecx, [ebx + ebx*4]
sub eax, ebx
lea edx, [ecx + ecx*4]
mov ecx, eax
dec eax
test ecx, ecx
lea esi, [esi + edx*4]
je 0x1002897a
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.10029c00
add esi, 0x64
dec edi
jne 0x1002896b
mov dword [ebp + 0x54], ebx
jmp 0x10028a26
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
jne 0x100289ad
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x100289a0
mov ecx, 4
jmp 0x100289ad
cmp ecx, 0x400
jle 0x100289ad
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jge 0x100289ba
mov dword [esp + 0x10], eax
jmp 0x100289c0
mov dword [esp + 0x10], ebx
mov eax, ebx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 2
push edx
call fcn.1017c342
mov ecx, dword [ebp + 0x54]
mov esi, dword [ebp + 0x50]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x54]
sub edx, ecx
lea ecx, [ecx + ecx*4]
push edx
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
push edx
call fcn.10029c20
mov eax, dword [ebp + 0x50]
push eax
call fcn.1017c36b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 0x50]
lea edi, [ecx + edx*4]
mov edx, eax
dec eax
test edx, edx
je 0x10028a5c
lea ebx, [eax + 1]
mov eax, esi
mov ecx, edi
push eax
add esi, 0x64
add edi, 0x64
call fcn.1000d4c0
dec ebx
jne 0x10028a49
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.10084070
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4