Function at 0x140056940
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x10070
call fcn.1400b2640
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 [0x1400f2bd8]
xor rax, rsp
mov qword [rsp + 0x10060], rax
bt dword [rcx + 0xa80], 9
jae 0x140056c98
cmp dword [0x1400fd394], 0
jne 0x140056c98
xor r14d, r14d
mov qword [rsp + 0x38], r14
call fcn.140063708
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400569d1
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, [0x1400c1af8]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140056a1d
movzx edi, dx
mov ecx, edi
call fcn.140063514
test rax, rax
je 0x140056a3e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001fe0
mov rbx, qword [rsp + 0x30]
jmp 0x140056a3e
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 0x140056c6a
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 0x140056c57
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140056aca
cmp eax, 2
jne 0x140056c57
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140056aea
test al, 1
jne 0x140056c57
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x140056af1
jmp 0x140056c57
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 0x140056b6d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140056be9
cmp dword [rdx + 0x10], eax
jge 0x140056b3d
cmp dword [rbx - 0xc], eax
jge 0x140056b31
mov ecx, 0x80070057
call fcn.140001950
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140056be9
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140056b54
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 0x140056be9
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 0x140056b9d
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001970
mov rbx, qword [rsp + 0x30]
cmp r13, rsi
ja 0x140056bbd
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14008ea80
jmp 0x140056bd7
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.14008f260
test edi, edi
js 0x140056c4c
cmp edi, dword [rbx - 0xc]
jg 0x140056c4c
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 0x140056c04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140056c57
test r12, r12
je 0x140056c1b
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 0x140056c35
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 0x140056c45
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056c9a
mov ecx, 0x80070057
call fcn.140001950
int3
test r12, r12
je 0x140056c6a
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 0x140056c84
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 0x140056c94
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140056c9a
xor eax, eax
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.14008f240
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