Function at 0x10016c40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10024818
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10029700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x48]
lea esi, [edi + 0x4c34]
xor ebp, ebp
cmp eax, 0x8000
mov dword [esp + 0x14], esi
mov dword [esi + 4], ebp
mov dword [esi], ebp
jle 0x10016c8a
mov eax, 0x8000
mov ecx, dword [edi + 0x4c3c]
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.100190f0
lea ecx, [edi + 0x4c00]
add esp, 0xc
mov dword [esp + 0x20], ecx
call fcn.1000c6e0
test byte [esp + 0x40], 0x80
je 0x10016cd4
push esi
call fcn.1000c710
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
cmp ebx, ebp
jne 0x10016cd1
mov ecx, edi
call fcn.10014ff0
jmp 0x10016cde
dec ebx
jmp 0x10016cda
mov ebx, dword [edi + 0x4c64]
mov dword [esp + 0x44], ebx
mov eax, dword [edi + 0x4c44]
cmp ebx, eax
ja 0x10016d55
cmp ebx, dword [edi + 0x4c5c]
ja 0x10016d55
cmp ebx, eax
push 0x64
mov dword [edi + 0x4c64], ebx
sete byte [esp + 0x4c]
call fcn.10019a23
add esp, 4
cmp eax, ebp
je 0x10016d33
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x30], ebp
mov dword [eax + 0x34], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x20], ebp
mov dword [eax + 0x60], ebp
mov dword [eax + 0x24], ebp
mov esi, eax
jmp 0x10016d35
xor esi, esi
cmp byte [esp + 0x48], 0
je 0x10016dcc
cmp ebx, 0x400
jbe 0x10016d6d
cmp esi, ebp
je 0x10016d55
push 1
mov ecx, esi
call fcn.10014ec0
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
lea ebp, [edi + 0x4c40]
push 1
mov ecx, ebp
call fcn.10012d40
push 0x64
call fcn.10019a23
add esp, 4
test eax, eax
je 0x10016d95
mov ecx, eax
call fcn.10015770
mov ebx, eax
jmp 0x10016d97
xor ebx, ebx
mov eax, dword [edi + 0x4c44]
mov edx, dword [ebp]
mov dword [edx + eax*4 - 4], ebx
mov eax, dword [edi + 0x4c44]
dec eax
push 0
lea ecx, [edi + 0x4c58]
mov dword [esp + 0x20], ebx
mov dword [esi + 0x10], eax
call fcn.10015130
add ebx, 8
mov dword [ebx], 0
xor ebp, ebp
jmp 0x10016de2
mov eax, dword [edi + 0x4c40]
mov eax, dword [eax + ebx*4]
mov dword [esi + 0x10], ebx
inc dword [eax + 8]
lea ebx, [eax + 8]
mov dword [esp + 0x1c], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x4c50], ebp
jbe 0x10016e36
lea ebp, [edi + 0x4c4c]
mov ecx, dword [ebp]
mov ebp, dword [ecx + eax*4]
mov ebx, eax
sub ebx, edx
mov dword [ecx + ebx*4], ebp
mov ecx, dword [edi + 0x4c4c]
cmp dword [ecx + eax*4], 0
lea ebp, [edi + 0x4c4c]
lea ecx, [ecx + eax*4]
jne 0x10016e1b
inc edx
test edx, edx
jle 0x10016e25
mov dword [ecx], 0
inc eax
cmp eax, dword [edi + 0x4c50]
jb 0x10016df8
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x10016e4a
lea ebp, [edi + 0x4c4c]
push 1
mov ecx, ebp
call fcn.10012d40
mov edx, 1
mov eax, dword [edi + 0x4c50]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [ebp]
mov dword [edx + eax*4], esi
mov eax, dword [ebx]
push ecx
mov dword [esi + 8], eax
call fcn.1000c710
mov cl, byte [esp + 0x44]
add esp, 4
mov ebp, eax
test cl, 0x40
je 0x10016e7b
add ebp, 0x102
mov edx, dword [edi + 0xca8c]
add edx, ebp
and edx, 0x3fffff
mov dword [esi], edx
test cl, 0x20
je 0x10016eb3
mov ebx, dword [esp + 0x14]
push ebx
call fcn.1000c710
mov edx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x4c58]
mov dword [ecx + edx*4], eax
mov cl, byte [esp + 0x44]
add esp, 4
jmp 0x10016ed3
mov eax, dword [esp + 0x44]
cmp eax, dword [edi + 0x4c5c]
jae 0x10016eca
mov edx, dword [edi + 0x4c58]
mov eax, dword [edx + eax*4]
jmp 0x10016ecc
xor eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [edi + 0xca90]
mov edi, dword [edi + 0xca8c]
cmp eax, edi
je 0x10016ef5
sub eax, edi
and eax, 0x3fffff
cmp eax, ebp
ja 0x10016ef5
mov eax, 1
jmp 0x10016ef7
xor eax, eax
mov byte [esi + 0xc], al
xor eax, eax
mov dword [esi + 0x40], eax
lea edi, [esi + 0x40]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0x4c], 0x3c000
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
test cl, 0x10
je 0x10016f6f
mov ecx, ebx
call fcn.1000a6d0
shr eax, 9
push 7
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.1000a700
mov ebp, 1
mov dword [esp + 0x44], 7
mov eax, dword [esp + 0x18]
test eax, ebp
je 0x10016f63
push ebx
call fcn.1000c710
add esp, 4
mov dword [edi], eax
add edi, 4
rol ebp, 1
sub dword [esp + 0x44], 1
jne 0x10016f50
cmp byte [esp + 0x48], 0
je 0x1001703f
push ebx
call fcn.1000c710
mov ebp, eax
add esp, 4
cmp ebp, 0x10000
jae 0x10016d55
test ebp, ebp
je 0x10016d55
push ebp
call fcn.10018d71
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10016fb4
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
xor edi, edi
mov dword [esp + 0x38], edi
cmp ebp, edi
jbe 0x10016ff2
mov ecx, dword [ebx]
add ecx, 3
cmp ecx, 0x8000
jae 0x10017022
mov ecx, ebx
call fcn.1000a6d0
mov edx, dword [esp + 0x24]
shr eax, 8
push 8
mov ecx, ebx
mov byte [edx + edi], al
call fcn.1000a700
inc edi
cmp edi, ebp
jb 0x10016fc6
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
lea ecx, [ebx + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
push edi
call fcn.1000dab0
mov dword [esp + 0x38], 0xffffffff
test edi, edi
je 0x10017043
mov edx, edi
push edx
call fcn.10018e3b
add esp, 4
jmp 0x10017043
cmp dword [esp + 0x24], 0
je 0x10016d55
mov eax, dword [esp + 0x24]
push eax
call fcn.10018e3b
add esp, 4
jmp 0x10016d55
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x24], ecx
mov ebp, dword [ebx + 0x38]
lea edx, [ebp - 1]
cmp edx, 0x1ffe
ja 0x100170ab
add dword [esi + 0x38], ebp
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x1001709a
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x10017079
mov edi, ecx
mov eax, dword [esi + 0x34]
push edi
push eax
call fcn.10018eca
add esp, 8
mov dword [esi + 0x34], eax
test eax, eax
jne 0x10017097
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 0x3c], edi
mov ecx, dword [ebx + 0x34]
mov edx, dword [esi + 0x34]
push ebp
push ecx
push edx
call fcn.100190f0
add esp, 0xc
mov edi, 0x40
cmp dword [esi + 0x2c], edi
jae 0x1001710d
mov eax, dword [esi + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x100170ca
push eax
call fcn.10018e3b
add esp, 4
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
add dword [esi + 0x2c], edi
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
cmp ecx, eax
jbe 0x1001710d
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x100170ec
mov edi, ecx
mov eax, dword [esi + 0x28]
push edi
push eax
call fcn.10018eca
add esp, 8
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x1001710a
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 0x30], edi
mov edi, dword [esi + 0x28]
mov ebx, edi
lea ebp, [esi + 0x40]
mov dword [esp + 0x48], 7
lea ecx, [ecx]
mov ecx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
call fcn.1000c700
add ebp, 4
add ebx, 4
sub dword [esp + 0x48], 1
jne 0x10017120
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x20]
push edx
lea eax, [edi + 0x1c]
push eax
mov ecx, ebx
call fcn.1000c700
push 0
lea ecx, [edi + 0x20]
push ecx
mov ecx, ebx
call fcn.1000c700
mov edx, dword [esi + 8]
push edx
lea eax, [edi + 0x2c]
push eax
mov ecx, ebx
call fcn.1000c700
xor eax, eax
test byte [esp + 0x40], 8
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
je 0x1001723d
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp]
add ecx, 3
cmp ecx, 0x8000
jae 0x10016d55
push ebp
call fcn.1000c710
mov ebx, eax
add esp, 4
cmp ebx, 0x1fc0
ja 0x10016d55
mov eax, dword [esi + 0x2c]
lea edx, [ebx + 0x40]
cmp eax, edx
jae 0x100171fe
mov ecx, ebx
sub ecx, eax
mov eax, dword [esi + 0x30]
add ecx, 0x40
add dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, eax
jbe 0x100171fe
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x100171dd
mov edi, ecx
mov eax, dword [esi + 0x28]
push edi
push eax
call fcn.10018eca
add esp, 8
mov dword [esi + 0x28], eax
test eax, eax
jne 0x100171fb
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 0x30], edi
mov esi, dword [esi + 0x28]
add esi, 0x40
xor edi, edi
test ebx, ebx
jbe 0x1001723d
lea ebx, [ebx]
mov ecx, dword [ebp]
add ecx, 3
cmp ecx, 0x8000
jae 0x10016d55
mov ecx, ebp
call fcn.1000a6d0
shr eax, 8
push 8
mov ecx, ebp
mov byte [edi + esi], al
call fcn.1000a700
inc edi
cmp edi, ebx
jb 0x10017210
mov al, 1
jmp 0x10016d57