Function at 0x140016a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov r15, rdx
mov r14, rcx
test rdx, rdx
jne 0x140016a59
mov rdx, qword [rcx]
sub rdx, 0x18
mov rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016a52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140016c25
cmp r8d, 1
jne 0x140016bcb
xor edi, edi
mov dword [rbp + 0x48], edi
lea rax, [rbp - 0x48]
mov qword [rbp + 0x38], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140016c3c
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea rsi, str.TVAVMode
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.1400050a0
lea rbx, [rdi - 1]
test al, al
jne 0x140016aca
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140016ab0
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.1400054e0
nop
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x18], edi
mov qword [rbp - 0x10], rdi
mov dword [rbp + 0x38], edi
mov r9d, 1
lea r8, str.SOFTWARERealtekAudio
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.14000e2b0
test eax, eax
je 0x140016b08
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140016b89
jmp 0x140016b83
mov dword [rbp - 0x50], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x4c]
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016b7b
cmp dword [rbp - 0x4c], 4
jne 0x140016b7b
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x48], eax
test rsi, rsi
je 0x140016b57
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016b74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 1
jmp 0x140016ba6
test rsi, rsi
je 0x140016b89
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016ba6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x48]
mov dword [r15], eax
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016bc7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
jmp 0x140016c25
movups xmm0, xmmword [0x140281dd0]
movaps xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8d, [r9 + 0x25]
lea rdx, [rbp - 0x30]
mov rcx, qword [rcx]
call fcn.140011820
nop
mov rdx, qword [r14]
mov rbx, 0xffffffffffffffff
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
test eax, eax
je 0x140016a44
sub ebx, 1
jg 0x140016c20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
int3