Function at 0x1400a6770
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1fc0]
mov eax, 0x20c0
call fcn.1400f9a10
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x20f0], rbx
mov qword [rsp + 0x2108], rsi
mov rax, qword [0x1401a4010]
xor rax, rsp
mov qword [rbp + 0x1fb0], rax
mov r15, r8
mov r14, rdx
test rdx, rdx
jne 0x1400a67e3
mov r8d, 0x265
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
xor eax, eax
jmp 0x1400a6c6a
mov rcx, r15
call fcn.140004f90
mov rcx, r14
call fcn.140010190
mov ecx, eax
xor edi, edi
cmp eax, 1
jne 0x1400a6ad6
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x1400a6c95
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov rdx, r14
call fcn.1400a6ca0
lea rbx, [rdi - 1]
test eax, eax
jne 0x1400a6850
mov r8d, 0x270
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
jmp 0x1400a68a7
mov qword [rsp + 0x60], rdi
mov r8, r14
lea rdx, [rsp + 0x60]
call fcn.1400a66d0
nop
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 0
jne 0x1400a68ca
mov r8d, 0x273
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a68a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a68c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400a6c6a
mov qword [rbp - 0x80], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.DriverVersion
lea rcx, [rsp + 0x48]
call fcn.140004ab0
mov rbx, rax
mov rsi, qword [rsp + 0x70]
add rsi, 0xffffffffffffffe8
mov rcx, rsi
call fcn.140007120
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r9, rbx
lea r8, [rsp + 0x38]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x80]
call fcn.140086760
nop
mov rcx, rsi
call fcn.140007120
add rax, 0x18
mov qword [rbp - 0x70], rax
lea rdx, str.APOTunings
lea rcx, [rbp - 0x70]
call fcn.14006c640
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x30]
mov qword [rbp - 0x78], rax
lea rdx, str.TuningVersion
lea rcx, [rsp + 0x30]
call fcn.140004ab0
mov rbx, rax
mov r12, qword [rbp - 0x70]
lea rcx, [r12 - 0x18]
call fcn.140007120
add rax, 0x18
mov qword [rsp + 0x40], rax
mov r9, rbx
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x78]
call fcn.140086760
nop
mov rcx, rsi
call fcn.140007120
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, 0x27
lea rcx, [rbp - 0x78]
call fcn.140095680
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp - 0x78]
mov r9, rbx
mov r8, qword [rsp + 0x60]
lea rdx, str._s__s_DrvVer_s_PreVer_s
mov rcx, r15
call fcn.1400071a0
lea r8, [0x140157d98]
lea rdx, [0x14011a494]
mov rcx, r15
call fcn.14000c010
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r9, qword [r14 + 0x10]
mov r8d, 0x286
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_EpId_s_PresetId_s
call fcn.140065460
nop
lea rdx, [rbx - 0x18]
mov rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a6a3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a6a5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, ebx
lock xadd dword [r12 - 8], eax
sub eax, 1
jg 0x1400a6a7a
mov rcx, qword [r12 - 0x18]
mov rax, qword [rcx]
lea rdx, [r12 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a6a98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a6ab7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rsi + 0x10], ebx
sub ebx, 1
jg 0x1400a6c5d
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400a6c5d
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400a6b04
mov dword [rsp + 0x20], ecx
mov r9, qword [r14 + 0x10]
mov r8d, 0x2a9
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_EpId_s_GetRtkGen4TuningType_d
call fcn.140065460
jmp 0x1400a6c5d
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x58], rdi
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140029f10
test eax, eax
jne 0x1400a6c27
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x50]
call fcn.1400daa40
mov dword [rsp + 0x58], 0x1ffe
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.GenaricPresetId
mov rsi, qword [rbp - 0x68]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a6bad
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x1400a6ba8
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400a6bc7
test al, 1
jne 0x1400a6ba8
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x1400a6bcb
mov eax, SafeArrayDestroy
mov dword [rsp + 0x20], eax
lea r9, str.GenaricPresetId
mov r8d, 0x297
lea rcx, str._s__d_QueryStringValue_s_ret_d
jmp 0x1400a6c08
mov word [rbp - 0x50], di
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400a6bd6
mov r8d, ebx
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.140004e70
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r9, qword [r14 + 0x10]
mov r8d, 0x29d
lea rcx, str._s__d_EpId_s_GenaricPresetId_s
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
call fcn.140065460
test rsi, rsi
je 0x1400a6c4f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, rdi
jmp 0x1400a6c4f
mov dword [rsp + 0x20], eax
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov r8d, 0x2a4
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RegBSSGen4RootStore__s__ret_d
call fcn.140065460
mov rsi, qword [rbp - 0x68]
test rsi, rsi
je 0x1400a6c5d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [r15]
cmp dword [rcx - 0x10], 0
setne dil
mov eax, edi
mov rcx, qword [rbp + 0x1fb0]
xor rcx, rsp
call fcn.1400d37a0
lea r11, [rsp + 0x20c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005560
int3