Function at 0x14013bf50
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 8], cl
push rbp
push rbx
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x50
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
lea r12, [0x14015ad60]
cmp rcx, r15
je 0x14013bfa0
test byte [rcx + 0x1c], 0x20
je 0x14013bfa0
cmp byte [rcx + 0x19], 4
jb 0x14013bfa0
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r8, r12
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
xor ebx, ebx
and qword [rbp + 0x40], rbx
and qword [rbp + 0x48], rbx
and dword [rbp + 0x30], ebx
lea r9d, [rbx + 1]
mov dword [rbp + 0x38], r9d
cmp rcx, r15
je 0x14013bfd5
test byte [rcx + 0x1c], 0x20
je 0x14013bfd5
cmp byte [rcx + 0x19], 4
jb 0x14013bfd5
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x1c]
mov r8, r12
call fcn.14001539c
lea rax, [rbp + 0x40]
mov edi, 0xf003f
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Software
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14013c0c4
jg 0x14013c011
mov ebx, eax
jmp 0x14013c01a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14013c055
test byte [rcx + 0x1c], 0x20
je 0x14013c055
cmp byte [rcx + 0x19], 2
jb 0x14013c055
mov rcx, qword [rcx + 0x10]
lea r9, str.Software
mov edx, 0x1d
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140014f78
mov rcx, qword [0x14016a048]
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14013c074
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14013c093
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14013c0b5
test byte [rcx + 0x1c], 0x20
je 0x14013c0b5
cmp byte [rcx + 0x19], 4
jb 0x14013c0b5
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r8, r12
call fcn.14000c0e8
mov eax, ebx
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
lea rdi, str.MICROSOFTWINDOWS_NTCurrentVersionASRRestoreSession
and dword [rsp + 0x20], ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14013c160
jg 0x14013c10d
mov ebx, eax
jmp 0x14013c116
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14013c055
test byte [rcx + 0x1c], 0x20
je 0x14013c055
cmp byte [rcx + 0x19], 2
jb 0x14013c055
mov rcx, qword [rcx + 0x10]
lea r9, str.Software
mov edx, 0x1e
mov dword [rsp + 0x28], ebx
mov r8, r12
mov qword [rsp + 0x20], rdi
call fcn.1400150ac
jmp 0x14013c04e
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.QuickFormat
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14013c04e
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14013c1ee
test byte [rcx + 0x1c], 0x20
je 0x14013c1ee
cmp byte [rcx + 0x19], 2
jb 0x14013c1ee
and dword [rsp + 0x30], ebx
lea rax, str.QuickFormat
mov rcx, qword [rcx + 0x10]
lea r9, str.Software
mov qword [rsp + 0x28], rax
mov edx, 0x1f
lea rax, str.MICROSOFTWINDOWS_NTCurrentVersionASRRestoreSession
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.140015280
mov rcx, qword [0x14016a048]
test edi, edi
jg 0x14013c1f9
mov ebx, edi
jmp 0x14013c055
movzx ebx, di
or ebx, 0x80070000
jmp 0x14013c055