Function at 0x140129a50
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x10070
call fcn.14024ccf0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rbp
mov qword [rsp + 0x100a0], rsi
mov qword [rsp + 0x100a8], rdi
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x10060], rax
mov rax, qword [rcx + 0x50]
bt dword [rax + 0x80], 9
jb 0x140129ab3
xor eax, eax
jmp 0x140129da0
xor r14d, r14d
mov qword [rsp + 0x38], r14
call fcn.1401ff164
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140129adb
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140275388]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140129b27
movzx edi, dx
mov ecx, edi
call fcn.140200fbc
test rax, rax
je 0x140129b48
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1401bacf0
mov rbx, qword [rsp + 0x30]
jmp 0x140129b48
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.14000b770
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWARERealtekAudioWOV
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140129d74
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], 0xfffe
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140129d61
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140129bd4
cmp eax, 2
jne 0x140129d61
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140129bf4
test al, 1
jne 0x140129d61
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x140129bfb
jmp 0x140129d61
mov word [rsp + 0x60], 0
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140129c77
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140129cf3
cmp dword [rdx + 0x10], eax
jge 0x140129c47
cmp dword [rbx - 0xc], eax
jge 0x140129c3b
mov ecx, 0x80070057
call fcn.140002bc0
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140129cf3
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140129c5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r12, qword [rsp + 0x48]
jmp 0x140129cf3
mov esi, dword [rbx - 0x10]
lea r13, [rsp + 0x60]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140129ca7
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002be0
mov rbx, qword [rsp + 0x30]
cmp r13, rsi
ja 0x140129cc7
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14022c8a0
jmp 0x140129ce1
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.14022ba40
test edi, edi
js 0x140129d56
cmp edi, dword [rbx - 0xc]
jg 0x140129d56
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor eax, eax
lea rdi, str.LenovoVoiceAssistant
mov rsi, rbx
mov ecx, 0x15
repe cmpsw word [rsi], word [rdi]
je 0x140129d0e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140129d61
test r12, r12
je 0x140129d25
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r14
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140129d3f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140129d4f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140129da0
mov ecx, 0x80070057
call fcn.140002bc0
int3
test r12, r12
je 0x140129d74
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r14
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140129d8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140129d9e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.14022b9b0
lea r11, [rsp + 0x10070]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret