Function at 0x140016180
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x7c8]
sub rsp, 0x8c0
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov qword [r11 - 0x10], rdi
mov rdi, rcx
mov qword [r11 - 0x18], r14
xor ecx, ecx
xor r14d, r14d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r14d
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x68]
xor edx, edx
lea r9, [0x14007dcd8]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x17]
lea rcx, [0x14007dcc8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140016701
cmp dword [rdi + 0x3a8], r14d
jne 0x1400163a4
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x40]
mov edx, 1
mov r8d, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140016394
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140016384
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
xor eax, eax
lea rdx, [0x1400680f8]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x14001636f
mov rcx, qword [rsp + 0x50]
lea rdx, str.VEN_14F1
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x80]
test rax, rax
lea rdx, [0x1400680e0]
mov rax, qword [rcx]
jne 0x1400162c4
lea rdx, [0x1400680c8]
call qword [rax + 0x28]
test eax, eax
jne 0x14001636f
mov eax, dword [rdi + 0x3e4]
cmp dword [rbp - 0x78], eax
je 0x14001636f
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
lea rdx, [0x140068128]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x14001636f
movzx eax, word [0x14007ff28]
mov rcx, qword [rbp - 0x78]
mov dword [rdi + 0x3e4], ecx
test ax, ax
je 0x14001633f
mov rax, qword [rsp + 0x50]
lea rcx, [0x140067ac0]
mov r9, qword [rdi + 0x38]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov rcx, qword [rbp - 0x78]
movzx eax, word [0x14007ff28]
test byte [rdi + 0x298], 0x10
je 0x14001636f
test ax, ax
je 0x14001636f
mov r9d, ecx
lea r8, str.Mode_Change_Event_from_Capture_Device:__d_r_n
lea rcx, [rbp - 0x60]
mov edx, 0x400
call fcn.140002050
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_PropVariantClear]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140016394
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400163a4
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [rdi + 0x3a8], 1
jne 0x140016701
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x40]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 1]
call qword [rax + 0x20]
test eax, eax
jne 0x1400166f1
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x1400166e1
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x8d8], rbx
mov qword [rbp - 0x80], rax
lea rdx, [0x140068128]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov qword [rsp + 0x8e0], rsi
call qword [rax + 0x28]
test eax, eax
jne 0x140016527
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.14003c608
lea r8, [0x14006a5f0]
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.14003c584
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x3a0]
mov edx, 0x200
call fcn.14003c584
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.14003c584
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140016500
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x400
call fcn.140028230
lea r8, [rbp - 0x60]
mov rdx, rbx
mov rcx, rdi
call fcn.14001be10
test al, al
je 0x140016500
lea rdx, str.2A6CD79F_47E8_4ABC_822B_3D301078976A
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140016500
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
mov r9d, 1
mov rcx, rdi
call fcn.14001a690
test al, al
jne 0x140016500
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14001f0c0
lea rax, [rsp + 0x60]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x80]
lea rdx, [0x140068110]
mov esi, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, dword [rbp - 0x78]
dec eax
test eax, 0xfffffffd
jne 0x14001661c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001661c
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_4
lea rax, [rsp + 0x74]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_1
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_6
lea rax, [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x74], r14d
jne 0x1400165ed
cmp dword [rsp + 0x78], r14d
je 0x1400165f4
cmp dword [rsp + 0x7c], r14d
je 0x14001661c
mov r8, qword [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [r8 + rdx*2], r14w
jne 0x140016600
inc rdx
lea rcx, [0x140080130]
call fcn.14003c608
mov esi, r14d
cmp esi, dword [rdi + 0x3e0]
je 0x1400166ac
test byte [rdi + 0x298], 0x10
je 0x14001665d
cmp word [0x14007ff28], r14w
je 0x14001665d
mov r9d, esi
lea r8, str.Mode_Change_Event_from_Render_Device:__d_r_n
mov edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.140002050
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rdi + 0x330]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x330]
mov dword [rdi + 0x3e0], esi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp word [0x14007ff28], r14w
je 0x1400166ac
mov rax, qword [rsp + 0x50]
lea rcx, [0x140067ac0]
mov r9, qword [rdi + 0x38]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_PropVariantClear]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x8e0]
mov rbx, qword [rsp + 0x8d8]
test rcx, rcx
je 0x1400166e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400166f1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016701
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x8b0]
mov rdi, qword [rsp + 0x8b8]
test rcx, rcx
je 0x140016721
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140024cf0
add rsp, 0x8c0
pop rbp
ret