Function at 0x422ff3
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x4c], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
and dword [ebp - 8], 0
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x18]
push eax
call fcn.004045fd
pop ecx
push eax
push 0x42a488
push 1
push 0
push 0x426420
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0x18], 0
jne 0x42303e
jmp 0x4231fa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x426410
push dword [ebp - 0x18]
call dword [ebp - 0x30]
cmp dword [ebp - 8], 0
jne 0x423065
jmp 0x4231fa
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x14]
and dword [ebp - 0x14], 0
xor eax, eax
inc eax
je 0x4231e0
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
call dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4230aa
jmp 0x4231e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc]
push eax
push 0x4263a0
push 0
push 0
push dword [ebp - 0x3c]
call dword [ebp - 0x40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4230e6
jmp 0x4231e0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
push 0
lea eax, [ebp - 0x64]
push eax
push str.Description
push dword [ebp - 0xc]
call dword [ebp - 0x44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x423134
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
push 0
lea eax, [ebp - 0x64]
push eax
push str.FriendlyName
push dword [ebp - 0xc]
call dword [ebp - 0x48]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42313f
jmp 0x4231e0
push 0x1c
call fcn.0040b8ba
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x42315d
mov ecx, dword [ebp - 0x28]
call fcn.004233f9
mov dword [ebp - 0x2c], eax
jmp 0x423161
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x1c], 0
jmp 0x423182
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test eax, eax
je 0x4231b7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
and eax, 0xff
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx], al
jmp 0x423173
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x50], eax
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
call fcn.00404bc3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x423074
lea eax, [ebp - 8]
push eax
call fcn.00404d45
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00404d45
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
leave
ret