Function at 0x1400bbe90
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.1400fdb80
sub rsp, rax
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp + 0x1fc0], rax
mov r14, r8
mov qword [rsp + 0x58], r8
mov r15, rdx
test rdx, rdx
jne 0x1400bbef6
mov r8d, 0x26c
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140075db0
xor eax, eax
jmp 0x1400bc4e8
mov rcx, r14
call fcn.14000c880
mov rcx, r15
call fcn.140018f00
mov ecx, eax
xor esi, esi
cmp eax, 1
jne 0x1400bc353
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bc530
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov rdx, r15
call fcn.1400bc560
lea rdi, [rsi - 1]
test eax, eax
jne 0x1400bbf68
mov r8d, 0x277
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140075db0
jmp 0x1400bbfc9
mov qword [rsp + 0x68], rsi
mov r8, r15
lea rdx, [rsp + 0x68]
call fcn.1400bbdf0
nop
mov rax, qword [rsp + 0x68]
cmp dword [rax - 0x10], 0
jne 0x1400bbff5
mov r8d, 0x27a
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140075db0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bbfc9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400bbfee
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
xor eax, eax
jmp 0x1400bc4e8
mov qword [rbp - 0x70], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bc53b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, str.DriverVersion
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000c4c0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1400bc06b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400bc050
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000c750
nop
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.14000ec00
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.140099200
nop
mov rcx, rbx
call fcn.14000ec00
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, str.APOTunings
lea rcx, [rbp - 0x68]
call fcn.14007d8b0
mov qword [rbp - 0x78], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bc546
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r14, str.TuningVersion
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.14000c4c0
test al, al
jne 0x1400bc130
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400bc114
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.14000c750
nop
mov r13, qword [rbp - 0x68]
lea rcx, [r13 - 0x18]
call fcn.14000ec00
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.140099200
nop
mov rcx, rbx
call fcn.14000ec00
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r14d, dword [rbx - 0x10]
mov r12d, 0x27
cmp r14d, r12d
jge 0x1400bc189
mov r12d, r14d
test r14d, r14d
jle 0x1400bc1fb
sub r14d, r12d
lea eax, [r14 + 1]
cmp dword [rbx - 8], 1
jle 0x1400bc1ac
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.14000c5e0
mov rbx, qword [rsp + 0x70]
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
mov eax, r12d
lea rdx, [rbx + rax*2]
je 0x1400bc1dd
test rbx, rbx
je 0x1400bc512
test rdx, rdx
je 0x1400bc512
lfence
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1400faeb0
test r14d, r14d
js 0x1400bc525
cmp r14d, dword [rbx - 0xc]
jg 0x1400bc525
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.14000ec90
lea r8, [0x14016aa64]
lea rdx, [0x14011c3b4]
mov rcx, r14
call fcn.140014b20
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, qword [r15 + 0x10]
mov r8d, 0x28d
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, [0x14016aa68]
call fcn.140075db0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bc289
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bc2b1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov eax, edi
lock xadd dword [r13 - 8], eax
sub eax, 1
jg 0x1400bc2d7
lfence
mov rcx, qword [r13 - 0x18]
mov rax, qword [rcx]
lea rdx, [r13 - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bc2ff
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bc328
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rsp + 0x50]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400bc4db
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
jmp 0x1400bc4db
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400bc381
mov dword [rsp + 0x20], ecx
mov r9, qword [r15 + 0x10]
mov r8d, 0x2b0
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, str._s__d_EpId_s_GetRtkConditionTuningType_d
call fcn.140075db0
jmp 0x1400bc4db
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.SOFTWARERealtekAudioRtkAudUServiceApoCondPreset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.140035040
test eax, eax
jne 0x1400bc4a5
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x40]
call fcn.1400fac10
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 0x1400bc42b
mov eax, dword [rsp + 0x78]
dec eax
cmp eax, 1
ja 0x1400bc426
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400bc445
test al, 1
jne 0x1400bc426
shr rax, 1
cmp word [rbp + rax*2 - 0x42], 0
je 0x1400bc449
mov eax, SafeArrayDestroy
mov dword [rsp + 0x20], eax
lea r9, str.GenaricPresetId
mov r8d, 0x29e
lea rcx, str._s__d_QueryStringValue_s_ret_d
jmp 0x1400bc486
mov word [rbp - 0x40], si
lea rax, [rbp - 0x40]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400bc454
mov r8d, edi
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.14000c750
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, qword [r15 + 0x10]
mov r8d, 0x2a4
lea rcx, str._s__d_EpId_s_GenaricPresetId_s
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
call fcn.140075db0
test rbx, rbx
je 0x1400bc4cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, rsi
jmp 0x1400bc4cd
mov dword [rsp + 0x20], eax
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPreset
mov r8d, 0x2ab
lea rdx, str.CRtkApoConditionPresetLoader::GetPresetId
lea rcx, str._s__d_RegBSSGen4RootStore__s__ret_d
call fcn.140075db0
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400bc4db
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.1400f4410
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.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
int3