Function at 0x1400b31a0
Capabilities:
Query or enumerate 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 - 0x1fd0]
mov eax, 0x20d0
call fcn.1400e8ab0
sub rsp, rax
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x1fc0], rax
mov r14, r8
mov qword [rsp + 0x58], r8
mov r15, rdx
test rdx, rdx
jne 0x1400b3206
mov r8d, 0x265
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14006dd20
xor eax, eax
jmp 0x1400b37f8
mov rcx, r14
call fcn.140004920
mov rcx, r15
call fcn.140010220
mov ecx, eax
xor esi, esi
cmp eax, 1
jne 0x1400b3663
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x1400b3840
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov rdx, r15
call fcn.1400b3870
lea rdi, [rsi - 1]
test eax, eax
jne 0x1400b3278
mov r8d, 0x270
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14006dd20
jmp 0x1400b32d9
mov qword [rsp + 0x68], rsi
mov r8, r15
lea rdx, [rsp + 0x68]
call fcn.1400b3100
nop
mov rax, qword [rsp + 0x68]
cmp dword [rax - 0x10], 0
jne 0x1400b3305
mov r8d, 0x273
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14006dd20
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b32d9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400b32fe
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
xor eax, eax
jmp 0x1400b37f8
mov qword [rbp - 0x70], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x1400b384b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, str.DriverVersion
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140004560
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1400b337b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400b3360
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400047f0
nop
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.140006ca0
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140090f10
nop
mov rcx, rbx
call fcn.140006ca0
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, str.APOTunings
lea rcx, [rbp - 0x68]
call fcn.1400755c0
mov qword [rbp - 0x78], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x1400b3856
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r14, str.TuningVersion
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140004560
test al, al
jne 0x1400b3440
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400b3424
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400047f0
nop
mov r13, qword [rbp - 0x68]
lea rcx, [r13 - 0x18]
call fcn.140006ca0
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x78]
call fcn.140090f10
nop
mov rcx, rbx
call fcn.140006ca0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r14d, dword [rbx - 0x10]
mov r12d, 0x27
cmp r14d, r12d
jge 0x1400b3499
mov r12d, r14d
test r14d, r14d
jle 0x1400b350b
sub r14d, r12d
lea eax, [r14 + 1]
cmp dword [rbx - 8], 1
jle 0x1400b34bc
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140004680
mov rbx, qword [rsp + 0x70]
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
mov eax, r12d
lea rdx, [rbx + rax*2]
je 0x1400b34ed
test rbx, rbx
je 0x1400b3822
test rdx, rdx
je 0x1400b3822
lfence
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1400e5de0
test r14d, r14d
js 0x1400b3835
cmp r14d, dword [rbx - 0xc]
jg 0x1400b3835
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
mov word [rbx + rax*2], si
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, qword [rsp + 0x68]
lea rdx, str._s__s_DrvVer_s_PreVer_s
mov r14, qword [rsp + 0x58]
mov rcx, r14
call fcn.140006d30
lea r8, [0x140140418]
lea rdx, [0x1401032b4]
mov rcx, r14
call fcn.14000c1d0
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, qword [r15 + 0x10]
mov r8d, 0x286
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_EpId_s_PresetId_s
call fcn.14006dd20
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b3599
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b35c1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov eax, edi
lock xadd dword [r13 - 8], eax
sub eax, 1
jg 0x1400b35e7
lfence
mov rcx, qword [r13 - 0x18]
mov rax, qword [rcx]
lea rdx, [r13 - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b360f
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b3638
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
nop
mov rdx, qword [rsp + 0x50]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400b37eb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
jmp 0x1400b37eb
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400b3691
mov dword [rsp + 0x20], ecx
mov r9, qword [r15 + 0x10]
mov r8d, 0x2a9
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_EpId_s_GetRtkGen4TuningType_d
call fcn.14006dd20
jmp 0x1400b37eb
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], rsi
mov dword [rbp - 0x58], esi
mov qword [rbp - 0x50], rsi
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.14002b400
test eax, eax
jne 0x1400b37b5
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x40]
call fcn.1400e5b40
mov dword [rsp + 0x60], 0x1ffe
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.GenaricPresetId
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400b373b
mov eax, dword [rsp + 0x78]
dec eax
cmp eax, 1
ja 0x1400b3736
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400b3755
test al, 1
jne 0x1400b3736
shr rax, 1
cmp word [rbp + rax*2 - 0x42], 0
je 0x1400b3759
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 0x1400b3796
mov word [rbp - 0x40], si
lea rax, [rbp - 0x40]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400b3764
mov r8d, edi
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.1400047f0
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, qword [r15 + 0x10]
mov r8d, 0x29d
lea rcx, str._s__d_EpId_s_GenaricPresetId_s
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
call fcn.14006dd20
test rbx, rbx
je 0x1400b37dd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, rsi
jmp 0x1400b37dd
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.14006dd20
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400b37eb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [r14]
cmp dword [rcx - 0x10], 0
setne sil
mov eax, esi
mov rcx, qword [rbp + 0x1fc0]
xor rcx, rsp
call fcn.1400df340
mov rbx, qword [rsp + 0x2110]
add rsp, 0x20d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov dword [rax], SafeArrayCopy
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
int3