Function at 0x401550
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
lea ecx, [eax*8]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
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 + 0x40], esi
mov dword [esp + 0x28], esi
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoGetMalloc]
lea ecx, [esp + 0x1c]
push ecx
push 0x41b224
push 1
push esi
push 0x41b274
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push esi
push ecx
mov edx, dword [eax]
push 0x41b264
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
cmp dword [esp + 0x3c], esi
jbe 0x4016c9
mov edi, ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
push 0x41a2d4
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push esi
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4016c9
mov eax, dword [esp + 0x2c]
push eax
call ebp
cmp eax, esi
mov dword [edi + 4], eax
je 0x4016c9
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x30], esi
mov edx, dword [eax]
push esi
push esi
push eax
call dword [edx + 0x50]
test eax, eax
jne 0x4016c9
mov edx, dword [esp + 0x10]
push edx
call ebp
cmp eax, esi
mov dword [edi], eax
je 0x4016c9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x3c]
inc ebx
add edi, 8
cmp ebx, eax
mov dword [esp + 0x38], esi
jb 0x401601
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x4016e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4016f0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4016fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40170c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x401723
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401731
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401731
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x24
ret