Function at 0x140086d00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fb0]
mov eax, 0x20b0
call fcn.1400ad030
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x20e0], rbx
mov qword [rsp + 0x20f0], rsi
mov qword [rsp + 0x20f8], rdi
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
mov rsi, rdx
test rdx, rdx
jne 0x140086d77
mov r8d, 0x1de
lea rdx, str.CRtkBssGen4PresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14004c3d0
jmp 0x1400870d9
xor r14d, r14d
mov qword [rsp + 0x50], r14
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140087114
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x50]
mov rdx, rsi
call fcn.140087570
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
lea r15, [0x1400c27a8]
cmp dword [rsi + 0x178], r14d
je 0x140086dd7
cmp dword [rsi + 0x180], r14d
mov rdx, r15
jne 0x140086dde
lea rdx, [0x1400c2790]
mov r9d, 3
lea r8, [rsp + 0x40]
lea rcx, [rsi + 0x10]
call fcn.140002920
lea r13, [0x1400c27f0]
cmp dword [rsi + 0x178], 0
je 0x140086e0e
cmp dword [rsi + 0x180], 0
mov rdx, r13
jne 0x140086e15
lea rdx, [0x1400c27c0]
mov r9d, 3
lea r8, [rsp + 0x44]
lea rcx, [rsi + 0x10]
call fcn.140002920
mov edx, dword [rsp + 0x40]
mov r8d, edx
shl r8, 0x20
mov ecx, dword [rsp + 0x44]
or r8, rcx
mov qword [rsp + 0x48], r8
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9, qword [rsi + 0x10]
mov r8d, 0x1f4
lea rdx, str.CRtkBssGen4PresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_EpId_s_Hi_x_Lo_x_PresetDrvVer_llx_CurrDrvVer_llx
call fcn.14004c3d0
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r14
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x80]
call fcn.140021cb0
test eax, eax
jne 0x140086f2d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x60]
call fcn.1400aa8f0
mov dword [rsp + 0x60], 0x1ffe
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.PropDeviceForBtUsbPreset
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140086f29
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
jbe 0x140086f06
mov eax, SafeArrayDestroy
jmp 0x140086f27
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140086f24
test al, 1
jne 0x140086f1d
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140086f24
mov eax, SafeArrayDestroy
jmp 0x140086f27
mov eax, r14d
test eax, eax
sete r14b
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x14008711f
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x78]
lea rdx, [0x1400c27d8]
lea rcx, [rsi + 0x10]
call fcn.1400038b0
mov dword [rsp + 0x28], r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r9, qword [rsi + 0x10]
mov r8d, 0x209
lea rdx, str.CRtkBssGen4PresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_EpId_s_sStoredDrvRegPath_s_bPresetCacheExist_d
call fcn.14004c3d0
mov rbx, qword [rsp + 0x68]
test r14d, r14d
je 0x140086fc2
cmp r12, qword [rsp + 0x48]
jne 0x140086fc2
test rbx, rbx
je 0x140087109
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14008706c
lea rcx, [rbx - 0x18]
call fcn.140006110
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x48]
mov r8, r12
mov rdx, rsi
call fcn.140085bd0
test eax, eax
je 0x14008706c
mov rax, r12
shr rax, 0x20
mov dword [rsp + 0x40], eax
cmp dword [rsi + 0x178], 0
je 0x140087009
cmp dword [rsi + 0x180], 0
jne 0x140087010
lea r15, [0x1400c2790]
mov r9d, 3
mov r8d, eax
mov rdx, r15
mov rcx, rsi
call fcn.140002a40
cmp dword [rsi + 0x178], 0
je 0x140087036
cmp dword [rsi + 0x180], 0
jne 0x14008703d
lea r13, [0x1400c27c0]
mov r9d, 3
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
call fcn.140002a40
mov r9d, 1
lea r8, [rsp + 0x68]
lea rdx, [0x1400c27d8]
lea rcx, [rsi + 0x10]
call fcn.1400039d0
cmp dword [rsi + 0x178], 0
je 0x14008708e
mov r9d, 1
mov r8d, r9d
lea rdx, [0x1400c25e0]
mov rcx, rsi
call fcn.140002a40
nop
lea rdx, [rdi - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400870ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400870bd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400870d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
int3