Function at 0x1019e800
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024f163
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x105436c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x58], ebx
push dword [ebp - 0x58]
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.101a1680
mov eax, dword [ebx]
xor esi, esi
mov dword [ebx + 4], eax
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
mov ecx, dword [edi + 0x30]
mov eax, 0x51eb851f
sub ecx, dword [edi + 0x2c]
imul ecx
mov dword [ebp - 4], esi
sar edx, 5
mov eax, edx
mov dword [ebp - 0x48], esi
shr eax, 0x1f
add eax, edx
je 0x1019ea28
mov byte [ebp - 0x44], 0x2e
mov dword [ebp - 0x4c], ebx
mov eax, dword [edi + 0x2c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
add eax, ebx
mov dword [ebp - 0x14], 0xf
push 0
push eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100045b0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, 1
jb 0x1019e8f8
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp ebx, 0x10
lea esi, [ecx - 1]
cmovae eax, dword [ebp - 0x28]
add esi, eax
cmp byte [esi], 0x2e
sete al
test al, al
je 0x1019e8db
mov al, byte [esi]
lea ecx, [ebp - 0x44]
cmp al, byte [ecx]
je 0x1019e8ea
lea ecx, [ebp - 0x28]
call fcn.10004440
cmp esi, eax
je 0x1019e8f8
dec esi
jmp 0x1019e8c8
cmp ebx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esi, eax
jmp 0x1019e8fb
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x1019e997
push 0xffffffffffffffff
inc esi
lea eax, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.10048970
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1019e94d
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1019e932
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004b10
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100046c0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x1019e997
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x1019e98e
test cl, 0x1f
jne 0x1019eb24
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1019eb24
sub ecx, eax
cmp ecx, 4
jb 0x1019eb24
cmp ecx, 0x23
ja 0x1019eb24
mov ecx, eax
push ecx
call fcn.101dc675
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.101a8b70
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1019e9ed
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1019e9e4
test cl, 0x1f
jne 0x1019eb24
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1019eb24
sub ecx, eax
cmp ecx, 4
jb 0x1019eb24
cmp ecx, 0x23
ja 0x1019eb24
mov ecx, eax
push ecx
call fcn.101dc675
add esp, 4
mov ecx, dword [edi + 0x30]
mov eax, 0x51eb851f
sub ecx, dword [edi + 0x2c]
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
inc esi
imul ecx
add ebx, 0x64
mov dword [ebp - 0x48], esi
sar edx, 5
mov eax, edx
mov dword [ebp - 0x4c], ebx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1019e886
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], ebx
mov ecx, dword [edi + 0x48]
mov eax, 0x66666667
sub ecx, dword [edi + 0x44]
imul ecx
mov dword [ebp - 0x54], 0
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1019eaed
mov dword [ebp - 0x50], 0
xor ecx, ecx
mov eax, 0x51eb851f
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1019eac0
xor esi, esi
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x44]
add ecx, dword [ebp - 0x50]
push dword [eax + esi + 0x24]
push ebx
call fcn.101a8730
test al, al
jne 0x1019eab1
mov ecx, dword [edi + 0x30]
mov eax, 0x51eb851f
sub ecx, dword [edi + 0x2c]
add esi, 0x64
inc dword [ebp - 0x48]
add ebx, 0x18
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x48], eax
jb 0x1019ea73
jmp 0x1019eac0
mov eax, dword [edi + 0x44]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
push eax
call fcn.101a89f0
mov ecx, dword [edi + 0x48]
mov eax, 0x66666667
sub ecx, dword [edi + 0x44]
mov ebx, dword [ebp - 0x54]
add dword [ebp - 0x50], 0x28
inc ebx
imul ecx
mov dword [ebp - 0x54], ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov ebx, dword [ebp - 0x4c]
jb 0x1019ea53
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1019eb6d
push dword [ebp - 0x58]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
push ebx
call fcn.10050960
mov ecx, dword [ebp - 0x5c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x1019eb29
call fcn.101e307d
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1019eb64
test bl, 0x1f
je 0x1019eb40
call fcn.101e307d
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1019eb4c
call fcn.101e307d
sub ebx, eax
cmp ebx, 4
jae 0x1019eb58
call fcn.101e307d
cmp ebx, 0x23
jbe 0x1019eb62
call fcn.101e307d
mov ebx, eax
push ebx
call fcn.101dc675
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101dd8e4
mov esp, ebp
pop ebp
ret 4