Function at 0x1001658f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10059a0f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x44fc
call fcn.10050050
mov eax, dword [0x10071118]
xor eax, esp
mov dword [esp + 0x44f8], eax
push ebx
push esi
push edi
mov eax, dword [0x10071118]
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 0x100167cb
lea eax, [esp + 0x104]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x6c]
push eax
call fcn.10013fa4
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 0x100166b3
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x4104]
lea esi, [esp + 0x98]
call fcn.1000540a
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 0x100166fe
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x4104]
lea esi, [esp + 0xb4]
call fcn.1000540a
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
call fcn.1001585e
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
push ecx
xor ebx, ebx
mov byte [esp + 0x4520], 1
call fcn.10004d50
push ebx
push 1
lea esi, [esp + 0x58]
mov byte [esp + 0x4520], bl
call fcn.10004dfd
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x50]
call fcn.100149a7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x4524], 2
call fcn.10004be0
push ebx
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x4520], bl
call fcn.10004d05
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x24]
call fcn.100176e6
or dword [esp + 0x4518], 0xffffffff
lea edi, [esp + 0x6c]
call fcn.10015818
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x10
cmp eax, dword [esp + 0x24]
jne 0x10016667
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 0x100168b4
mov dword [esp + 0x14], ebx
cmp ebx, eax
jb 0x100167f2
call fcn.1003f4f4
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.1001444f
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 0x10016894
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0x64]
push eax
mov dword [esp + 0x2c], eax
call fcn.10014c0e
test eax, eax
jne 0x10016894
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 0x10016894
mov edx, dword [esp + 0x28]
push edi
mov ecx, eax
call fcn.10014d1a
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 0x100167eb
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.1003f03d
mov esp, ebp
pop ebp
ret