Function at 0x140055b00
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x10070
call fcn.1400b1820
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 [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0x10060], rax
bt dword [rcx + 0xa80], 9
jae 0x140055e58
cmp dword [0x1400fb374], 0
jne 0x140055e58
xor r14d, r14d
mov qword [rsp + 0x38], r14
call fcn.1400628f8
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140055b91
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400c0af8]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140055bdd
movzx edi, dx
mov ecx, edi
call fcn.140062704
test rax, rax
je 0x140055bfe
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001fe0
mov rbx, qword [rsp + 0x30]
jmp 0x140055bfe
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.140001bd0
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.SOFTWARERealtekWOV
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140055e2a
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 0x140055e17
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140055c8a
cmp eax, 2
jne 0x140055e17
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140055caa
test al, 1
jne 0x140055e17
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x140055cb1
jmp 0x140055e17
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 0x140055d2d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140055da9
cmp dword [rdx + 0x10], eax
jge 0x140055cfd
cmp dword [rbx - 0xc], eax
jge 0x140055cf1
mov ecx, 0x80070057
call fcn.140001950
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140055da9
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140055d14
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 + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r12, qword [rsp + 0x48]
jmp 0x140055da9
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 0x140055d5d
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001970
mov rbx, qword [rsp + 0x30]
cmp r13, rsi
ja 0x140055d7d
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14008dc70
jmp 0x140055d97
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.14008e450
test edi, edi
js 0x140055e0c
cmp edi, dword [rbx - 0xc]
jg 0x140055e0c
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor eax, eax
lea rdi, str.LenovoVoiceAssistant
mov rsi, rbx
mov ecx, SafeArrayUnaccessData
repe cmpsw word [rsi], word [rdi]
je 0x140055dc4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140055e17
test r12, r12
je 0x140055ddb
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 0x140055df5
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 0x140055e05
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140055e5a
mov ecx, 0x80070057
call fcn.140001950
int3
test r12, r12
je 0x140055e2a
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 0x140055e44
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 0x140055e54
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140055e5a
xor eax, eax
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.14008e430
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