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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov esi, edx
mov r14, rcx
xor r15d, r15d
mov edi, r15d
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x50]
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 0x1400055a8
mov eax, r15d
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r15d
test eax, eax
sete r8b
test eax, eax
je 0x14000561f
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREDTSAPO
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000561b
mov eax, r15d
test rdi, rdi
je 0x14000560a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], r15d
test eax, eax
sete r8b
test r8b, r8b
je 0x140005a89
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, str.APO4_Default_Internal
lea rcx, [rbp - 0x10]
call fcn.140014f70
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov r12d, 0xd
test eax, eax
jne 0x14000568f
mov ebx, r15d
cmp dword [rsp + 0x50], 4
cmovne ebx, r12d
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400056a1
call fcn.14002bbdc
test ebx, ebx
jne 0x1400056af
cmp dword [rsp + 0x60], ebx
jne 0x14000585d
test esi, esi
jne 0x14000585d
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
lea r8d, [rsi + 3]
lea rdx, str.APO4_Default_Internal
lea rcx, [rbp - 0x10]
call fcn.140014f70
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x140005713
call fcn.14002bbdc
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 0xf
mov ecx, 0x20
call fcn.140024808
mov rdx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0x15
mov qword [rbp - 0x40], 0x1f
movups xmm0, xmmword [str.APO4_Default_Internal]
movups xmmword [rax], xmm0
mov eax, dword [0x14004c618]
mov dword [rdx + 0x10], eax
movzx eax, byte [0x14004c61c]
mov byte [rdx + 0x14], al
mov byte [rdx + 0x15], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x140053c70]
movdqu xmmword [rbp - 0x28], xmm1
mov word [rbp - 0x38], r15w
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r15
lea r8, [rdx + 0x15]
lea rcx, [rbp - 0x80]
call fcn.1400152d0
nop
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x38]
mov rdx, rax
mov rcx, r14
call fcn.14000d390
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x80]
call fcn.140014c90
lea r8, [r14 + 0x240]
mov rdx, rax
call fcn.140012040
xor r8d, r8d
mov edx, dword [r14 + 0x240]
mov rcx, r14
call fcn.14000db40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140005822
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000581c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ad9
call fcn.140024800
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14000585d
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005858
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005adf
call fcn.140024800
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, str.APO4_Default_Headphone
lea rcx, [rbp - 0x10]
call fcn.140014f70
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400058be
mov ebx, r15d
cmp dword [rsp + 0x58], 4
cmovne ebx, r12d
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400058d0
call fcn.14002bbdc
test ebx, ebx
jne 0x1400058de
cmp dword [rsp + 0x60], ebx
jne 0x140005a89
cmp esi, 1
jne 0x140005a89
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
lea r8d, [rsi + 2]
lea rdx, str.APO4_Default_Headphone
lea rcx, [rbp - 0x10]
call fcn.140014f70
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 3]
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14000593f
call fcn.14002bbdc
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 0xf
mov ecx, 0x20
call fcn.140024808
mov rdx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0x16
mov qword [rbp - 0x40], 0x1f
movups xmm0, xmmword [str.APO4_Default_Headphone]
movups xmmword [rax], xmm0
mov eax, dword [0x14004c630]
mov dword [rdx + 0x10], eax
movzx eax, word [0x14004c634]
mov word [rdx + 0x14], ax
mov byte [rdx + 0x16], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x140053c70]
movdqu xmmword [rbp - 0x28], xmm1
mov word [rbp - 0x38], r15w
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r15
lea r8, [rdx + 0x16]
lea rcx, [rbp - 0x80]
call fcn.1400152d0
nop
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x38]
mov rdx, rax
mov rcx, r14
call fcn.14000d390
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x80]
call fcn.140014c90
lea r8, [r14 + 0x244]
mov rdx, rax
call fcn.140012040
mov r8d, 1
mov edx, dword [r14 + 0x244]
mov rcx, r14
call fcn.14000db40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140005a52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ae5
call fcn.140024800
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140005a89
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ad3
call fcn.140024800
test rdi, rdi
je 0x140005a9a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
test rdi, rdi
je 0x140005aa8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14002bf94
nop
call fcn.14002bf94
nop
call fcn.14002bf94
nop
call fcn.14002bf94
int3