Function at 0x14006c730
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 0x14006c75c
xor eax, eax
jmp 0x14006cc2f
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.140138c78
cmp dword [rsp + 0x108], edi
je 0x14006c995
lea rbx, [r12 + 0xb8]
lea ebp, [rdi + 4]
nop
mov esi, 0x2a
cmp dword [rbx - 4], edi
jle 0x14006c7cd
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006c7ca
call fcn.1401287f4
mov qword [rbx], rdi
mov dword [rbx - 4], edi
add rbx, 0x10
sub rsi, 1
jne 0x14006c7b5
sub rbp, 1
jne 0x14006c7b0
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.14013de98
nop
xor r9d, r9d
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14013dee4
mov dword [rsp + 0x6c], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.14013e020
cmp dword [rsp + 0x6c], 0xa59d
jne 0x14006c97b
mov dword [rsp + 0x68], edi
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14013e020
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.14013e020
mov r8d, 4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.14013e020
cmp dword [rsp + 0x58], 0
jle 0x14006c96a
nop
mov dword [rsp + 0x118], edi
mov dword [rsp + 0x110], edi
mov r8d, 4
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x70]
call fcn.14013e020
mov r8d, 4
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x70]
call fcn.14013e020
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.1401287fc
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.14013e020
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 0x14006c8a0
add rbx, 0x2a
cmp rbx, 0xa8
jl 0x14006c860
lea rcx, [rsp + 0x70]
call fcn.14013df28
nop
lea rcx, [rsp + 0x70]
call fcn.14013e340
jmp 0x14006cc1b
mov esi, edi
mov ecx, 0x1000
call fcn.1401287fc
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 0x14006ca74
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 0x14006ca5b
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 0x14006cad2
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 0x14006cb1b
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x14006cae8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x60], rbx
test esi, esi
je 0x14006cb1b
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.140138900
jmp 0x14006cc0d
mov esi, edi
nop
mov dword [r12 + 0xa0], esi
mov rdx, rbp
mov rcx, r12
call fcn.14006d140
add esi, 1
cmp esi, 4
jl 0x14006cb20
mov dword [r12 + 0xa0], edi
mov rdx, rbp
mov rcx, r12
call fcn.14006cc80
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006cb62
call fcn.1401287f4
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.140138c78
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 0x14006cc0d
test rbx, rbx
je 0x14006cbd4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x110]
test edi, edi
jne 0x14006cc0d
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 0x14006cc1b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006cc2a
call fcn.1401287f4
mov eax, 1
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret