Function at 0x10016a6a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b50c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x44fc
call fcn.10051950
mov eax, dword [0x10074118]
xor eax, esp
mov dword [esp + 0x44f8], eax
push ebx
push esi
push edi
mov eax, dword [0x10074118]
xor eax, esp
push eax
lea eax, [esp + 0x4510]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0xc
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
mov ebx, ecx
mov esi, edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x400
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageList]
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x114]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildClassInfoListExW]
push ebx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call sub.gdiplus.dll_GdiplusStartup
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x24], ebx
je 0x10016ca6
lea eax, [esp + 0x104]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x6c]
push eax
call fcn.1001447f
mov esi, dword [esp + 0x14]
mov dword [esp + 0x4518], ebx
lea edi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push ebx
xor eax, eax
push ebx
movsd dword es:[edi], dword [esi]
mov word [esp + 0x4110], ax
mov edi, 0x200
push edi
lea eax, [esp + 0x4114]
push eax
push dword [esp + 0x28]
call dword [sym.imp.SETUPAPI.dll_SetupDiClassNameFromGuidExW]
lea eax, [esp + 0x4104]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10016b8e
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x4104]
lea esi, [esp + 0x98]
call fcn.100053f4
push ebx
push ebx
xor eax, eax
push ebx
mov word [esp + 0x4110], ax
push edi
lea eax, [esp + 0x4114]
push eax
push dword [esp + 0x28]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDescriptionExW]
lea eax, [esp + 0x4104]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10016bd9
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x4104]
lea esi, [esp + 0xb4]
call fcn.100053f4
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
call fcn.10015d39
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
push ecx
xor ebx, ebx
mov byte [esp + 0x4520], 1
call fcn.10004d65
push ebx
push 1
lea esi, [esp + 0x58]
mov byte [esp + 0x4520], bl
call fcn.10004e12
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x50]
call fcn.10014e82
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x4524], 2
call fcn.10004c1a
push ebx
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x4520], bl
call fcn.10004d1a
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x24]
call fcn.10017bc4
or dword [esp + 0x4518], 0xffffffff
lea edi, [esp + 0x6c]
call fcn.10015cf3
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x10
cmp eax, dword [esp + 0x24]
jne 0x10016b42
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, 0x98
cdq
idiv ecx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x10016d8f
mov dword [esp + 0x14], ebx
cmp ebx, eax
jb 0x10016ccd
call fcn.10040d90
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x14]
lea eax, [edi + 0x80]
push eax
push dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.1001492a
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov ecx, 0xc0
cdq
idiv ecx
test eax, eax
je 0x10016d6f
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0x64]
push eax
mov dword [esp + 0x2c], eax
call fcn.100150e9
test eax, eax
jne 0x10016d6f
lea eax, [esp + 0x20]
push eax
push ebx
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiLoadClassIcon]
mov eax, dword [esp + 0x1c]
push ebx
push dword [esp + 0x24]
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
lea eax, [esp + 0x30]
push eax
push edi
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
mov edi, dword [esp + 0x1c]
push ebx
push dword [esp + 0x34]
push dword [edi + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
cmp eax, ebx
je 0x10016d6f
mov edx, dword [esp + 0x28]
push edi
mov ecx, eax
call fcn.100151f5
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, 0x98
cdq
idiv ecx
inc dword [esp + 0x18]
add dword [esp + 0x14], ecx
cmp dword [esp + 0x18], eax
jne 0x10016cc6
push dword [esp + 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyClassImageList]
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], ebx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x4510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44f8]
xor ecx, esp
call fcn.100408d9
mov esp, ebp
pop ebp
ret