Function at 0x4a9560
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x51a4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x56a260]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x5c]
mov dword [ebp + 0x40], ecx
mov edx, dword [ebp + 0x60]
mov dword [ebp + 0x44], edx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0x68]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x74]
mov dword [ebp + 0xc], edx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0x24]
call fcn.004a90c0
mov byte [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
push 0x533258
push 7
push ebx
push 0x5317b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
je 0x4a962c
call fcn.0042fd50
cmp dword [eax], 1
jl 0x4a95fe
push esi
push str.CGraphUtils::DeviceEnum.._CoCreateInstance_CLSID_SystemDeviceEnum__fail_hr0x_08x_n
push ebx
call fcn.00430060
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x24]
call fcn.004a9070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.004f2ac1
add ebp, 0x50
mov esp, ebp
pop ebp
ret 0x20
lea ecx, [ebp + 0x2c]
call fcn.004a90c0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x2c]
push edx
lea edx, [ebp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
je 0x4a96c2
lea ecx, [ebp + 0x38]
call fcn.00401fb0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x28]
push ecx
lea edx, [ebp + 0x3c]
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x4a9688
push 0xffffffffffffffff
mov eax, dword [ebp + 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.0040fa70
mov ecx, dword [ebp + 0x28]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.0042fd50
cmp dword [eax], 1
jl 0x4a96a5
push esi
mov edx, dword [ebp + 0x38]
push edx
push str.CGraphUtils::DeviceEnum.._CreateClassEnumerator__s__fail_hr0x_08x_n
push ebx
call fcn.00430060
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x38]
call fcn.004023a0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x2c]
call fcn.004a9070
jmp 0x4a95fe
cmp dword [ebp + 0x2c], ebx
je 0x4a99f2
lea ecx, [ebp + 0x38]
call fcn.004a90c0
mov byte [ebp - 4], 4
mov dword [ebp + 0x20], ebx
lea ebx, [ebx]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x38]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4a99dd
cmp dword [ebp + 0x38], ebx
je 0x4a96e0
lea ecx, [ebp + 0x30]
call fcn.004a90c0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
lea edx, [ebp + 0x30]
push edx
push 0x538840
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x20]
call eax
lea ecx, [ebp + 0x34]
call fcn.004a90c0
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
lea edx, [ebp + 0x34]
push edx
push 0x542664
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [ebp + 0x34], ebx
je 0x4a99a5
lea ecx, [ebp - 0x28]
call fcn.004a9300
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x4c]
push ecx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
call edi
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0x34]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push 0x533268
push eax
mov edx, dword [edx + 0xc]
call edx
cmp eax, ebx
jne 0x4a97f1
mov dword [ebp + 0x28], ebx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp + 0x28]
call fcn.004a9040
push esi
mov ecx, dword [ebp + 0x28]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040fa70
mov esi, dword [ebp + 0x30]
cmp esi, ebx
je 0x4a97e3
mov eax, dword [ebp + 0x6c]
cmp eax, ebx
je 0x4a97e3
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.0040c080
add esp, 8
test al, al
je 0x4a97e3
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4a97e3
cmp dword [ebp + 0x20], ebx
jne 0x4a97e3
mov eax, esi
mov dword [ebp + 0x30], ebx
mov dword [ecx], eax
mov dword [ebp + 0x20], 1
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x3c]
push ecx
call edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0x34]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push 0x54d8d8
push eax
mov edx, dword [edx + 0xc]
call edx
cmp eax, ebx
jne 0x4a987f
mov dword [ebp], ebx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.004a9040
push 0xffffffffffffffff
mov edi, dword [ebp]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040fa70
mov esi, dword [ebp + 0x30]
cmp esi, ebx
je 0x4a986e
mov eax, dword [ebp + 0x70]
cmp eax, ebx
je 0x4a986e
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040c080
add esp, 8
test al, al
je 0x4a986e
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4a986e
cmp dword [ebp + 0x20], ebx
jne 0x4a986e
mov eax, esi
mov dword [ebp + 0x30], ebx
mov dword [ecx], eax
mov dword [ebp + 0x20], 1
mov byte [ebp - 4], 0xa
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp + 0x10]
push edx
call edi
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x10]
push edx
push str.DevicePath
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x4a98ce
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.004a9040
push 0xffffffffffffffff
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x20]
call fcn.0040fa70
mov byte [ebp - 4], 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [ebp + 0x10]
push edx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call edi
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x10]
push edx
push str.Description
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x4a991f
mov dword [ebp + 4], ebx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp + 4]
call fcn.004a9040
push 0xffffffffffffffff
mov esi, dword [ebp + 4]
push esi
lea ecx, [ebp - 0x24]
call fcn.0040fa70
mov byte [ebp - 4], 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [ebp + 0x10]
push edx
call edi
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x10]
push edx
push str.WaveInID
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x4a9945
movsx ecx, word [ebp + 0x18]
mov dword [ebp - 0x18], ecx
lea edx, [ebp + 0x10]
push edx
call edi
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x10]
push edx
push str.WaveOutID
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x4a996b
movsx ecx, word [ebp + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x4a997b
lea edx, [ebp - 0x28]
push edx
call fcn.004a9520
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x10]
push eax
call edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
push ecx
call edi
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4c]
push edx
call edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0049f910
push ebx
lea ecx, [ebp + 0x34]
call fcn.004a9110
push ebx
lea ecx, [ebp + 0x30]
call fcn.004a9110
push ebx
lea ecx, [ebp + 0x38]
call fcn.004a9110
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x34]
call fcn.004a9070
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.004a9070
jmp 0x4a96e0
push ebx
lea ecx, [ebp + 0x2c]
call fcn.004a9110
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x38]
call fcn.004a9070
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x2c]
call fcn.004a9070
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x24]
call fcn.004a9070
mov dword [ebp - 4], 0xffffffff
mov eax, 1
jmp 0x4a960b