Function at 0x1400a0770
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.1400ca8f0
sub rsp, rax
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x1fc0], rax
mov r14, r8
mov qword [rsp + 0x58], r8
mov r15, rdx
test rdx, rdx
jne 0x1400a07d6
mov r8d, 0x265
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
xor eax, eax
jmp 0x1400a0de4
mov rcx, r14
call fcn.140004210
mov rcx, r15
call fcn.14000fc80
mov ecx, eax
xor esi, esi
cmp eax, 1
jne 0x1400a0c4f
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x1400a0e2c
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov rdx, r15
call fcn.1400a0e60
lea rdi, [rsi - 1]
test eax, eax
jne 0x1400a0848
mov r8d, 0x270
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
jmp 0x1400a08a9
mov qword [rsp + 0x68], rsi
mov r8, r15
lea rdx, [rsp + 0x68]
call fcn.1400a06d0
nop
mov rax, qword [rsp + 0x68]
cmp dword [rax - 0x10], 0
jne 0x1400a08d5
mov r8d, 0x273
lea rdx, str.CRtkBssGen4PresetLoader::GetPresetId
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a08a9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400a08ce
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
xor eax, eax
jmp 0x1400a0de4
mov qword [rbp - 0x70], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x1400a0e37
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, str.DriverVersion
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140003e50
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1400a094b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a0930
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400040e0
nop
mov rbx, qword [rbp - 0x80]
add rbx, 0xffffffffffffffe8
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.140006460
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.14007fa60
nop
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x1400a0e42
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, str.APOTunings
lea rcx, [rbp - 0x68]
call fcn.140062f60
mov qword [rbp - 0x78], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x1400a0e4d
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r14, str.TuningVersion
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140003e50
test al, al
jne 0x1400a0a2c
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400a0a10
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400040e0
nop
mov r13, qword [rbp - 0x68]
lea rcx, [r13 - 0x18]
call fcn.140006460
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.14007fa60
nop
mov rcx, rbx
call fcn.140006460
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r14d, dword [rbx - 0x10]
mov r12d, 0x27
cmp r14d, r12d
jge 0x1400a0a85
mov r12d, r14d
test r14d, r14d
jle 0x1400a0af7
sub r14d, r12d
lea eax, [r14 + 1]
cmp dword [rbx - 8], 1
jle 0x1400a0aa8
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140003f70
mov rbx, qword [rsp + 0x70]
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
mov eax, r12d
lea rdx, [rbx + rax*2]
je 0x1400a0ad9
test rbx, rbx
je 0x1400a0e0e
test rdx, rdx
je 0x1400a0e0e
lfence
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1400c7c20
test r14d, r14d
js 0x1400a0e21
cmp r14d, dword [rbx - 0xc]
jg 0x1400a0e21
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.1400064f0
lea r8, [0x14010e938]
lea rdx, [0x1400e4fb4]
mov rcx, r14
call fcn.14000ba80
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.14005b9a0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0b85
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0bad
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov eax, edi
lock xadd dword [r13 - 8], eax
sub eax, 1
jg 0x1400a0bd3
lfence
mov rcx, qword [r13 - 0x18]
mov rax, qword [rcx]
lea rdx, [r13 - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0bfb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0c24
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov rdx, qword [rsp + 0x50]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400a0dd7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
jmp 0x1400a0dd7
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400a0c7d
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.14005b9a0
jmp 0x1400a0dd7
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.1400280a0
test eax, eax
jne 0x1400a0da1
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x40]
call fcn.1400c7980
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 0x1400a0d27
mov eax, dword [rsp + 0x78]
dec eax
cmp eax, 1
ja 0x1400a0d22
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400a0d41
test al, 1
jne 0x1400a0d22
shr rax, 1
cmp word [rbp + rax*2 - 0x42], 0
je 0x1400a0d45
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 0x1400a0d82
mov word [rbp - 0x40], si
lea rax, [rbp - 0x40]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400a0d50
mov r8d, edi
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.1400040e0
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.14005b9a0
test rbx, rbx
je 0x1400a0dc9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, rsi
jmp 0x1400a0dc9
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.14005b9a0
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400a0dd7
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.1400c17f0
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], SafeArrayUnaccessData
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140004820
nop
mov ecx, 0x80004005
call fcn.140004820
nop
mov ecx, 0x80004005
call fcn.140004820
nop
mov ecx, 0x80004005
call fcn.140004820
nop
mov ecx, 0x80004005
call fcn.140004820
int3