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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
movzx r15d, r8b
mov rbx, rdx
mov rdi, rcx
mov byte [rdx], 0
mov r14b, 1
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_4
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r12d, r12d
test eax, eax
jne 0x14001c226
cmp dword [rsp + 0x34], 4
jne 0x14001c226
mov byte [rbx], r14b
jmp 0x14001c22d
mov dword [rbp - 0x41], r12d
xor r14b, r14b
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_1
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c270
cmp dword [rsp + 0x30], 4
jne 0x14001c270
mov byte [rbx], 1
jmp 0x14001c277
mov dword [rbp - 0x45], r12d
xor r14b, r14b
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_6
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c2ba
cmp dword [rsp + 0x30], 4
jne 0x14001c2ba
mov byte [rbx], 1
jmp 0x14001c2c1
mov dword [rbp - 0x49], r12d
xor r14b, r14b
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r12w
mov r8d, 0x2d
lea rdx, str._DtsService::CodecSupport::_Registry_watcher
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
lea r9, [rbp + 0x11]
mov r8d, dword [rbp - 0x45]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14001c2f0
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r12w
lea rax, [rbp + 0x11]
cmp r9, rax
je 0x14001c351
lea r8, [rbp + 0x11]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x71]
call fcn.14000f500
nop
lea r8, [rbp - 0x71]
lea rdx, str._Redirect_HeadphoneMode
lea rcx, [rsp + 0x38]
call fcn.14000f8a0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c374
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c3c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c3c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c3c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001c41c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c417
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea r9, [rbp + 0x11]
mov r8d, dword [rbp - 0x49]
nop dword [rax]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14001c430
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r12w
lea rax, [rbp + 0x11]
cmp r9, rax
je 0x14001c491
lea r8, [rbp + 0x11]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x71]
call fcn.14000f500
nop
lea r8, [rbp - 0x71]
lea rdx, str._InternalSpeakerMode
lea rcx, [rsp + 0x38]
call fcn.14000f8a0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c4b4
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c506
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c501
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c501
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001c55c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c557
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c557
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea r9, [rbp + 0x11]
mov r8d, dword [rbp - 0x41]
nop dword [rax]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14001c570
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r12w
lea rax, [rbp + 0x11]
cmp r9, rax
je 0x14001c5d1
lea r8, [rbp + 0x11]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x71]
call fcn.14000f500
nop
lea r8, [rbp - 0x71]
lea rdx, str._HeadphoneMode
lea rcx, [rsp + 0x38]
call fcn.14000f8a0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c5f4
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c646
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c641
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c641
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001c69c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c697
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c697
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
test rsi, rsi
je 0x14001c7a3
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r12w
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14001c6c0
mov rdx, rsi
lea rcx, [rbp - 0x71]
call fcn.14000f500
nop
lea r8, [rbp - 0x71]
lea rdx, str._Device_ID
lea rcx, [rsp + 0x38]
call fcn.14000f8a0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c6fb
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c74d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c748
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c748
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001c7a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c79e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c79e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
movzx edx, r14b
lea rcx, [rbp - 0x71]
call fcn.140002150
nop
mov r8, rax
lea rdx, str._DtsService::CodecSupport::Found_All_registry
lea rcx, [rsp + 0x38]
call fcn.14000f8a0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c7d3
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c825
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c820
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c820
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], 7
mov word [rsp + 0x38], r12w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001c87b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c876
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c876
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r15b, r15b
je 0x14001c8a3
test r14b, r14b
jne 0x14001c8a3
mov ebx, 3
jmp 0x14001c950
mov qword [rsp + 0x20], rsi
mov r8d, dword [rbp - 0x49]
mov edx, dword [rbp - 0x45]
mov ecx, dword [rbp - 0x41]
call fcn.14001b820
mov ebx, eax
mov r8d, 0x3f
lea rdx, str._DtsService::CodecSupport::_Registry_watcher_new_form_factor_
lea rcx, [rbp - 0x39]
call fcn.14000f500
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140002150
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c8e9
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000f6a0
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 8
jb 0x14001c93b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c936
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c936
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14001c993
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c98e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c98e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14001d660
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret