Function at 0x1002e4b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1024deda
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.10091800
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 0x1002e52f
cmp esi, edi
je 0x1002e524
mov edx, eax
dec eax
test edx, edx
je 0x1002e515
lea ebx, [eax + 1]
push edi
mov ecx, esi
call fcn.1002f8b0
add esi, 0x64
dec ebx
jne 0x1002e507
mov eax, dword [ebp + 0x50]
push eax
call fcn.1023d925
add esp, 4
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x54], edi
jmp 0x1002e6d6
cmp esi, edi
jne 0x1002e592
lea eax, [ebx + ebx*4]
lea edi, [eax + eax*4]
shl edi, 2
push edi
call fcn.1023d8fc
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 0x1002e578
mov ecx, esi
call fcn.1000ef40
add esi, 0x64
dec edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x10], esi
jne 0x1002e564
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], ebx
jmp 0x1002e6d6
mov edi, dword [ebp + 0x58]
cmp ebx, edi
jg 0x1002e632
cmp eax, ebx
jge 0x1002e604
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 0x1002e62a
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x30], 2
je 0x1002e5ed
mov ecx, esi
call fcn.1000ef40
add esi, 0x64
dec edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x10], esi
jne 0x1002e5d9
mov dword [ebp + 0x54], ebx
jmp 0x1002e6d6
jle 0x1002e62a
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 0x1002e62a
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.1002f8b0
add esi, 0x64
dec edi
jne 0x1002e61b
mov dword [ebp + 0x54], ebx
jmp 0x1002e6d6
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
jne 0x1002e65d
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1002e650
mov ecx, 4
jmp 0x1002e65d
cmp ecx, 0x400
jle 0x1002e65d
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jge 0x1002e66a
mov dword [esp + 0x10], eax
jmp 0x1002e670
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.1023d8fc
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.1002f8d0
mov eax, dword [ebp + 0x50]
push eax
call fcn.1023d925
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 0x1002e70c
lea ebx, [eax + 1]
mov eax, esi
mov ecx, edi
push eax
add esi, 0x64
add edi, 0x64
call fcn.1000f2c0
dec ebx
jne 0x1002e6f9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.10091860
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4