Function at 0x4a76a0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x4f3e72
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 0x535328
push 1
push edi
mov ebx, ecx
push 0x535318
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 0x4a7976
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edi
push edx
mov ecx, dword [eax]
push 0x535308
push eax
call dword [ecx + 0xc]
cmp eax, edi
jge 0x4a771e
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 0x4a7962
push ebp
push esi
push 0x1c
call fcn.004e1faa
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x4c], edi
je 0x4a775f
mov ecx, eax
call fcn.004a7a90
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x4a7765
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 0x535478
push edi
push edi
push eax
call dword [ecx + 0x24]
cmp eax, edi
jl 0x4a7939
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.004e2329
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 1
push ecx
lea ecx, [esi + 0x14]
call fcn.004e23a2
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 0x4a7814
cmp eax, edi
je 0x4a7809
push eax
mov dword [esp + 0x30], edx
call fcn.004e1fd3
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x4a7915
cmp eax, edi
jne 0x4a784c
lea edi, [ebp*4]
push edi
call fcn.004e1faa
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 0x4a7913
mov ecx, dword [ebx + 0xc]
cmp ebp, ecx
jg 0x4a787e
cmp edx, ebp
jge 0x4a786e
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 0x4a7915
jle 0x4a7876
sub edx, ebp
mov dword [esp + 0x2c], edx
mov dword [ebx + 8], ebp
jmp 0x4a7915
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x4a78a8
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a789c
mov eax, 4
jmp 0x4a78a8
cmp eax, 0x400
jle 0x4a78a8
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x4a78b6
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.004e1faa
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.004e1fd3
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.004a7bd0
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004e2269
jmp 0x4a7946
cmp esi, edi
je 0x4a7946
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 0x4a773a
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