Function at 0x1400ba690
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8020]
mov eax, 0x8120
call fcn.1400fdb80
sub rsp, rax
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp + 0x8010], rax
mov rbx, r9
mov qword [rsp + 0x38], rbx
mov r12, r8
mov qword [rsp + 0x48], r8
mov r13, rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], rbx
test rdx, rdx
jne 0x1400ba710
mov r8d, 0x90
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140075db0
nop
lea r14, [r13 - 1]
jmp 0x1400baff1
xor r15d, r15d
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 9]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea r14, [r15 - 1]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400bafc6
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
mov qword [rbp - 0x58], r15
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r15d
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 9]
xor r8d, r8d
lea rdx, [0x140169d18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400baf9a
mov dword [rbp - 0x3c], r15d
mov dword [rbp - 0x20], 0x1ffe
mov dword [rbp - 0x40], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x6010]
call fcn.1400fac10
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x10]
call fcn.1400fac10
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6010]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea rdx, str.TuningFileBasePath
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400baf1b
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea rdx, str.TuningFiles
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x40]
test eax, eax
jne 0x1400baef9
test ecx, ecx
je 0x1400baef9
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb075
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rbp - 0x30], rax
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb080
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rbp - 0x28], rax
mov r9, qword [rbx]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPresetRender
lea rdx, [0x14011bc58]
lea rcx, [rbp - 0x30]
call fcn.14000ec90
mov r9, qword [rbx]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPresetCapture
lea rdx, [0x14011bc58]
lea rcx, [rbp - 0x28]
call fcn.14000ec90
mov r8d, 0x2001b
mov rbx, qword [rbp - 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140098950
mov r8d, 0x2001b
mov rdi, qword [rbp - 0x28]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140098950
mov r9d, 0x2001b
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140035040
test eax, eax
je 0x1400ba98c
mov rdx, rbx
call fcn.140098a40
mov r8d, 0xc1
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EXIT_ON_TRUE
call fcn.140075db0
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400ba95b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400baf42
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
jmp 0x1400baf42
mov r9d, 0x2001b
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x80]
call fcn.140035040
test eax, eax
je 0x1400ba9bc
mov rdx, rdi
call fcn.140098a40
mov r8d, 0xc8
jmp 0x1400ba922
lea r15, [rbp + 0x10]
xor esi, esi
cmp dword [rbp - 0x40], esi
jle 0x1400baa99
nop dword [rax + rax]
mov rbx, r14
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400ba9d3
test ebx, ebx
jle 0x1400baa76
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb06a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rbp - 0x10], rax
mov r9, r15
lea r8, [rbp + 0x6010]
lea rdx, [0x14011bc58]
lea rcx, [rbp - 0x10]
call fcn.14000ec90
mov rdi, qword [rbp - 0x10]
lea rcx, [rdi - 0x18]
call fcn.14000ec00
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x40]
call fcn.1400bb910
lea esi, [rsi + rbx*2]
mov eax, r14d
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x1400baa76
lfence
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
add esi, 2
mov eax, esi
jns 0x1400baa80
lea eax, [rsi + 1]
sar eax, 1
cdqe
lea r15, [rbp + 0x10]
lea r15, [r15 + rax*2]
cmp esi, dword [rbp - 0x40]
jl 0x1400ba9d0
mov rdi, qword [rbp - 0x28]
mov dword [rbp - 0x38], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x2010]
call fcn.1400fac10
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2010]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea rdx, str.ExtraTunings
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400bac27
lea rsi, [rbp + 0x2010]
xor r15d, r15d
mov ecx, dword [rbp - 0x38]
test ecx, ecx
jle 0x1400bac43
mov r13, qword [rbp - 0x68]
mov r12, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x30]
nop dword [rax]
mov rbx, r14
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400bab13
test ebx, ebx
jle 0x1400babf2
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi + 0x10]
mov r8d, 0xf6
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_TuningKey_s
call fcn.140075db0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400bab79
mov rdx, qword [rbp - 0x50]
mov rcx, r13
call fcn.14009a750
jmp 0x1400bab99
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x255
lea rdx, str.CRtkApoConditionPresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.140075db0
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400babcb
mov rdx, qword [rbp - 0x48]
mov rcx, r12
call fcn.14009a750
jmp 0x1400babeb
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x255
lea rdx, str.CRtkApoConditionPresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.140075db0
lea r15d, [r15 + rbx*2]
mov ecx, dword [rbp - 0x38]
add r15d, 2
mov eax, r15d
jns 0x1400babff
lea eax, [r15 + 1]
sar eax, 1
cdqe
lea rsi, [rbp + 0x2010]
lea rsi, [rsi + rax*2]
cmp r15d, ecx
jl 0x1400bab10
mov rdi, qword [rbp - 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
jmp 0x1400bac43
mov r9d, eax
mov r8d, 0x105
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueExW_ExtraTunings_ret_d
call fcn.140075db0
xor r15d, r15d
mov dword [rbp - 0x18], r15d
mov dword [rbp - 0x1c], 4
mov esi, r15d
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea rdx, str.SupportGenericTuning
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400baca4
mov r9, qword [r13 + 0x10]
mov r8d, 0x114
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_SupportGenericTuning
call fcn.140075db0
lea esi, [r15 + 1]
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp - 8], r15
mov dword [rbp], r15d
mov qword [rbp + 8], r15
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPreset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 8]
call fcn.140035040
test eax, eax
jne 0x1400bae51
mov rbx, qword [rbp - 8]
test esi, esi
jne 0x1400bad6d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x4010]
call fcn.1400fac10
mov dword [rsp + 0x70], 0x1ffe
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4010]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
xor r8d, r8d
lea rdx, str.GenaricPresetId
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400bad6d
mov eax, dword [rbp - 0x14]
dec eax
cmp eax, 1
ja 0x1400bad6d
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x1400bad5d
test cl, 1
jne 0x1400bad6d
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 + 0x400e], si
je 0x1400bad65
jmp 0x1400bad6d
mov word [rbp + 0x4010], r15w
shr ecx, 1
jne 0x1400bae3a
mov r15, qword [rsp + 0x38]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400badb4
mov rax, r14
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400bad80
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.GenaricPresetId
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [r12]
test rcx, rcx
je 0x1400badf4
mov rax, r14
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400badc0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.GenaricPresetDrvRegPath
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test esi, esi
je 0x1400bae37
mov rcx, qword [r15]
test rcx, rcx
je 0x1400bae37
mov rax, r14
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400bae03
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.SupportGenericTuningPresetId
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor r15d, r15d
test rbx, rbx
je 0x1400bae71
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, r15
mov qword [rbp - 8], rbx
jmp 0x1400bae71
mov r9d, eax
mov r8d, 0x13d
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegBSSGen4RootStore.Open_nRegRet_d
call fcn.140075db0
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x1400bae7f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.1400147e0
mov rcx, rax
mov edx, 0x43c
call fcn.1400e8940
call fcn.1400147e0
mov rcx, rax
mov edx, 0x43c
mov r8d, 0x7d0
call fcn.1400e8700
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400baecf
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400baf37
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
jmp 0x1400baf37
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8d, 0x147
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueEx_TuningFiles_ret_d_nTuningFilesBufLen_d
call fcn.140075db0
jmp 0x1400baf37
mov r9d, eax
mov r8d, 0x14c
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueEx_TuningFileBasePath_ret_d
call fcn.140075db0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400baf55
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x68], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400baf68
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400baf89
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400baff1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400baff1
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [r12]
mov r8d, 0x153
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyExW_APOTunings__DrvRegPath_s_EpId_s_RegRet_d
call fcn.140075db0
jmp 0x1400baf6d
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [r12]
mov r8d, 0x15d
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyPath_s_EpId_s_RegRet_d
call fcn.140075db0
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb01a
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400bb040
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbp + 0x8010]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0x8160]
add rsp, 0x8120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
int3