Function at 0x1016a90
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x44]
push edi
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x50]
mov byte [ebp - 1], 0
push dword [esi + 0x4c]
mov edi, dword [ebx + 0x20]
call fcn.01001a65
mov dword [ebp - 8], eax
jmp 0x1016c10
cmp byte [ebp - 1], 0
je 0x1016bd0
movzx eax, word [ebp + 8]
cmp eax, 0x25
jg 0x1016b51
je 0x1016c70
sub eax, 0x1b
je 0x1016c57
sub eax, 6
je 0x1016b37
dec eax
je 0x1016b1d
dec eax
je 0x1016b09
dec eax
jne 0x1016c10
push eax
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
mov ax, word [ebx + 0x10]
neg ax
jmp 0x1016c07
push 0
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
movzx eax, word [ebx + 0x10]
jmp 0x1016c0a
push 0
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
mov ax, word [edi + 0xe]
sub ax, word [edi + 0xa]
dec ax
jmp 0x1016c07
push 0
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
mov ax, word [edi + 0xa]
sub ax, word [edi + 0xe]
inc ax
jmp 0x1016c07
sub eax, 0x26
je 0x1016bc1
dec eax
je 0x1016c70
dec eax
je 0x1016bb2
sub eax, 0x50
jne 0x1016c10
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1016c10
mov eax, dword [esi + 4]
cmp word [eax + 8], 7
jl 0x1016c10
push 0x1b
pop edx
mov word [ebp - 0xc], dx
xor edx, edx
inc edx
mov word [ebp - 0xa], dx
push dword [ebp - 0xc]
push ecx
push eax
call fcn.01016520
mov dword [ebp - 8], eax
test eax, eax
jl 0x1016c10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.01016991
jmp 0x1016e0f
push 0
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
push 1
jmp 0x1016c0b
push 0
push dword [esi + 4]
lea eax, [edi + 0x1a]
push edi
push ebx
push eax
push 0xffffffffffffffff
jmp 0x1016c0b
cmp word [ebp + 8], 0xd
je 0x1016c86
movzx eax, word [edi + 0x1a]
push 2
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [esi + 0x44]
call fcn.010149ed
movzx eax, ax
cmp ax, 0xffff
je 0x1016c10
push 1
push dword [esi + 4]
lea ecx, [edi + 0x1a]
sub ax, word [ecx]
push edi
push ebx
push ecx
movzx eax, ax
push eax
call fcn.01015001
xor eax, eax
push eax
push eax
lea ecx, [ebp - 1]
push ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x64
push esi
push 0x100b179
push dword [ebp + 0xc]
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.0100b0ed
mov dword [ebp - 8], eax
test eax, eax
jge 0x1016abf
cmp eax, 0xc0030001
je 0x1016e0f
and dword [esi + 0x2c], 0
jmp 0x1016e0f
push ebx
push dword [esi + 4]
call fcn.01013f70
mov eax, dword [ebp - 0x14]
inc dword [eax + 0x24]
mov eax, 0xc0030003
jmp 0x1016e0f
movzx edi, word [edi + 0x1a]
push ebx
push dword [esi + 4]
call fcn.01013f70
push edi
push esi
call fcn.01014244
jmp 0x1016c60
movzx edi, word [edi + 0x1a]
push ebx
push dword [esi + 4]
mov dword [ebp + 0x10], 1
call fcn.01013f70
push edi
push esi
call fcn.01014244
mov edi, dword [esi + 0x2c]
lea eax, [ebp - 8]
push eax
push 0
push 0xd
push esi
call fcn.010239c1
cmp byte [esi + 0x48], 0
je 0x1016cfc
mov eax, dword [esi + 0x28]
lea ecx, [ebp + 0x10]
push ecx
movzx ecx, word [esi + 0x58]
push ecx
push dword [esi + 0x54]
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
push eax
push edi
push eax
call fcn.01015ed4
test eax, eax
jl 0x1016ce3
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
lea eax, [esi + 8]
push eax
push dword [edi + 8]
call fcn.01001813
push eax
call fcn.01003dae
jmp 0x1016cff
mov edi, dword [ebp + 0xc]
and dword [edi + 0x20], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
ja 0x1016d1f
cmp dword [ebp + 0x10], 1
ja 0x1016d25
push eax
mov dword [edi + 0x84], eax
push dword [esi + 0x38]
jmp 0x1016d88
cmp dword [ebp + 0x10], 1
jbe 0x1016d4b
mov eax, dword [ebp - 0x14]
or dword [eax + 0x28], 4
mov ecx, dword [esi + 0x38]
mov eax, ecx
jmp 0x1016d35
inc eax
inc eax
cmp word [eax], 0xa
jne 0x1016d33
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [edi + 0x84], eax
jmp 0x1016d51
mov dword [edi + 0x84], ecx
mov eax, dword [ebp - 0x14]
or dword [eax + 0x28], 2
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x2c]
sub eax, dword [edi + 0x84]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [edi + 0x84]
add eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], eax
push dword [edi + 0x84]
push dword [esi + 0x38]
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp byte [edi + 0x98], 0
jne 0x1016e0a
mov eax, dword fs:[0x18]
push dword [edi + 0x84]
mov eax, dword [eax + 0x30]
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x1016dc8
mov eax, 0xc0000017
jmp 0x1016e0f
mov eax, dword [edi + 0x84]
push eax
push ebx
shr eax, 1
push eax
push dword [esi + 0x24]
push dword [0x1038330]
call fcn.0101c2b4
push eax
mov dword [edi + 0x84], eax
push ebx
push dword [esi + 0x24]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0030002
pop edi
pop esi
pop ebx
leave
ret 0xc