Function at 0x1400a6ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1f80]
mov eax, 0x2080
call fcn.1400f9a10
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x20b0], rbx
mov qword [rsp + 0x20c8], rsi
mov rax, qword [0x1401a4010]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov r15, r8
mov r14, rdx
test rdx, rdx
jne 0x1400a6d13
mov r8d, 0x2b3
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetProvideDriverRegPath
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140065460
xor eax, eax
jmp 0x1400a6fb6
mov rcx, r14
call fcn.140010190
xor esi, esi
cmp eax, 1
jne 0x1400a6e24
mov qword [rsp + 0x50], rsi
mov r8, r14
lea rdx, [rsp + 0x50]
call fcn.1400a66d0
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140007120
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140094230
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [r15]
sub rdi, 0x18
lea rbx, [rsi - 1]
cmp rcx, rdi
je 0x1400a6dbb
cmp dword [rdi + 0x10], esi
jl 0x1400a6dae
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400a6dae
call fcn.140007120
mov r13, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x1400a6da5
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [r15], rax
jmp 0x1400a6dbb
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.140004e70
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a6dd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r9, qword [r14 + 0x10]
mov r8d, 0x2ba
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetProvideDriverRegPath
lea rcx, str._s__d_EpId_s_PresetDrvRegPath_s
call fcn.140065460
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a6fa9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400a6fa9
mov rcx, r14
call fcn.140010190
cmp eax, 3
je 0x1400a6e42
mov rcx, r14
call fcn.140010190
cmp eax, 2
jne 0x1400a6fa9
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], rsi
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.140029f10
test eax, eax
jne 0x1400a6f72
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x70]
call fcn.1400daa40
mov dword [rsp + 0x48], 0x2000
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.GenaricPresetDrvRegPath
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a6ef3
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x1400a6eee
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400a6f0d
test al, 1
jne 0x1400a6eee
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400a6f12
mov eax, SafeArrayDestroy
mov dword [rsp + 0x20], eax
lea r9, str.GenaricPresetDrvRegPath
mov r8d, 0x2cd
lea rcx, str._s__d_QueryStringValue__s__ret_d
jmp 0x1400a6f53
mov word [rsp + 0x70], si
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400a6f20
mov r8d, ebx
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140004e70
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov r9, qword [r14 + 0x10]
mov r8d, 0x2d2
lea rcx, str._s__d_EpId_s_GenaricPresetDrvRegPath_s
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetProvideDriverRegPath
call fcn.140065460
test rdi, rdi
je 0x1400a6f9b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rsi
jmp 0x1400a6f9b
mov dword [rsp + 0x20], eax
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov r8d, 0x2d9
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetProvideDriverRegPath
lea rcx, str._s__d_RegBSSGen4RootStore__s__ret_d
call fcn.140065460
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400a6fa9
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [r15]
cmp dword [rcx - 0x10], 0
setne sil
mov eax, esi
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.1400d37a0
lea r11, [rsp + 0x2080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret