Function at 0x401ff0
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
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esi
push eax
push 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoGetMalloc]
lea ecx, [esp + 0x1c]
push ecx
push 0x407148
push 1
push esi
push 0x407168
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4021a0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push esi
push ecx
mov edx, dword [eax]
push 0x407158
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x4021a0
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
xor ebp, ebp
cmp dword [esp + 0x40], esi
jbe 0x4021a0
mov edi, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4021a0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
push 0x407178
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x4021a0
mov eax, dword [esp + 0x20]
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 0x4021a0
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x402117
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.00402390
test eax, eax
je 0x40215a
mov ecx, dword [esp + 0x30]
push ecx
call ebx
cmp eax, esi
mov dword [edi + 4], eax
je 0x4021a0
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 0x4021a0
mov eax, dword [esp + 0x10]
push eax
call ebx
cmp eax, esi
mov dword [edi], eax
je 0x4021a0
inc dword [esp + 0x24]
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 0x40217c
mov ecx, dword [esp + 0x18]
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 0x4020a4
jmp 0x4021ae
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x4021ae
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4021bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4021ca
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4021d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x4021ef
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4021fd
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4021fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc