Function at 0x14000d170
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 [0x14006c038]
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, [0x14006ccd8]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x17]
lea rcx, [0x14006ccc8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14000d6f1
cmp dword [rdi + 0x398], r14d
jne 0x14000d394
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 0x14000d384
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x14000d374
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
xor eax, eax
lea rdx, [0x14005b088]
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 0x14000d35f
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, [0x14005b070]
mov rax, qword [rcx]
jne 0x14000d2b4
lea rdx, [0x14005b058]
call qword [rax + 0x28]
test eax, eax
jne 0x14000d35f
mov eax, dword [rdi + 0x3d4]
cmp dword [rbp - 0x78], eax
je 0x14000d35f
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
lea rdx, [0x14005b0b8]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x14000d35f
movzx eax, word [0x14006ef28]
mov rcx, qword [rbp - 0x78]
mov dword [rdi + 0x3d4], ecx
test ax, ax
je 0x14000d32f
mov rax, qword [rsp + 0x50]
lea rcx, [0x14005aab0]
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 [0x14006ef28]
test byte [rdi + 0x290], 0x10
je 0x14000d35f
test ax, ax
je 0x14000d35f
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 0x14000d384
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d394
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [rdi + 0x398], 1
jne 0x14000d6f1
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 0x14000d6e1
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x14000d6d1
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x8d8], rbx
mov qword [rbp - 0x80], rax
lea rdx, [0x14005b0b8]
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 0x14000d517
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.140031158
lea r8, [0x14005d4c0]
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.1400310d4
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x3a0]
mov edx, 0x200
call fcn.1400310d4
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp + 0x3a0]
call fcn.1400310d4
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000d4f0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x400
call fcn.14001cd80
lea r8, [rbp - 0x60]
mov rdx, rbx
mov rcx, rdi
call fcn.140012390
test al, al
je 0x14000d4f0
lea rdx, str.2A6CD79F_47E8_4ABC_822B_3D301078976A
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x14000d4f0
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
mov r9d, 1
mov rcx, rdi
call fcn.140010c40
test al, al
jne 0x14000d4f0
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400146d0
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, [0x14005b0a0]
mov esi, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, dword [rbp - 0x78]
dec eax
test eax, 0xfffffffd
jne 0x14000d60c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000d60c
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 0x14000d5dd
cmp dword [rsp + 0x78], r14d
je 0x14000d5e4
cmp dword [rsp + 0x7c], r14d
je 0x14000d60c
mov r8, qword [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [r8 + rdx*2], r14w
jne 0x14000d5f0
inc rdx
lea rcx, [0x14006f130]
call fcn.140031158
mov esi, r14d
cmp esi, dword [rdi + 0x3d0]
je 0x14000d69c
test byte [rdi + 0x290], 0x10
je 0x14000d64d
cmp word [0x14006ef28], r14w
je 0x14000d64d
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 + 0x320]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x320]
mov dword [rdi + 0x3d0], esi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp word [0x14006ef28], r14w
je 0x14000d69c
mov rax, qword [rsp + 0x50]
lea rcx, [0x14005aab0]
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 0x14000d6d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000d6e1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d6f1
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 0x14000d711
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.140019840
add rsp, 0x8c0
pop rbp
ret