Function at 0x1400167f0
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 0x140016849
mov rdx, qword [rcx]
sub rdx, 0x18
mov rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016842
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140016a15
cmp r8d, 1
jne 0x1400169bb
xor edi, edi
mov dword [rbp + 0x48], edi
lea rax, [rbp - 0x48]
mov qword [rbp + 0x38], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140016a2c
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 0x1400168ba
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400168a0
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.14000ddf0
test eax, eax
je 0x1400168f8
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140016979
jmp 0x140016973
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 0x14001696b
cmp dword [rbp - 0x4c], 4
jne 0x14001696b
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x48], eax
test rsi, rsi
je 0x140016947
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 0x140016964
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 1
jmp 0x140016996
test rsi, rsi
je 0x140016979
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 0x140016996
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 0x1400169b7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
jmp 0x140016a15
movups xmm0, xmmword [0x140281c00]
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.140011360
nop
mov rdx, qword [r14]
mov rbx, 0xffffffffffffffff
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
test eax, eax
je 0x140016834
sub ebx, 1
jg 0x140016a10
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