Function at 0x140065250
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.14006ee90
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140003520
mov rcx, rax
test rax, rax
je 0x140065494
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x140081d58]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140004a90
or rdi, 0xffffffffffffffff
test al, al
jne 0x14006530b
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400652f0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002f50
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400222c0
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14006538c
mov dword [rsp + 0x38], 0xfffe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006538c
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x14006538c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400653fb
test al, 1
jne 0x14006538c
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x140065400
test rsi, rsi
je 0x14006539f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400653c1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400653d1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140065bd0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140065410
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140002f50
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140065462
add rcx, 2
cmp rcx, 0x15
je 0x140065490
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140065440
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14006538c
test rsi, rsi
je 0x140065482
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x1400653a3
mov eax, ebx
jmp 0x140065467
mov ecx, 0x80004005
call fcn.140003270
int3