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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8030]
mov eax, 0x8130
call fcn.1400f9a10
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x8170], rbx
mov rax, qword [0x1401a4010]
xor rax, rsp
mov qword [rbp + 0x8020], 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 + 0x58], r8
mov qword [rsp + 0x60], rbx
test rdx, rdx
jne 0x1400a515d
mov r8d, 0x89
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140065460
nop
lea r14, [r13 - 1]
jmp 0x1400a5a3c
xor r15d, r15d
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x80]
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 [rbp - 0x80]
test rcx, rcx
je 0x1400a5a11
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], r15d
mov qword [rbp - 0x68], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 9]
xor r8d, r8d
lea rdx, [0x1401574f0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a59e5
mov dword [rbp - 0x34], r15d
mov dword [rbp - 0x18], 0x1ffe
mov dword [rbp - 0x38], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x4020]
call fcn.1400daa40
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x20]
call fcn.1400daa40
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4020]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.TuningFileBasePath
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a5967
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.TuningFiles
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x38]
test eax, eax
jne 0x1400a5945
test ecx, ecx
je 0x1400a5945
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x1400a5aac
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x28], rax
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x1400a5ab7
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov r9, qword [rbx]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4PresetRender
lea rdx, [0x140119d88]
lea rcx, [rbp - 0x28]
call fcn.1400071a0
mov r9, qword [rbx]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4PresetCapture
lea rdx, [0x140119d88]
lea rcx, [rbp - 0x20]
call fcn.1400071a0
mov r8d, 0x2001b
mov rbx, qword [rbp - 0x28]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140085e90
mov r8d, 0x2001b
mov rdi, qword [rbp - 0x20]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140085e90
mov r9d, 0x2001b
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.140029f10
test eax, eax
je 0x1400a53b3
mov rdx, rbx
call fcn.140085f80
mov r8d, 0xba
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EXIT_ON_TRUE
call fcn.140065460
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a538c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a598e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400a598e
mov r9d, 0x2001b
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x78]
call fcn.140029f10
test eax, eax
je 0x1400a5434
mov rdx, rdi
call fcn.140085f80
mov r8d, 0xc1
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EXIT_ON_TRUE
call fcn.140065460
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a540d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a598e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400a598e
lea r15, [rbp + 0x20]
xor esi, esi
cmp dword [rbp - 0x38], esi
jle 0x1400a5504
nop dword [rax]
nop word [rax + rax]
mov rbx, r14
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400a5453
test ebx, ebx
jle 0x1400a54e1
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x1400a5aa1
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x10], rax
mov r9, r15
lea r8, [rbp + 0x4020]
lea rdx, [0x140119d88]
lea rcx, [rbp + 0x10]
call fcn.1400071a0
mov rdi, qword [rbp + 0x10]
lea rcx, [rdi - 0x18]
call fcn.140007120
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
call fcn.1400a62b0
lea esi, [rsi + rbx*2]
mov eax, r14d
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x1400a54e1
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add esi, 2
mov eax, esi
jns 0x1400a54eb
lea eax, [rsi + 1]
sar eax, 1
cdqe
lea r15, [rbp + 0x20]
lea r15, [r15 + rax*2]
cmp esi, dword [rbp - 0x38]
jl 0x1400a5450
mov rdi, qword [rbp - 0x20]
mov dword [rbp - 0x30], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x2020]
call fcn.1400daa40
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2020]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.ExtraTunings
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a5697
lea rsi, [rbp + 0x2020]
xor r15d, r15d
mov ecx, dword [rbp - 0x30]
test ecx, ecx
jle 0x1400a56b3
mov r13, qword [rbp - 0x60]
mov r12, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x30]
nop word [rax + rax]
mov rbx, r14
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400a5583
test ebx, ebx
jle 0x1400a5662
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi + 0x10]
mov r8d, 0xef
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_TuningKey_s
call fcn.140065460
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a55e9
mov rdx, qword [rbp - 0x48]
mov rcx, r13
call fcn.140087c40
jmp 0x1400a5609
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x24e
lea rdx, str.CRtkBssGen4PresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.140065460
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a563b
mov rdx, qword [rbp - 0x40]
mov rcx, r12
call fcn.140087c40
jmp 0x1400a565b
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x24e
lea rdx, str.CRtkBssGen4PresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.140065460
lea r15d, [r15 + rbx*2]
mov ecx, dword [rbp - 0x30]
add r15d, 2
mov eax, r15d
jns 0x1400a566f
lea eax, [r15 + 1]
sar eax, 1
cdqe
lea rsi, [rbp + 0x2020]
lea rsi, [rsi + rax*2]
cmp r15d, ecx
jl 0x1400a5580
mov rdi, qword [rbp - 0x20]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
jmp 0x1400a56b3
mov r9d, eax
mov r8d, 0xfe
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueExW_ExtraTunings_ret_d
call fcn.140065460
xor r15d, r15d
mov dword [rbp - 0x10], r15d
mov dword [rbp - 0x14], 4
mov esi, r15d
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.SupportGenericTuning
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a5714
mov r9, qword [r13 + 0x10]
mov r8d, 0x10d
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_SupportGenericTuning
call fcn.140065460
lea esi, [r15 + 1]
xor eax, eax
mov qword [rbp], rax
mov qword [rbp - 8], r15
mov dword [rbp], r15d
mov qword [rbp + 8], r15
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 8]
call fcn.140029f10
test eax, eax
jne 0x1400a58b1
mov rbx, qword [rbp - 8]
test esi, esi
jne 0x1400a57ce
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x6020]
call fcn.1400daa40
mov dword [rsp + 0x78], 0x1ffe
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6020]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0xc]
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 0x1400a57ce
mov eax, dword [rbp - 0xc]
dec eax
cmp eax, 1
ja 0x1400a57ce
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x1400a57c6
test cl, 1
jne 0x1400a57ce
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 + 0x601e], si
jne 0x1400a57ce
shr ecx, 1
jne 0x1400a589a
mov r15, qword [rsp + 0x38]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400a5814
mov rax, r14
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400a57e0
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 0x1400a5854
mov rax, r14
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400a5820
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 0x1400a5897
mov rcx, qword [r15]
test rcx, rcx
je 0x1400a5897
mov rax, r14
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400a5863
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 0x1400a58d1
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 0x1400a58d1
mov r9d, eax
mov r8d, 0x136
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegBSSGen4RootStore.Open_nRegRet_d
call fcn.140065460
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x1400a58df
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.14000bb60
mov rcx, rax
mov edx, 0x43c
call fcn.1400c8d80
call fcn.14000bb60
mov rcx, rax
mov edx, 0x43c
mov r8d, 0x7d0
call fcn.1400c8b50
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a5925
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a5983
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400a5983
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8d, 0x140
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueEx_TuningFiles_ret_d_nTuningFilesBufLen_d
call fcn.140065460
jmp 0x1400a5983
mov r9d, eax
mov r8d, 0x145
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegQueryValueEx_TuningFileBasePath_ret_d
call fcn.140065460
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400a59a1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x60], r15
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400a59b4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x78], r15
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400a59d4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400a5a3c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400a5a3c
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [r12]
mov r8d, 0x14c
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyExW_APOTunings__DrvRegPath_s_EpId_s_RegRet_d
call fcn.140065460
jmp 0x1400a59b9
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [r12]
mov r8d, 0x156
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyPath_s_EpId_s_RegRet_d
call fcn.140065460
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a5a5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400a5a77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x8020]
xor rcx, rsp
call fcn.1400d37a0
mov rbx, qword [rsp + 0x8170]
add rsp, 0x8130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
int3