Function at 0x140038610
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, [0x140280f88]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x140280ff0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140038691
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [0x140281510]
xor r8d, r8d
mov rdx, qword [r14]
call qword [rax + 0x50]
test eax, eax
jns 0x1400386b0
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400386a0
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 0x1400386bf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp word [rbp - 9], 0xb
jne 0x1400386a0
movsx eax, word [rbp - 1]
test eax, eax
jne 0x1400387ed
mov dword [rbp + 0x77], esi
lea rax, [rbp - 0x49]
mov qword [rbp + 0x67], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140038923
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 0x14003873a
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140038720
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.14000ddf0
test eax, eax
je 0x140038774
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400387c3
jmp 0x1400387bd
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 0x1400387b5
cmp dword [rbp - 0x29], 4
jne 0x1400387b5
mov eax, dword [rbp + 0x67]
mov dword [rbp + 0x77], eax
test rdi, rdi
je 0x1400387c3
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 0x1400387de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 1
mov r8d, dword [rbp + 0x77]
jmp 0x1400388ec
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, [0x140280f88]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140280ff0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140038862
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
lea r9, [0x140281708]
mov r8d, 1
mov rdx, qword [r14]
call qword [rax + 0x50]
test eax, eax
js 0x140038862
lea rcx, [rbp - 0x21]
cmp word [rbp - 0x21], 0x13
jne 0x14003885b
mov esi, dword [rbp - 0x19]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140038871
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rax, [rbp - 0x31]
mov qword [rbp + 0x67], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140038918
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 0x1400388d0
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400388b6
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.140012660
mov r9d, 1
mov r8d, r9d
lea rdx, [0x140281708]
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