Function at 0x14006d650
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
test rdx, rdx
jne 0x14006d67c
xor eax, eax
jmp 0x14006db4f
xor edi, edi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x108], edi
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8, qword [rdx + 0x118]
lea rdx, str.DevRestore
lea rcx, [0x14022e890]
call fcn.14014c020
cmp dword [rsp + 0x108], edi
je 0x14006d8b5
lea rbx, [r12 + 0xb8]
lea ebp, [rdi + 4]
nop
mov esi, 0x2c
cmp dword [rbx - 4], edi
jle 0x14006d6ed
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006d6ea
call fcn.14013d06c
mov qword [rbx], rdi
mov dword [rbx - 4], edi
add rbx, 0x10
sub rsi, 1
jne 0x14006d6d5
sub rbp, 1
jne 0x14006d6d0
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.14015505c
nop
xor r9d, r9d
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1401550a8
mov dword [rsp + 0x6c], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
cmp dword [rsp + 0x6c], 0xa59d
jne 0x14006d89b
mov dword [rsp + 0x68], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
mov r11d, dword [rsp + 0x68]
mov dword [r12 + 0xa0], r11d
mov rbx, rdi
nop
nop
nop
nop
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
mov r8d, 4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
mov r8d, 4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
cmp dword [rsp + 0x58], 0
jle 0x14006d88a
nop
mov dword [rsp + 0x118], edi
mov dword [rsp + 0x110], edi
mov r8d, 4
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
mov r8d, 4
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
movsxd r11, dword [rsp + 0x118]
add r11, rbx
add r11, r11
mov eax, dword [rsp + 0x110]
mov dword [r12 + r11*8 + 0xb4], eax
movsxd rcx, dword [rsp + 0x110]
call fcn.14013d074
mov r11, rax
movsxd rax, dword [rsp + 0x118]
add rax, rbx
add rax, rax
mov qword [r12 + rax*8 + 0xb8], r11
movsxd rdx, dword [rsp + 0x118]
add rdx, rbx
add rdx, rdx
mov r8d, dword [rsp + 0x110]
mov rdx, qword [r12 + rdx*8 + 0xb8]
lea rcx, [rsp + 0x70]
call fcn.1401551dc
mov r11d, 0xfffffff8
sub r11d, dword [rsp + 0x110]
mov eax, dword [rsp + 0x58]
add eax, r11d
mov dword [rsp + 0x58], eax
test eax, eax
jg 0x14006d7c0
add rbx, 0x2c
cmp rbx, 0xb0
jl 0x14006d780
lea rcx, [rsp + 0x70]
call fcn.1401550ec
nop
lea rcx, [rsp + 0x70]
call fcn.1401554f0
jmp 0x14006db3b
mov esi, edi
mov ecx, 0x1000
call fcn.14013d074
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x108], 0x1000
mov rbx, rdi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x110], rdi
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006d994
mov rbx, qword [rsp + 0x110]
mov qword [rsp + 0x60], rbx
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x110], eax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x118]
xor r8d, r8d
mov rdx, qword [rbp + 0x118]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
test eax, eax
jne 0x14006d97b
mov r11d, edi
mov eax, SafeArrayDestroy
cmp dword [rsp + 0x118], 3
cmovne r11d, eax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x108], eax
mov esi, edi
test r11d, r11d
sete sil
jmp 0x14006d9f2
mov qword [rsp + 0x118], rdi
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14006da3b
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x14006da08
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x60], rbx
test esi, esi
je 0x14006da3b
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
mov r8, qword [rbp + 0x118]
lea rdx, str.DevRestore
lea rcx, [0x14022e890]
call fcn.14014bca8
jmp 0x14006db2d
mov esi, edi
nop
mov dword [r12 + 0xa0], esi
mov rdx, rbp
mov rcx, r12
call fcn.14006e060
add esi, 1
cmp esi, 4
jl 0x14006da40
mov dword [r12 + 0xa0], edi
mov rdx, rbp
mov rcx, r12
call fcn.14006dba0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006da82
call fcn.14013d06c
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8, qword [rbp + 0x118]
lea rdx, str.DevRestore
lea rcx, [0x14022e890]
call fcn.14014c020
mov qword [rsp + 0x110], rdi
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006db2d
test rbx, rbx
je 0x14006daf4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x110]
test edi, edi
jne 0x14006db2d
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 3]
xor r8d, r8d
mov rdx, qword [rbp + 0x118]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
test rbx, rbx
je 0x14006db3b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006db4a
call fcn.14013d06c
mov eax, 1
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret