Function at 0x13016e80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x130440ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x188]
push ebx
push ebp
push esi
push edi
xor edi, edi
or ebx, 0xffffffff
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [eax], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edi
call fcn.1303965e
lea ecx, [esp + 0x18]
mov dword [esp + 0x188], 1
call fcn.13039ac3
mov eax, dword [0x13060ac4]
mov ebp, dword [esp + 0x18]
cmp eax, edi
jle 0x13017035
lea edx, [edi*4 + 0x1305fb1c]
lea ecx, [esp + 0x10]
push edx
call fcn.13039365
lea eax, [edi*4 + 0x130602f0]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x18c], 2
call fcn.13039365
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x188], 3
cmp byte [ecx + 1], 0x5f
je 0x13017005
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x23
jne 0x13016f9e
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.13037fec
mov esi, dword [esp + 0x28]
mov byte [esp + 0x188], 4
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x13016f7e
test cl, cl
je 0x13016f7a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x13016f7e
add eax, 2
add esi, 2
test cl, cl
jne 0x13016f5a
xor eax, eax
jmp 0x13016f83
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1301711d
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 3
call fcn.130395f0
jmp 0x13017005
lea ecx, [esp + 0x30]
call fcn.1301db90
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x18c], 5
call fcn.1301dc10
push ebp
lea ecx, [esp + 0x34]
call fcn.1301e970
cmp eax, 0xffffffff
je 0x13016ff4
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x13016fe0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x13016fe0
sub ecx, edx
jmp 0x13016fe2
xor ecx, ecx
cmp ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
jle 0x13016ff4
mov ebx, ecx
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], 3
call fcn.1301dbf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 2
call fcn.130395f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 1
call fcn.130395f0
mov eax, dword [0x13060ac4]
inc edi
cmp edi, eax
jl 0x13016ef3
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xb9]
mov byte [esp + 0xb8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
jl 0x1301709f
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc edx
lea eax, [esp + 0x11c]
push edx
push ebp
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add ebp, ecx
push 0x64
add ebp, edx
lea edx, [esp + 0xbc]
push ebp
push edx
call esi
mov edx, dword [esp + 0x194]
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x11c]
push eax
push ecx
push edx
call fcn.13016cb0
mov ecx, dword [esp + 0x1a4]
add esp, 0xc
test ebx, ebx
mov dword [ecx], eax
jl 0x1301716f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
lea eax, [edx*4 + 0x130602f0]
push eax
call fcn.13039365
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x190]
push ecx
push esi
mov byte [esp + 0x190], 6
call fcn.13016bd0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 1
mov byte [esp + 0x188], 1
call fcn.130395f0
jmp 0x1301718a
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x190]
push ecx
push esi
call fcn.13016bd0
add esp, 8
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 3
call fcn.130395f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 2
call fcn.130395f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 1
call fcn.130395f0
jmp 0x1301718a
mov esi, dword [esp + 0x190]
push 0x1305f250
mov ecx, esi
call fcn.1303965e
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 0
call fcn.130395f0
mov ecx, dword [esp + 0x180]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret