Function at 0x140055b80
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x10070
call fcn.1400b18a0
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 0x140055ed8
cmp dword [0x1400fb374], 0
jne 0x140055ed8
xor r14d, r14d
mov qword [rsp + 0x38], r14
call fcn.140062978
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140055c11
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 0x140055c5d
movzx edi, dx
mov ecx, edi
call fcn.140062784
test rax, rax
je 0x140055c7e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001fe0
mov rbx, qword [rsp + 0x30]
jmp 0x140055c7e
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 0x140055eaa
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 0x140055e97
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140055d0a
cmp eax, 2
jne 0x140055e97
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140055d2a
test al, 1
jne 0x140055e97
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x140055d31
jmp 0x140055e97
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 0x140055dad
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140055e29
cmp dword [rdx + 0x10], eax
jge 0x140055d7d
cmp dword [rbx - 0xc], eax
jge 0x140055d71
mov ecx, 0x80070057
call fcn.140001950
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140055e29
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140055d94
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 0x140055e29
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 0x140055ddd
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001970
mov rbx, qword [rsp + 0x30]
cmp r13, rsi
ja 0x140055dfd
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14008dcf0
jmp 0x140055e17
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.14008e4d0
test edi, edi
js 0x140055e8c
cmp edi, dword [rbx - 0xc]
jg 0x140055e8c
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 0x140055e44
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140055e97
test r12, r12
je 0x140055e5b
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 0x140055e75
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 0x140055e85
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140055eda
mov ecx, 0x80070057
call fcn.140001950
int3
test r12, r12
je 0x140055eaa
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 0x140055ec4
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 0x140055ed4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140055eda
xor eax, eax
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.14008e4b0
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