Function at 0x10228610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029d603
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10597da4]
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.1022b560
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 0x10228838
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.10004ce0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, 1
jb 0x10228708
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 0x102286eb
mov al, byte [esi]
lea ecx, [ebp - 0x44]
cmp al, byte [ecx]
je 0x102286fa
lea ecx, [ebp - 0x28]
call fcn.10004b70
cmp esi, eax
je 0x10228708
dec esi
jmp 0x102286d8
cmp ebx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esi, eax
jmp 0x1022870b
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x102287a7
push 0xffffffffffffffff
inc esi
lea eax, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.100573b0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1022875d
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10228742
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10005270
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10004df0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x102287a7
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x1022879e
test cl, 0x1f
jne 0x10228934
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10228934
sub ecx, eax
cmp ecx, 4
jb 0x10228934
cmp ecx, 0x23
ja 0x10228934
mov ecx, eax
push ecx
call fcn.10269455
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.102327c0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x102287fd
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x102287f4
test cl, 0x1f
jne 0x10228934
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10228934
sub ecx, eax
cmp ecx, 4
jb 0x10228934
cmp ecx, 0x23
ja 0x10228934
mov ecx, eax
push ecx
call fcn.10269455
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 0x10228696
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 0x102288fd
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 0x102288d0
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.10232380
test al, al
jne 0x102288c1
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 0x10228883
jmp 0x102288d0
mov eax, dword [edi + 0x44]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
push eax
call fcn.10232640
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 0x10228863
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1022897d
push dword [ebp - 0x58]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
push ebx
call fcn.10060070
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 0x10228939
call fcn.10271afd
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x10228974
test bl, 0x1f
je 0x10228950
call fcn.10271afd
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1022895c
call fcn.10271afd
sub ebx, eax
cmp ebx, 4
jae 0x10228968
call fcn.10271afd
cmp ebx, 0x23
jbe 0x10228972
call fcn.10271afd
mov ebx, eax
push ebx
call fcn.10269455
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.1026a6d5
mov esp, ebp
pop ebp
ret 4