Function at 0x100146b48
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, [0x100002be0]
cmp rcx, r12
je 0x100146b96
test byte [rcx + 0x1c], 0x20
je 0x100146b96
cmp byte [rcx + 0x19], 4
jb 0x100146b96
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r8, r14
call fcn.10001c854
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 0x100146bdb
test byte [rcx + 0x1c], 0x20
je 0x100146bdb
cmp byte [rcx + 0x19], 4
jb 0x100146bdb
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x1c]
mov r8, r14
call fcn.10001c878
lea rax, [rsp + 0x90]
lea r15, [0x100002708]
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 0x100146cc2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146c57
test byte [rcx + 0x1c], 0x20
je 0x100146c57
cmp byte [rcx + 0x19], 2
jb 0x100146c57
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d
mov r9, r15
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x100146c74
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x100146c91
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146cb3
test byte [rcx + 0x1c], 0x20
je 0x100146cb3
cmp byte [rcx + 0x19], 4
jb 0x100146cb3
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r8, r14
call fcn.10001c854
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, [0x100015900]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100146d5f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146c57
test byte [rcx + 0x1c], 0x20
je 0x100146c57
cmp byte [rcx + 0x19], 2
jb 0x100146c57
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.10001e39c
jmp 0x100146c50
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x88]
lea r15, [0x100015970]
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 0x100146c50
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100146deb
test byte [rcx + 0x1c], 0x20
je 0x100146deb
cmp byte [rcx + 0x19], 2
jb 0x100146deb
and dword [rsp + 0x30], ebx
mov rcx, qword [rcx + 0x10]
lea rax, [0x100015900]
lea r9, [0x100002708]
mov edx, 0x1f
mov r8, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1000a343c
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100146c57