Function at 0x1002e740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1024df2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
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 + 0x2c]
call fcn.10091800
mov eax, dword [ebp + 0x54]
mov esi, dword [ebp + 0x50]
mov ebx, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], ebx
inc ebx
cmp ebx, edi
jne 0x1002e7b8
cmp esi, edi
je 0x1002e7ad
mov ecx, eax
dec eax
test ecx, ecx
je 0x1002e79e
lea ebx, [eax + 1]
mov ecx, esi
call fcn.1000efe0
add esi, 0x64
dec ebx
jne 0x1002e791
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 0x1002e9ab
cmp esi, edi
jne 0x1002e81b
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 + 0x18], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x38], 1
je 0x1002e801
mov ecx, esi
call fcn.1000ef40
add esi, 0x64
dec edi
mov byte [esp + 0x38], 0
mov dword [esp + 0x18], esi
jne 0x1002e7ed
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], ebx
jmp 0x1002e9ab
mov edi, dword [ebp + 0x58]
cmp ebx, edi
jg 0x1002e8b9
cmp eax, ebx
jge 0x1002e88d
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 0x1002e8b1
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x38], 2
je 0x1002e876
mov ecx, esi
call fcn.1000ef40
add esi, 0x64
dec edi
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
jne 0x1002e862
mov dword [ebp + 0x54], ebx
jmp 0x1002e9ab
jle 0x1002e8b1
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 0x1002e8b1
lea edi, [eax + 1]
mov ecx, esi
call fcn.1000efe0
add esi, 0x64
dec edi
jne 0x1002e8a4
mov dword [ebp + 0x54], ebx
jmp 0x1002e9ab
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
jne 0x1002e8e4
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1002e8d7
mov ecx, 4
jmp 0x1002e8e4
cmp ecx, 0x400
jle 0x1002e8e4
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jge 0x1002e8f1
mov dword [esp + 0x10], eax
jmp 0x1002e8f7
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 dword [esp + 0x1c], eax
mov edi, eax
lea ecx, [ecx + ecx*4]
mov edx, ebx
add esp, 4
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x54]
sub edx, eax
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
lea edi, [eax + ecx*4]
lea eax, [edx + edx*4]
mov dword [esp + 0x14], 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 0x1002e98e
mov esi, dword [esp + 0x14]
lea edi, [edx + 1]
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x38], 3
je 0x1002e97f
mov ecx, esi
call fcn.1000ef40
add esi, 0x64
dec edi
mov byte [esp + 0x38], 0
mov dword [esp + 0x14], esi
jne 0x1002e96b
mov eax, dword [ebp + 0x50]
push eax
call fcn.1023d925
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push ecx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x50]
lea ecx, [eax + edx*4]
call fcn.1000f2c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.10091860
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4