Function at 0x504c70
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x54e772
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 0x6b1ff8
push 1
push edi
mov ebx, ecx
push 0x6b1fe8
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 0x504f46
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edi
push edx
mov ecx, dword [eax]
push 0x6b1fd8
push eax
call dword [ecx + 0xc]
cmp eax, edi
jge 0x504cee
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 0x504f32
push ebp
push esi
push 0x1c
call fcn.0053cfa0
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x4c], edi
je 0x504d2f
mov ecx, eax
call fcn.00505980
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x504d35
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 0x6be328
push edi
push edi
push eax
call dword [ecx + 0x24]
cmp eax, edi
jl 0x504f09
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.0053d31f
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 1
push ecx
lea ecx, [esi + 0x14]
call fcn.0053d398
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 0x504de4
cmp eax, edi
je 0x504dd9
push eax
mov dword [esp + 0x30], edx
call fcn.0053cfc9
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x504ee5
cmp eax, edi
jne 0x504e1c
lea edi, [ebp*4]
push edi
call fcn.0053cfa0
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 0x504ee3
mov ecx, dword [ebx + 0xc]
cmp ebp, ecx
jg 0x504e4e
cmp edx, ebp
jge 0x504e3e
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 0x504ee5
jle 0x504e46
sub edx, ebp
mov dword [esp + 0x2c], edx
mov dword [ebx + 8], ebp
jmp 0x504ee5
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x504e78
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x504e6c
mov eax, 4
jmp 0x504e78
cmp eax, 0x400
jle 0x504e78
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x504e86
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.0053cfa0
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.0053cfc9
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.00505ac0
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0053d25f
jmp 0x504f16
cmp esi, edi
je 0x504f16
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 0x504d0a
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