Function at 0x50a6e0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x55e812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
lea eax, [esp + 0xc]
push edi
push eax
xor edi, edi
push 0x6f3b88
push 1
push edi
mov ebx, ecx
push 0x6f3b78
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x50a9b6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edi
push edx
mov ecx, dword [eax]
push 0x6f3b68
push eax
call dword [ecx + 0xc]
cmp eax, edi
jge 0x50a75e
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push edi
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x50a9a2
push ebp
push esi
push 0x1c
call fcn.0054d417
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x4c], edi
je 0x50a79f
mov ecx, eax
call fcn.0050b4d0
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x50a7a5
mov dword [esp + 0x20], edi
mov esi, edi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push edx
push 0x702f28
push edi
push edi
push eax
call dword [ecx + 0x24]
cmp eax, edi
jl 0x50a979
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edi
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
call fcn.0054d796
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 1
push ecx
lea ecx, [esi + 0x14]
call fcn.0054d80f
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ebp, edx
mov dword [esp + 0x30], ebp
inc ebp
cmp ebp, edi
jne 0x50a854
cmp eax, edi
je 0x50a849
push eax
mov dword [esp + 0x30], edx
call fcn.0054d440
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x50a955
cmp eax, edi
jne 0x50a88c
lea edi, [ebp*4]
push edi
call fcn.0054d417
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x50a953
mov ecx, dword [ebx + 0xc]
cmp ebp, ecx
jg 0x50a8be
cmp edx, ebp
jge 0x50a8ae
mov ecx, ebp
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx + 8], ebp
jmp 0x50a955
jle 0x50a8b6
sub edx, ebp
mov dword [esp + 0x2c], edx
mov dword [ebx + 8], ebp
jmp 0x50a955
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x50a8e8
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x50a8dc
mov eax, 4
jmp 0x50a8e8
cmp eax, 0x400
jle 0x50a8e8
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x50a8f6
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.0054d417
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call fcn.0054d440
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ecx
xor edi, edi
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x30]
mov ecx, esi
mov dword [edx + eax*4], esi
call fcn.0050b610
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0054d6d6
jmp 0x50a986
cmp esi, edi
je 0x50a986
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x50a77a
pop esi
pop ebp
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret