Function at 0x14006bdd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rbp + 7], rax
xor r12d, r12d
mov dword [rbp - 0x15], r12d
mov r8d, 0x1ca
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, [0x1400b0e88]
call fcn.1400430e0
call fcn.140009e20
mov rcx, rax
call fcn.14006b4e0
call fcn.140009e20
cmp dword [rax + 0x138], r12d
jne 0x14006be84
cmp dword [0x140103eac], r12d
je 0x14006be84
cmp dword [0x140103ea8], r12d
jne 0x14006be6b
mov rax, qword [0x1400ff930]
test byte [rax + 0x1c], 1
je 0x14006be84
mov r8d, 0x3b
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.1400430e0
call fcn.140009e20
mov r13, qword [rax + 0xd8]
test r13, r13
je 0x14006c3a4
mov r14, 0xffffffffffffffff
movss xmm7, dword [0x1400d89b8]
mov ebx, 1
call fcn.140009e20
call fcn.140009e20
test r13, r13
je 0x14006c444
mov rsi, qword [r13 + 0x10]
mov r13, qword [r13]
test rsi, rsi
je 0x14006c39b
xor edx, edx
mov rcx, qword [rsi + 0x118]
test rcx, rcx
je 0x14006bf13
mov rcx, qword [rcx]
test rcx, rcx
je 0x14006bf13
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx]
test r8, r8
je 0x14006befe
cmp dword [r8 + 0x118], 0
cmove edx, ebx
test rcx, rcx
jne 0x14006bee7
test edx, edx
je 0x14006bf13
lea rcx, [rsi + 0xd0]
call fcn.14000e2f0
mov rcx, rsi
call fcn.14000db30
cmp dword [rsi + 0x150], 0
jne 0x14006bf31
cmp dword [rsi + 0x158], 0
je 0x14006c14c
mov r15, qword [rsi + 0x118]
test r15, r15
je 0x14006c14c
mov r15, qword [r15]
test r15, r15
je 0x14006c14c
mov rdi, qword [r15 + 0x10]
mov r15, qword [r15]
test rdi, rdi
je 0x14006c143
mov rcx, qword [rdi + 0x40]
sub rcx, 0x18
call fcn.1400056a0
lea r14, [rax + 0x18]
mov qword [rbp - 0x59], r14
or r12d, 1
mov rcx, qword [rdi + 0x10]
sub rcx, 0x18
call fcn.1400056a0
lea rbx, [rax + 0x18]
mov qword [rbp - 0x51], rbx
or r12d, 2
mov qword [rsp + 0x20], r14
mov r9, rbx
mov r8d, 0x1e0
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d___Endpoint_ID___s__Line_Name___s
call fcn.1400430e0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006bfce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [r14 - 0x18]
mov r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006bfef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140009c60
test dword [rax + 0xac], 0x100
je 0x14006c047
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [rsi + 0x58], 0
jne 0x14006c018
mov rcx, rsi
call fcn.140012880
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rsi + 0x8c], 0
jne 0x14006c047
call fcn.140009c60
cmp dword [rax + 0x22c], 0x33
jge 0x14006c047
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
jmp 0x14006c143
cmp dword [rsi + 0x184], 1
jne 0x14006c098
mov r9d, 1
lea r8, [rbp - 0x79]
lea rdx, [0x1400af8c0]
mov rcx, rsi
call fcn.140002900
mov ebx, eax
mov r14d, dword [rbp - 0x79]
mov r9d, r14d
mov r8d, eax
lea rdx, str.CAudioDevice::IsInHeadphonesMode
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.1400430e0
test ebx, ebx
je 0x14006c098
test r14d, r14d
je 0x14006c098
mov edx, 1
jmp 0x14006c09a
xor edx, edx
cmp dword [rsi + 0x184], 8
jne 0x14006c133
cmp dword [rdi + 0x114], 0
je 0x14006c13c
mov dword [rbp - 0x29], 0
mov rax, qword [rdi]
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r14, 0xffffffffffffffff
test eax, eax
je 0x14006c143
mov ecx, dword [rbp - 0x29]
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140092598
mov rbx, rax
test rax, rax
je 0x14006c143
xor edx, edx
mov r8d, dword [rbp - 0x29]
test r8d, r8d
je 0x14006c112
nop dword [rax]
mov dword [rax + rdx*4], 0x64
inc edx
mov r8d, dword [rbp - 0x29]
cmp edx, r8d
jb 0x14006c100
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, rbx
call fcn.140091f5c
jmp 0x14006c143
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov r14, 0xffffffffffffffff
test r15, r15
jne 0x14006bf4d
cmp dword [rsi + 0x15c], 0
je 0x14006c39b
mov eax, dword [rsi + 0x184]
dec eax
test eax, 0xfffffffd
jne 0x14006c39b
mov dword [rbp - 0x19], 0
lea rcx, [rsi + 0xd0]
call fcn.14000e210
mov rdi, rax
test rax, rax
je 0x14006c39b
mov qword [rbp - 0x21], 0
mov dword [rbp - 0x15], 3
mov dword [rbp - 9], 4
mov rcx, qword [rsi + 0x120]
sub rcx, 0x18
call fcn.1400056a0
lea rbx, [rax + 0x18]
mov qword [rbp - 1], rbx
cmp dword [rbx - 0x10], 0
jl 0x14006c218
lea rdx, [0x1400b574c]
mov rcx, rbx
call fcn.1400981d0
test rax, rax
je 0x14006c218
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14006c218
cmp dword [rbx - 0x10], 0
jge 0x14006c1e8
mov eax, r14d
jmp 0x14006c207
lea rdx, [0x1400b574c]
mov rcx, rbx
call fcn.1400981d0
test rax, rax
jne 0x14006c201
mov eax, r14d
jmp 0x14006c207
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rcx, [rbp - 1]
call fcn.1400316b0
mov rbx, qword [rbp - 1]
mov qword [rbp - 0x11], 0
lea rcx, [rbx - 0x18]
call fcn.1400056a0
add rax, 0x18
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x11]
call fcn.14006a930
nop
mov r8d, 7
lea rdx, str.Device
lea rcx, [rbp - 0x11]
call fcn.14000dfe0
lea rcx, [rsi + 0x128]
mov r8d, SafeArrayGetElement
lea rdx, [rbp - 0x69]
call fcn.14000a150
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x11]
call fcn.14000dfe0
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c29b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x11]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006c2fb
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14006c2fb
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x15]
xor r8d, r8d
lea rdx, str.Gain
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp - 0x19]
test eax, eax
je 0x14006c361
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm7
movups xmm0, xmmword [0x1400b5318]
movaps xmmword [rbp - 0x39], xmm0
mov rax, qword [rdi]
lea r8, [rbp - 0x39]
movaps xmm1, xmm6
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
cvtps2pd xmm0, xmm6
mov eax, dword [rbp - 0x19]
mov dword [rsp + 0x28], eax
movsd qword [rsp + 0x20], xmm0
mov r9, qword [rsi + 0x10]
mov r8d, 0x234
lea rdx, str.CMMPlatform::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_RtkSndwAudio_SetDBLevel__f__SetMute_FALSE__DrvDefVol_x
call fcn.1400430e0
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c380
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r14d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14006c39b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r13, r13
jne 0x14006bea8
call fcn.140009e20
mov ecx, dword [rax + 0x138]
sub ecx, 1
mov dword [rax + 0x138], ecx
jne 0x14006c3c9
mov rcx, qword [rax + 0x148]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14006c3e7
cmp ecx, 0x32
jle 0x14006c3e7
mov r8d, 0x81
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.1400430e0
call fcn.140009c60
test dword [rax + 0xd0], 0x100
je 0x14006c3ff
xor ecx, ecx
call fcn.1400401a0
call fcn.14003c080
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140091f30
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003b40
int3