Function at 0x401a20
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
lea ecx, [eax + eax*2]
push esi
shl ecx, 2
mov edx, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
mov dword [esp + 0x20], esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
xor edi, edi
push eax
push 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ole32.dll_CoGetMalloc]
lea ecx, [esp + 0x20]
push ecx
push 0x407158
push 1
push esi
push 0x4071a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x401bd3
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push esi
push ecx
mov edx, dword [eax]
push 0x407198
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x401bd3
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
xor ebp, ebp
cmp dword [esp + 0x40], esi
jbe 0x401bd3
mov edi, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401bcf
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push edx
push 0x4071e8
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x401bcf
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push esi
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401bcf
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x401b42
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.00401f00
test eax, eax
je 0x401b85
mov ecx, dword [esp + 0x30]
push ecx
call ebx
cmp eax, esi
mov dword [edi + 4], eax
je 0x401bcf
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [esp + 0x10]
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x3c]
push edx
push esi
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x401bcf
mov eax, dword [esp + 0x10]
push eax
call ebx
cmp eax, esi
mov dword [edi], eax
je 0x401bcf
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401ba7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc ebp
add edi, 0xc
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
cmp ebp, eax
jb 0x401acf
mov edi, dword [esp + 0x14]
jmp 0x401be1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x401be1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x401bef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x401bfd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401c0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x401c22
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x401c30
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x401c30
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc