Function at 0x140020340
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x80], 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
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rbp + 8], rax
xor r13d, r13d
mov dword [rsp + 0x30], r13d
call fcn.140009a60
mov rbx, rax
or edx, 0xffffffff
mov rcx, qword [rax + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
inc dword [rbx + 0x138]
call fcn.140009a60
cmp dword [rax + 0x138], r13d
jne 0x14002040d
cmp dword [0x1400dc724], r13d
je 0x14002040d
cmp dword [0x1400dc758], r13d
jne 0x1400203f4
mov rax, qword [0x1400d83b8]
test byte [rax + 0x1c], 1
je 0x14002040d
mov r8d, 0x39
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.140033040
call fcn.140009a60
mov r12, qword [rax + 0xd8]
test r12, r12
je 0x140020d26
movss xmm9, dword [0x1400b3a30]
movss xmm10, dword [0x1400b3a98]
movss xmm8, dword [0x1400b3a5c]
movss xmm12, dword [0x1400b3a58]
movss xmm7, dword [0x1400b39d8]
movss xmm11, dword [0x1400b3a6c]
call fcn.140009a60
call fcn.140009a60
test r12, r12
je 0x140020d1b
mov rdi, qword [r12 + 0x10]
mov r12, qword [r12]
test rdi, rdi
je 0x1400205d2
cmp dword [rdi + 0x16c], 0
je 0x1400205d2
lea rcx, [rdi + 0xd0]
call fcn.14000d820
mov rbx, rax
test rax, rax
je 0x1400205d2
call fcn.1400097d0
test dword [rax + 0xac], 0x100
je 0x1400204ff
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x10]
mov r9, qword [rdi + 0x10]
mov r8d, 0xbb7
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_IntelDMIC_SetMute_FALSE_
call fcn.140033040
call fcn.1400097d0
cmp dword [rax + 0x22c], 0x33
jne 0x1400205d2
mov rax, qword [rbx]
movaps xmm1, xmm9
mov rcx, rbx
call qword [rax + 0x78]
jmp 0x1400205d2
movaps xmm6, xmm10
mov dword [rsp + 0x40], r13d
mov esi, r13d
mov dword [rsp + 0x34], r13d
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x1400930e0]
mov rcx, rdi
call fcn.140002db0
test eax, eax
je 0x140020550
xor r9d, r9d
lea r8, [rsp + 0x34]
lea rdx, [0x1400930c8]
mov rcx, rdi
call fcn.140002db0
mov esi, dword [rsp + 0x34]
test eax, eax
mov r14d, 1
jne 0x140020553
mov r14d, r13d
mov dword [rsp + 0x28], esi
mov r15d, dword [rsp + 0x40]
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov r8d, 0xbca
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d_bSuccess_d_RtkApoVolCustomize_d_RtkApoVolCustomize_1_d
call fcn.140033040
test r14d, r14d
je 0x140020591
cmp r15d, 1
jne 0x140020591
cmp esi, r15d
jne 0x140020591
movaps xmm6, xmm8
mov rax, qword [rbx]
movaps xmm1, xmm6
mov rcx, rbx
call qword [rax + 0x78]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x10]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
movsd qword [rsp + 0x20], xmm0
mov r9, qword [rdi + 0x10]
mov r8d, 0xbd3
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_IntelDMIC_SetDBLevel__f__SetMute_FALSE_
call fcn.140033040
cmp dword [rdi + 0x180], 4
jne 0x140020856
mov rcx, qword [rdi + 0x120]
cmp dword [rcx - 0x10], 0
jl 0x14002060b
lea rdx, str.VEN_1002
call fcn.140081b98
test rax, rax
je 0x14002060b
sub rax, qword [rdi + 0x120]
sar rax, 1
test eax, eax
jns 0x140020643
mov rcx, qword [rdi + 0x120]
cmp dword [rcx - 0x10], 0
jl 0x140020856
lea rdx, [0x14009bfb8]
call fcn.140081b98
test rax, rax
je 0x140020856
sub rax, qword [rdi + 0x120]
sar rax, 1
test eax, eax
js 0x140020856
cmp dword [rdi + 0x15c], 0
jne 0x140020856
mov dword [rbp - 0x48], r13d
movaps xmm6, xmm12
lea rcx, [rdi + 0xd0]
call fcn.14000d820
mov r14, rax
xor r9d, r9d
lea r8, [rbp - 0x48]
lea rdx, [0x1400930b0]
lea rcx, [rdi + 0x10]
call fcn.140002ef0
test eax, eax
jne 0x1400207ed
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x40], 3
mov dword [rbp - 0x44], 4
mov rcx, qword [rdi + 0x120]
sub rcx, 0x18
call fcn.140005340
lea rbx, [rax + 0x18]
mov qword [rbp - 0x30], rbx
cmp dword [rbx - 0x10], 0
jl 0x14002070f
lea rdx, [0x14009bfb4]
mov rcx, rbx
call fcn.140081b98
test rax, rax
je 0x14002070f
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14002070f
cmp dword [rbx - 0x10], 0
jge 0x1400206df
or eax, 0xffffffff
jmp 0x1400206fe
lea rdx, [0x14009bfb4]
mov rcx, rbx
call fcn.140081b98
test rax, rax
jne 0x1400206f8
or eax, 0xffffffff
jmp 0x1400206fe
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rcx, [rbp - 0x30]
call fcn.140022810
mov rbx, qword [rbp - 0x30]
xor eax, eax
mov qword [rbp - 0x38], rax
lea rcx, [rbx - 0x18]
call fcn.140005340
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.140059450
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400207b3
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400207b3
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.DefaultCustomVolume
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rbp - 0x48]
lea rdx, [0x1400930b0]
lea rcx, [rdi + 0x10]
call fcn.140003150
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400207d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1400207ed
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x1400207ff
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm7
movups xmm0, xmmword [0x140098008]
movaps xmmword [rbp - 0x70], xmm0
mov rax, qword [r14]
lea r8, [rbp - 0x70]
movaps xmm1, xmm6
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x10]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x28], eax
movsd qword [rsp + 0x20], xmm0
mov r9, qword [rdi + 0x10]
mov r8d, 0xc06
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_IntelDMIC_SetDBLevel__f__SetMute_FALSE__DrvDefVol_x
call fcn.140033040
call fcn.1400097d0
test dword [rax + 0xac], 0x100
je 0x1400208bc
cmp dword [rdi + 0x150], 0
jne 0x1400208bc
cmp dword [rdi + 0x158], 0
jne 0x1400208bc
cmp dword [rdi + 0x154], 0
jne 0x1400208bc
lea rcx, [rdi + 0xd0]
call fcn.14000d820
test rax, rax
je 0x1400208bc
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 0x10]
mov r9, qword [rdi + 0x10]
mov r8d, 0xc13
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d__s_non_Realtek_device_SetMute_FALSE_
call fcn.140033040
mov rcx, qword [rdi + 0x120]
cmp dword [rcx - 0x10], 0
jl 0x140020a5d
lea rdx, str.VID_03F0PID_0567
call fcn.140081b98
test rax, rax
je 0x140020a5d
sub rax, qword [rdi + 0x120]
sar rax, 1
test eax, eax
js 0x140020a5d
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x140020a5d
mov r15, qword [rax]
test r15, r15
je 0x140020a5d
mov rsi, qword [r15 + 0x10]
mov r15, qword [r15]
test rsi, rsi
je 0x140020a54
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140041cb0
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140041d30
nop
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
mov r8d, 0xc22
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s__d___Endpoint_ID___s__Line_Name___s
call fcn.140033040
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020983
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400209a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.1400097d0
test dword [rax + 0xac], 0x100
je 0x1400209f7
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [rdi + 0x58], 0
jne 0x1400209cb
mov rcx, rdi
call fcn.140011950
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rdi + 0x8c], 0
jne 0x1400209f7
call fcn.1400097d0
cmp dword [rax + 0x22c], 0x33
je 0x1400209f7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
jmp 0x140020a54
cmp dword [rdi + 0x180], 1
jne 0x140020a48
mov r9d, 1
lea r8, [rsp + 0x48]
lea rdx, [0x140093230]
mov rcx, rdi
call fcn.140002db0
mov ebx, eax
mov r14d, dword [rsp + 0x48]
mov r9d, r14d
mov r8d, eax
lea rdx, str.CAudioDevice::IsInHeadphonesMode
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.140033040
test ebx, ebx
je 0x140020a48
test r14d, r14d
mov edx, 1
jne 0x140020a4b
mov edx, r13d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
test r15, r15
jne 0x140020910
lea rcx, [rdi + 0xd0]
call fcn.14000d820
mov rsi, rax
test rax, rax
je 0x140020d11
call fcn.1400097d0
test dword [rax + 0x17c], 0x2000
je 0x140020d11
cmp dword [rsi + 0x108], 1
jne 0x140020b46
cmp dword [rsi + 0x104], 0xffffffff
jne 0x140020b46
cmp dword [rdi + 0x180], 1
jne 0x140020b46
movups xmm0, xmmword [0x1400930b0]
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], 1
mov dword [rsp + 0x44], r13d
mov rdx, qword [rdi + 0x148]
lea rcx, [rsp + 0x68]
call fcn.1400052a0
nop
xor r9d, r9d
lea r8, [rsp + 0x44]
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.140002ef0
mov ebx, eax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140020b10
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
je 0x140020b46
mov rax, qword [rsi]
mov edx, r13d
mov ebx, dword [rsp + 0x44]
test ebx, ebx
setne dl
mov rcx, rsi
call qword [rax + 0x10]
mov r9d, ebx
mov r8, qword [rdi + 0x148]
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s_EpId_s_SetMute_d
call fcn.140033040
cmp dword [rsi + 0x114], 1
jne 0x140020d11
cmp dword [rsi + 0x110], 0xffffffff
jne 0x140020d11
cmp dword [rdi + 0x180], 1
jne 0x140020d11
movups xmm0, xmmword [0x1400930b0]
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp], r13d
mov dword [rsp + 0x3c], r13d
mov rdx, qword [rdi + 0x148]
lea rcx, [rsp + 0x70]
call fcn.1400052a0
nop
xor r9d, r9d
lea r8, [rsp + 0x3c]
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140002ef0
mov ebx, eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140020bc9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
je 0x140020d11
mov dword [rbp - 0x3c], r13d
mov rax, qword [rsi]
lea rdx, [rbp - 0x3c]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
je 0x140020d11
movd xmm6, dword [rsp + 0x3c]
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm7
mov rcx, rdi
call fcn.14000ca30
test eax, eax
je 0x140020cca
mov dword [rsp + 0x38], r13d
lea r9, [rsp + 0x38]
lea r8, str.PbDefaultVol_Hp
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14004e540
test eax, eax
jne 0x140020c69
lea rcx, [rsp + 0x78]
call fcn.140058e80
nop
mov ebx, dword [rsp + 0x30]
or ebx, 1
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x38]
lea r8, str.PbDefaultVol_Hp
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call fcn.14004e540
test eax, eax
jne 0x140020c6d
xor r14b, r14b
jmp 0x140020c70
mov ebx, dword [rsp + 0x30]
mov r14b, 1
test bl, 1
je 0x140020c9b
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020c9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14b, r14b
je 0x140020cca
mov r9d, dword [rsp + 0x38]
movd xmm6, r9d
cvtdq2ps xmm6, xmm6
divss xmm6, xmm11
mov r8d, dword [rsp + 0x3c]
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s_nValue_d_nHpDefVol_d
call fcn.140033040
movups xmm0, xmmword [0x140098008]
movaps xmmword [rbp - 0x60], xmm0
mov rax, qword [rsi]
lea r8, [rbp - 0x60]
movaps xmm1, xmm6
mov rcx, rsi
call qword [rax + 0x30]
cvtps2pd xmm3, xmm6
mov eax, dword [rsi + 0x110]
mov dword [rsp + 0x20], eax
movq r9, xmm3
mov r8, qword [rdi + 0x148]
lea rdx, str.CCustomizeHP::RestoreAllAudioDeviceMMLineCtrlsSettings
lea rcx, str._s_EpId_s_fDefaultVoldB_f_NodeId_d
call fcn.140033040
test r12, r12
je 0x140020d26
jmp 0x140020457
mov ecx, 0x80004005
call fcn.140003fc0
int3
call fcn.140009a60
mov ecx, dword [rax + 0x138]
sub ecx, 1
mov dword [rax + 0x138], ecx
jne 0x140020d5c
mov rcx, qword [rax + 0x148]
cmp dword [rax + 0x13c], 0
je 0x140020d54
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x140020d7a
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
jmp 0x140020d7a
cmp ecx, 0x32
jle 0x140020d7a
mov r8d, 0x6f
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.140033040
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140079e30
lea r11, [rsp + 0x180]
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]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret