Function at 0x140008490
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140026450
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0xff70], rax
test dword [rcx + 0x15c], 0x200
jne 0x1400084ec
xor eax, eax
jmp 0x1400086d6
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140001230
mov rcx, rax
test rax, rax
jne 0x140008514
mov ecx, 0x80004005
call fcn.140001580
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140030238]
or rdi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140008558
movzx esi, dx
mov ecx, esi
call fcn.140001640
test rax, rax
je 0x140008578
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002ed0
jmp 0x140008578
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140008560
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140002fe0
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
lea rcx, [rsp + 0x48]
call fcn.140001720
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14000868f
mov dword [rsp + 0x30], 0xfffe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000868f
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x14000868f
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140008607
test al, 1
jne 0x14000868f
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14000860c
jmp 0x14000868f
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008614
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140002fe0
mov rdx, qword [rsp + 0x38]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140008668
add rcx, 2
cmp rcx, 0x15
je 0x140008664
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140008668
jmp 0x140008640
mov eax, ebx
jmp 0x14000866d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14000868f
test rsi, rsi
je 0x140008684
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x1400086a6
test rsi, rsi
je 0x1400086a2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400086c4
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 0x1400086d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140010d30
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