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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, r8
mov r13d, 1
mov r9d, r13d
lea r8, [rsp + 0x64]
mov rdi, rdx
mov rsi, rcx
call fcn.140010c40
cmp al, r13b
jne 0x140013e6f
mov r9d, r13d
lea r8, [rsp + 0x64]
mov rdx, rdi
mov rcx, rsi
call fcn.1400111e0
cmp al, r13b
jne 0x140013e6f
movups xmm0, xmmword [0x14005b028]
mov qword [rsp + 0x4d0], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x498], r14
lea r8, [rsp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x490], r15
mov dword [rsp + 0x30], r14d
mov r9d, 0x384
mov dword [rsp + 0x28], r13d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r14d
movaps xmmword [rsp + 0x50], xmm0
call fcn.1400109a0
mov r9d, r13d
mov dword [rsp + 0x44], r14d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov rdx, rdi
mov dword [rsp + 0x68], r14d
mov rcx, rsi
mov dword [rsp + 0x60], 4
movzx ebx, al
mov r15d, 0xffffffff
call fcn.1400114d0
test al, al
jne 0x1400138d5
test byte [rsi + 0x290], r13b
je 0x140013a5b
lea rcx, str.Metering::Is_ren_RTK_speak_or_headphone__No_Render_Endpoint_Property_Key_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140013a5b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.1da5d803_d492_4edd_8c23_e0c0ffee7f0e_0
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a5b
mov rcx, qword [rsp + 0x50]
mov r15d, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x68], r13d
jne 0x140013a5b
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.140031158
lea r8, [0x14005d4c0]
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.1400310d4
mov r8, rdi
lea rcx, [rbp - 0x80]
mov edx, 0x200
call fcn.1400310d4
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.1400310d4
lea rax, [rsp + 0x50]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013a5b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_4
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0xff
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x64], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_1
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_6
lea rax, [rsp + 0x64]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x6c], r14d
jne 0x140013a47
cmp dword [rsp + 0x70], r14d
jne 0x140013a47
mov r15d, r14d
jmp 0x140013a50
cmp dword [rsp + 0x64], r14d
cmovne r15d, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.103c
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
movups xmm0, xmmword [0x14005b028]
test rax, rax
mov dword [rsp + 0x28], r13d
lea rax, [rsp + 0x44]
mov r12d, r14d
mov r9d, 0x2329
movaps xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
cmovne r12d, r13d
call fcn.1400105f0
test al, al
jne 0x140013ad3
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x50]
mov r8d, r13d
mov dword [rsp + 0x20], 0x2329
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
call fcn.140014c90
cmp r15d, 0xffffffff
jne 0x140013b66
mov rdx, rdi
test bl, bl
jne 0x140013aee
mov r9d, r15d
call fcn.140015b50
jmp 0x140013aff
mov r9d, r13d
mov r8d, 0xffffffff
mov rcx, rsi
call fcn.140010220
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x28], r13d
lea r8, [rsp + 0x50]
mov r9d, 0x2329
mov dword [rsp + 0x20], 0x80000000
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
mov rcx, rsi
call fcn.140010400
xor eax, eax
mov r14, qword [rsp + 0x498]
mov rbx, qword [rsp + 0x4d0]
mov r15, qword [rsp + 0x490]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140019840
add rsp, 0x4a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test bl, bl
je 0x140013bb3
cmp dword [rsp + 0x40], 0xffffffff
jne 0x140013c5a
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140010220
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], r13d
mov rdx, rdi
mov rcx, rsi
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], r14d
call fcn.1400107b0
jmp 0x140013be4
xor r9d, r9d
mov rdx, rdi
call fcn.140015b50
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x50]
mov r8d, r13d
mov dword [rsp + 0x28], r14d
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
call fcn.140015310
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x28], r13d
lea r8, [rsp + 0x50]
mov r9d, 0x2329
mov dword [rsp + 0x20], r14d
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
mov rcx, rsi
call fcn.140010400
test r12d, r12d
je 0x140013c5a
cmp r15d, r13d
jne 0x140013c5a
movups xmm0, xmmword [0x14005b018]
mov dword [rsp + 0x28], 0x40860004
lea r9, [rsp + 0x50]
mov r8d, r13d
mov dword [rsp + 0x20], 0x6b
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
call fcn.140014c90
mov r9d, r13d
mov r8d, 0x40860004
mov rdx, rdi
mov rcx, rsi
call fcn.140011100
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r13d
lea r8, [rsp + 0x50]
mov r9d, 0x384
movaps xmmword [rsp + 0x50], xmm0
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.1400109a0
test al, al
jne 0x140013cba
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x30], r13d
lea r9, [rsp + 0x50]
mov r8d, r13d
mov dword [rsp + 0x28], r14d
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
call fcn.140015310
movups xmm0, xmmword [0x14005b028]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], r13d
mov r9d, 0x2329
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov rdx, rdi
mov rcx, rsi
call fcn.1400105f0
test al, al
jne 0x140013d1a
movups xmm0, xmmword [0x14005b028]
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x50]
mov r8d, r13d
mov dword [rsp + 0x20], 0x2329
mov rdx, rdi
movaps xmmword [rsp + 0x50], xmm0
call fcn.140014c90
jmp 0x140013d1f
mov r14d, dword [rsp + 0x44]
btr r14d, 0x1f
mov ebx, 0x4092
test r15d, r15d
jne 0x140013ddb
mov r9, rdi
lea r8, [0x14005b1b8]
mov edx, 0x100
lea rcx, [0x14006f330]
call fcn.140002050
bt r14d, 0x1c
jb 0x140013ddb
test r12d, r12d
je 0x140013d96
mov r9, rdi
lea r8, str.HP__get_ren_RTK_0_int_speak_or_1_headphone_ok__int_spk_at__s_n
mov edx, 0x100
mov rcx, rsi
call fcn.14000e0f0
test dword [rsi + 0x290], 0x400
je 0x140013d96
mov r9, rdi
lea r8, str.HP__get_ren_RTK_0_int_speak_or_1_headphone_ok__int_spk_at__s_n
lea edx, [r15 + 4]
mov rcx, rsi
call fcn.14000e320
cmp word [rsi + 0x262], bx
lea r8, [rsp + 0x50]
movups xmm0, xmmword [0x14005b028]
sbb ebx, ebx
mov dword [rsp + 0x28], r13d
add ebx, 0x10000001
mov r9d, 0x2329
or ebx, r14d
movaps xmmword [rsp + 0x50], xmm0
mov rdx, rdi
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call fcn.140010400
mov r14d, ebx
mov ebx, 0x4092
cmp r15d, r13d
jne 0x140013e67
bt r14d, 0x1d
jb 0x140013e67
test r12d, r12d
je 0x140013e2a
mov r9, rdi
lea r8, str.HP__get_ren_RTK_0_int_speak_or_1_headphone_ok__headphone_at__s_n
mov edx, 0x100
mov rcx, rsi
call fcn.14000e0f0
test dword [rsi + 0x290], 0x400
je 0x140013e2a
mov r9, rdi
lea r8, str.HP__get_ren_RTK_0_int_speak_or_1_headphone_ok__headphone_at__s_n
mov edx, 4
mov rcx, rsi
call fcn.14000e320
cmp word [rsi + 0x266], bx
lea r8, [rsp + 0x50]
movups xmm0, xmmword [0x14005b028]
sbb ecx, ecx
mov dword [rsp + 0x28], r13d
add ecx, 0x20000001
mov r9d, 0x2329
or ecx, r14d
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], ecx
mov rdx, rdi
mov rcx, rsi
call fcn.140010400
mov eax, r13d
jmp 0x140013b30
xor eax, eax
jmp 0x140013b48