Function at 0x140078590
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.1400820a0
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 [0x1400d6010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x140078608
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x1400939d8]
or rdi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14007864c
movzx esi, dx
mov ecx, esi
call fcn.140005710
test rax, rax
je 0x140078668
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400053d0
jmp 0x140078668
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140078650
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140003d30
nop
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWARERealtekWOV
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400787b2
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], ebx
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 + 0x68]
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 0x14007879f
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14007879f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140078715
test al, 1
jne 0x14007879f
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14007871a
jmp 0x14007879f
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140078722
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003d30
mov rdx, qword [rsp + 0x48]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140078778
add rcx, 2
cmp rcx, 0x15
je 0x140078774
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140078778
jmp 0x140078750
mov eax, ebx
jmp 0x14007877d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14007879f
test rsi, rsi
je 0x140078794
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov ebx, 1
jmp 0x1400787b6
test rsi, rsi
je 0x1400787b2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400787d4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400787e4
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.140078ef0
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