Function at 0x1400389a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov r14, rdx
xor esi, esi
mov qword [rbp - 0x39], rsi
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [0x140281148]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x1402811c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140038a21
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [0x1402816e0]
xor r8d, r8d
mov rdx, qword [r14]
call qword [rax + 0x50]
test eax, eax
jns 0x140038a40
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140038a30
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140038a4f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp word [rbp - 9], 0xb
jne 0x140038a30
movsx eax, word [rbp - 1]
test eax, eax
jne 0x140038b7d
mov dword [rbp + 0x77], esi
lea rax, [rbp - 0x49]
mov qword [rbp + 0x67], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140038cb3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rdi, str.AecStatusForListenTo
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.1400050a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x140038aca
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140038ab0
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.1400054e0
nop
mov qword [rbp + 0xf], rsi
mov dword [rbp + 0x17], esi
mov qword [rbp + 0x1f], rsi
mov dword [rbp + 0x67], esi
mov r9d, 1
lea r8, str.SOFTWARERealtekRealtekEffectsBG
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xf]
call fcn.14000e2b0
test eax, eax
je 0x140038b04
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140038b53
jmp 0x140038b4d
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
mov rdi, qword [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038b45
cmp dword [rbp - 0x29], 4
jne 0x140038b45
mov eax, dword [rbp + 0x67]
mov dword [rbp + 0x77], eax
test rdi, rdi
je 0x140038b53
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140038b6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 1
mov r8d, dword [rbp + 0x77]
jmp 0x140038c7c
mov qword [rbp - 0x41], rsi
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [0x140281148]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402811c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140038bf2
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
lea r9, [0x1402818d8]
mov r8d, 1
mov rdx, qword [r14]
call qword [rax + 0x50]
test eax, eax
js 0x140038bf2
lea rcx, [rbp - 0x21]
cmp word [rbp - 0x21], 0x13
jne 0x140038beb
mov esi, dword [rbp - 0x19]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140038c01
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rax, [rbp - 0x31]
mov qword [rbp + 0x67], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140038ca8
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rdi, str.AecStatusForListenTo
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1400050a0
test al, al
jne 0x140038c60
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140038c46
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1400054e0
nop
mov r8d, esi
lea rdx, [rbp - 0x31]
lea rcx, str.SOFTWARERealtekRealtekEffectsBG
call fcn.140012b20
mov r9d, 1
mov r8d, r9d
lea rdx, [0x1402818d8]
mov rcx, r14
call fcn.140007030
lea rcx, [rbp - 9]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov eax, 1
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
int3
mov ecx, 0x80004005
call fcn.140005680
int3