Function at 0x1400a0e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f80]
mov eax, 0x2080
call fcn.1400ca8f0
sub rsp, rax
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov r15, r8
mov r14, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
test rdx, rdx
jne 0x1400a0ec3
mov r8d, 0x2b3
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetProvideDriverRegPath
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
xor eax, eax
jmp 0x1400a1198
mov rcx, r14
call fcn.14000fc80
cmp eax, 1
jne 0x1400a1007
mov qword [rsp + 0x50], rsi
mov rcx, qword [r14 + 0x120]
sub rcx, 0x18
call fcn.140006460
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x30], 1
mov rdi, 0xffffffffffffffff
cmp dword [rbx - 0x10], 0
jl 0x1400a0f60
lea rdx, [0x14010e900]
mov rcx, rbx
call fcn.1400c7374
test rax, rax
je 0x1400a0f60
sub rax, rbx
sar rax, 1
test eax, eax
jle 0x1400a0f60
cmp dword [rbx - 0x10], 0
jge 0x1400a0f2f
mov eax, edi
jmp 0x1400a0f4d
lea rdx, [0x14010e900]
mov rcx, rbx
call fcn.1400c7374
test rax, rax
jne 0x1400a0f47
mov eax, edi
jmp 0x1400a0f4d
sub rax, rbx
sar rax, 1
lea r8d, [rax + 2]
lea rcx, [rsp + 0x50]
call fcn.14008f160
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx - 0x18]
call fcn.140006460
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14008ddd0
nop
mov rdx, rax
mov rcx, r15
call fcn.1400063c0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0fb6
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
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.14005b9a0
nop
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x1400a118b
lfence
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
jmp 0x1400a118b
mov rcx, r14
call fcn.14000fc80
cmp eax, 3
je 0x1400a1025
mov rcx, r14
call fcn.14000fc80
cmp eax, 2
jne 0x1400a118b
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
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.1400280a0
test eax, eax
jne 0x1400a1154
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x70]
call fcn.1400c7980
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 rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a10d7
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x1400a10d2
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400a10f1
test al, 1
jne 0x1400a10d2
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400a10f6
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 0x1400a1135
mov word [rsp + 0x70], si
lea rax, [rsp + 0x70]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400a1102
mov r8d, edi
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.1400040e0
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.14005b9a0
test rbx, rbx
je 0x1400a117d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, rsi
jmp 0x1400a117d
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.14005b9a0
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400a118b
mov rcx, rbx
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.1400c17f0
mov rbx, qword [rsp + 0x20b0]
add rsp, 0x2080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret