Function at 0x14006dcc0
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 0x14006dcec
xor eax, eax
jmp 0x14006e1bf
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, [0x14022c580]
call fcn.14014d220
cmp dword [rsp + 0x108], edi
je 0x14006df25
lea rbx, [r12 + 0xb8]
lea ebp, [rdi + 4]
nop
mov esi, 0x2c
cmp dword [rbx - 4], edi
jle 0x14006dd5d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006dd5a
call fcn.14013c754
mov qword [rbx], rdi
mov dword [rbx - 4], edi
add rbx, 0x10
sub rsi, 1
jne 0x14006dd45
sub rbp, 1
jne 0x14006dd40
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.140154558
nop
xor r9d, r9d
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1401545a4
mov dword [rsp + 0x6c], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.1401546d8
cmp dword [rsp + 0x6c], 0xa59d
jne 0x14006df0b
mov dword [rsp + 0x68], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1401546d8
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.1401546d8
mov r8d, 4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1401546d8
cmp dword [rsp + 0x58], 0
jle 0x14006defa
nop
mov dword [rsp + 0x118], edi
mov dword [rsp + 0x110], edi
mov r8d, 4
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x70]
call fcn.1401546d8
mov r8d, 4
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x70]
call fcn.1401546d8
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.14013c75c
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.1401546d8
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 0x14006de30
add rbx, 0x2c
cmp rbx, 0xb0
jl 0x14006ddf0
lea rcx, [rsp + 0x70]
call fcn.1401545e8
nop
lea rcx, [rsp + 0x70]
call fcn.1401549ec
jmp 0x14006e1ab
mov esi, edi
mov ecx, 0x1000
call fcn.14013c75c
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 0x14006e004
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 0x14006dfeb
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 0x14006e062
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 0x14006e0ab
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x14006e078
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x60], rbx
test esi, esi
je 0x14006e0ab
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, [0x14022c580]
call fcn.14014cea8
jmp 0x14006e19d
mov esi, edi
nop
mov dword [r12 + 0xa0], esi
mov rdx, rbp
mov rcx, r12
call fcn.14006e6d0
add esi, 1
cmp esi, 4
jl 0x14006e0b0
mov dword [r12 + 0xa0], edi
mov rdx, rbp
mov rcx, r12
call fcn.14006e210
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006e0f2
call fcn.14013c754
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, [0x14022c580]
call fcn.14014d220
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 0x14006e19d
test rbx, rbx
je 0x14006e164
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x110]
test edi, edi
jne 0x14006e19d
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 0x14006e1ab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006e1ba
call fcn.14013c754
mov eax, 1
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret