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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12d, edx
mov r15, rcx
xor r13d, r13d
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x70], r13
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREDTSAPO
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400079b3
mov rsi, qword [rsp + 0x40]
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x78], r13d
jmp 0x1400079d7
mov dword [rsp + 0x28], 0x2001f
lea r8, str.SOFTWAREDTSAPO
lea rcx, [rbp - 0x80]
call fcn.140001d10
mov rsi, qword [rbp - 0x80]
test eax, eax
jne 0x140007f48
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov r8d, 3
lea rdx, str.APO4_Default_Internal
lea rcx, [rbp - 0x20]
call fcn.14000f2d0
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov r14d, 0xd
test eax, eax
jne 0x140007a3e
mov ebx, r13d
cmp dword [rsp + 0x40], 4
cmovne ebx, r14d
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140007a51
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, 7
test ebx, ebx
jne 0x140007a64
cmp dword [rsp + 0x68], ebx
jne 0x140007c9d
test r12d, r12d
jne 0x140007c9d
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
lea r8d, [r12 + 3]
lea rdx, str.APO4_Default_Internal
lea rcx, [rbp - 0x20]
call fcn.14000f2d0
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 4]
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140007acc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov r8d, 0x15
lea rdx, str.APO4_Default_Internal
lea rcx, [rbp - 0x60]
call fcn.14000f720
nop
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x40], r13w
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], r13
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r14, qword [rbp - 0x50]
add r14, rdx
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
mov rcx, r13
mov qword [rsp + 0x58], rcx
mov r8, rdi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x48], r13w
mov rdx, r14
sub rdx, rbx
cmp rdx, 8
jb 0x140007b6b
lea rcx, [rsp + 0x48]
call fcn.1400109d0
mov rcx, r13
mov qword [rsp + 0x58], rcx
mov r8, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
cmp rbx, r14
je 0x140007bcc
nop word [rax + rax]
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x140007bae
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp r8, 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x140007bb8
lea rcx, [rsp + 0x48]
call fcn.14000ff80
inc rbx
cmp rbx, r14
je 0x140007bcc
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
jmp 0x140007b80
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14000c6f0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000f130
lea r8, [r15 + 0x18c]
mov rdx, rax
call fcn.14000c9d0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r15 + 0x18c]
mov rcx, r15
call fcn.140008f10
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140007c59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007c53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140007c97
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov r14d, 0xd
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov r8d, 3
lea rdx, str.APO4_Default_Headphone
lea rcx, [rbp - 0x20]
call fcn.14000f2d0
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140007cfe
mov ebx, r13d
cmp dword [rsp + 0x70], 4
cmovne ebx, r14d
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140007d11
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
jne 0x140007d1f
cmp dword [rsp + 0x68], ebx
jne 0x140007f48
cmp r12d, 1
jne 0x140007f48
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
lea r8d, [r12 + 2]
lea rdx, str.APO4_Default_Headphone
lea rcx, [rbp - 0x20]
call fcn.14000f2d0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 3]
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140007d85
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov r8d, 0x16
lea rdx, str.APO4_Default_Headphone
lea rcx, [rbp - 0x60]
call fcn.14000f720
nop
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x40], r13w
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r13
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r14, qword [rbp - 0x50]
add r14, rdx
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
mov rcx, r13
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x48], r13w
mov rdx, r14
sub rdx, rbx
cmp rdx, 8
jb 0x140007e21
lea rcx, [rsp + 0x48]
call fcn.1400109d0
mov rcx, r13
mov qword [rsp + 0x58], rcx
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
cmp rbx, r14
je 0x140007e7c
movsx r9d, byte [rbx]
cmp rcx, rdi
jae 0x140007e5e
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdi, 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x140007e68
lea rcx, [rsp + 0x48]
call fcn.14000ff80
inc rbx
cmp rbx, r14
je 0x140007e7c
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
jmp 0x140007e30
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14000c6f0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000f130
lea r8, [r15 + 0x190]
mov rdx, rax
call fcn.14000c9d0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [r15 + 0x190]
mov rcx, r15
call fcn.140008f10
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140007f0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007f04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007f04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140007f48
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007f43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007f43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
test rsi, rsi
je 0x140007f59
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
test rsi, rsi
je 0x140007f67
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14001d660
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret