Function at 0x10010500
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100186db
push eax
mov al, byte [0x100233a8]
mov dword fs:[0], esp
sub esp, 0x828
test al, al
push ebp
push esi
mov esi, dword [esp + 0x840]
je 0x1001054a
test esi, esi
jne 0x1001054a
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
push 0x1001c89c
push 1
push ebp
push 0x1001c92c
mov byte [esp + 0x1f], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
je 0x10010592
call dword [sym.imp.ole32.dll_CoUninitialize]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push ebp
push edx
mov ecx, dword [eax]
push 0x1001c91c
push eax
mov dword [esp + 0x848], ebp
call dword [ecx + 0xc]
cmp eax, ebp
je 0x100105e8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x838], 0xffffffff
cmp eax, ebp
je 0x100105cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jne 0x100106ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x10019350
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100106c2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100106b8
mov eax, dword [esp + 0x30]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
test eax, eax
jbe 0x100106b8
test esi, esi
je 0x100106b4
mov edx, dword [esp + 0x30]
push 0
push 0
lea ecx, [esp + 0x40]
push 0x800
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
push esi
lea ebp, [eax + ebp + 1]
call edi
mov ecx, dword [esp + 0x30]
lea esi, [esi + eax + 1]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x1001061e
pop edi
pop ebx
mov eax, dword [esp + 0x844]
test eax, eax
je 0x100106f9
mov dword [eax], ebp
mov eax, dword [esp + 0xc]
mov dword [esp + 0x838], 0xffffffff
test eax, eax
jge 0x10010712
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x830]
mov al, byte [esp + 0xb]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x834
ret