Function at 0x1001469f0
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 8], cl
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
lea r14, [0x100002c20]
cmp rcx, r12
je 0x100146a3e
test byte [rcx + 0x1c], 0x20
je 0x100146a3e
cmp byte [rcx + 0x19], 4
jb 0x100146a3e
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r8, r14
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
xor ebx, ebx
and qword [rsp + 0x90], rbx
and qword [rsp + 0x98], rbx
and dword [rsp + 0x80], ebx
lea r9d, [rbx + 1]
mov dword [rsp + 0x88], r9d
cmp rcx, r12
je 0x100146a83
test byte [rcx + 0x1c], 0x20
je 0x100146a83
cmp byte [rcx + 0x19], 4
jb 0x100146a83
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x1c]
mov r8, r14
call fcn.10001c7dc
lea rax, [rsp + 0x90]
lea r15, [0x100002728]
mov edi, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, r15
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100146b6a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146aff
test byte [rcx + 0x1c], 0x20
je 0x100146aff
cmp byte [rcx + 0x19], 2
jb 0x100146aff
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d
mov r9, r15
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x100146b1c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x100146b39
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146b5b
test byte [rcx + 0x1c], 0x20
je 0x100146b5b
cmp byte [rcx + 0x19], 4
jb 0x100146b5b
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r8, r14
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
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, [0x1000158a0]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100146c07
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146aff
test byte [rcx + 0x1c], 0x20
je 0x100146aff
cmp byte [rcx + 0x19], 2
jb 0x100146aff
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e
mov r9, r15
mov r8, r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.10001e360
jmp 0x100146af8
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x88]
lea r15, [0x100015910]
mov rdx, r15
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 0x100146af8
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146c93
test byte [rcx + 0x1c], 0x20
je 0x100146c93
cmp byte [rcx + 0x19], 2
jb 0x100146c93
and dword [rsp + 0x30], ebx
mov rcx, qword [rcx + 0x10]
lea rax, [0x1000158a0]
lea r9, [0x100002728]
mov edx, 0x1f
mov r8, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1000a3068
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100146aff