Function at 0x10003240
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e149
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x888
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0x10023f04
push 1
push 0
push 0x10025184
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10003294
or eax, 0xffffffff
jmp 0x10003447
lea ecx, [ebp - 0x20]
call fcn.10004370
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x20]
call fcn.100043c0
push eax
push 0x10025164
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100032ec
mov dword [ebp - 0x844], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10004390
mov eax, dword [ebp - 0x844]
jmp 0x10003447
lea ecx, [ebp - 0x20]
call fcn.100043e0
mov dword [ebp - 0x84c], eax
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x84c]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push 1
lea ecx, [ebp - 0x20]
call fcn.100043e0
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x850]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x850]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10003429
lea eax, [ebp - 0x30]
push eax
push 0x10021904
push 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x28]
push eax
call dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x10003418
mov word [ebp - 0x40], 8
push 0
lea ecx, [ebp - 0x40]
push ecx
push str.FriendlyName
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000340c
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0x800
lea eax, [ebp - 0x840]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x38]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x840]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x840]
push eax
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x104
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [ebp - 0x854], edx
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x30]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
call dword [ecx + 8]
jmp 0x10003313
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x848], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10004390
mov eax, dword [ebp - 0x848]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4