Function at 0x14006c280
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 0x14006c2ac
xor eax, eax
jmp 0x14006c77f
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, [0x140206e90]
call fcn.140138678
cmp dword [rsp + 0x108], edi
je 0x14006c4e5
lea rbx, [r12 + 0xb8]
lea ebp, [rdi + 4]
nop
mov esi, 0x2a
cmp dword [rbx - 4], edi
jle 0x14006c31d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006c31a
call fcn.1401281e4
mov qword [rbx], rdi
mov dword [rbx - 4], edi
add rbx, 0x10
sub rsi, 1
jne 0x14006c305
sub rbp, 1
jne 0x14006c300
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.14013d68c
nop
xor r9d, r9d
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14013d6d8
mov dword [rsp + 0x6c], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.14013d80c
cmp dword [rsp + 0x6c], 0xa59d
jne 0x14006c4cb
mov dword [rsp + 0x68], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14013d80c
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.14013d80c
mov r8d, 4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.14013d80c
cmp dword [rsp + 0x58], 0
jle 0x14006c4ba
nop
mov dword [rsp + 0x118], edi
mov dword [rsp + 0x110], edi
mov r8d, 4
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x70]
call fcn.14013d80c
mov r8d, 4
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x70]
call fcn.14013d80c
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.1401281ec
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.14013d80c
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 0x14006c3f0
add rbx, 0x2a
cmp rbx, 0xa8
jl 0x14006c3b0
lea rcx, [rsp + 0x70]
call fcn.14013d71c
nop
lea rcx, [rsp + 0x70]
call fcn.14013db30
jmp 0x14006c76b
mov esi, edi
mov ecx, 0x1000
call fcn.1401281ec
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 0x14006c5c4
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 0x14006c5ab
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 0x14006c622
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 0x14006c66b
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x14006c638
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x60], rbx
test esi, esi
je 0x14006c66b
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, [0x140206e90]
call fcn.140138300
jmp 0x14006c75d
mov esi, edi
nop
mov dword [r12 + 0xa0], esi
mov rdx, rbp
mov rcx, r12
call fcn.14006cc90
add esi, 1
cmp esi, 4
jl 0x14006c670
mov dword [r12 + 0xa0], edi
mov rdx, rbp
mov rcx, r12
call fcn.14006c7d0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006c6b2
call fcn.1401281e4
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, [0x140206e90]
call fcn.140138678
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 0x14006c75d
test rbx, rbx
je 0x14006c724
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x110]
test edi, edi
jne 0x14006c75d
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 0x14006c76b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006c77a
call fcn.1401281e4
mov eax, 1
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret