Function at 0x1401618b0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x50
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
lea r12, [0x1400168e8]
cmp rcx, r15
je 0x1401618fd
test byte [rcx + 0x1c], 0x20
je 0x1401618fd
cmp byte [rcx + 0x19], 4
jb 0x1401618fd
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r8, r12
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
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 0x140161932
test byte [rcx + 0x1c], 0x20
je 0x140161932
cmp byte [rcx + 0x19], 4
jb 0x140161932
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x1c]
mov r8, r12
call fcn.14001de24
lea rax, [rbp + 0x40]
mov edi, 0xf003f
lea rdx, [0x140001c10]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140161a0d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1401619ab
test byte [rcx + 0x1c], 0x20
je 0x1401619ab
cmp byte [rcx + 0x19], 2
jb 0x1401619ab
mov rcx, qword [rcx + 0x10]
lea r9, [0x140001c10]
mov edx, 0x1d
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x1401619c4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x14017d3a8]
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x1401619dd
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1401619ff
test byte [rcx + 0x1c], 0x20
je 0x1401619ff
cmp byte [rcx + 0x19], 4
jb 0x1401619ff
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r8, r12
call fcn.14001dd24
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]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
and dword [rsp + 0x20], ebx
lea rdi, [0x140016690]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140161aa2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1401619ab
test byte [rcx + 0x1c], 0x20
je 0x1401619ab
cmp byte [rcx + 0x19], 2
jb 0x1401619ab
mov rcx, qword [rcx + 0x10]
lea r9, [0x140001c10]
mov edx, 0x1e
mov r8, r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.140028ec8
jmp 0x1401619a4
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
lea rdx, [0x140016720]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x1401619a4
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140161b2a
test byte [rcx + 0x1c], 0x20
je 0x140161b2a
cmp byte [rcx + 0x19], 2
jb 0x140161b2a
and dword [rsp + 0x30], ebx
mov rcx, qword [rcx + 0x10]
lea rax, [0x140016720]
mov qword [rsp + 0x28], rax
lea rax, [0x140016690]
lea r9, [0x140001c10]
mov edx, 0x1f
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.14001ef8c
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401619ab