Function at 0x14016f520
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rbx, rcx
cmp byte [rcx + 0xb0], 0
je 0x14016f831
mov byte [rcx + 0xb0], 0
mov rdi, qword [rcx + 0xb8]
cmp qword [rdi + 8], 0
je 0x14016f590
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
and al, 1
mov byte [rdi + 0xb1], al
movzx r14d, byte [rdi + 0xb1]
mov eax, dword [0x140429a18]
test al, 1
jne 0x14016f5d0
or eax, 1
mov dword [0x140429a18], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1404299f0], rax
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rdi, rax
lea r12, [0x140346ce0]
xor r15d, r15d
test rax, rax
je 0x14016f7d4
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xc0]
call fcn.14020dc10
mov ecx, dword [rax + 0xc]
mov rdx, qword [rax]
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, [0x14034f1c8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], r15d
jle 0x14016f641
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r15
mov rsi, qword [rbx + 0xd8]
cmp qword [rsi + 8], 0
je 0x14016f67b
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
and al, 1
mov byte [rsi + 0xb1], al
cmp byte [rsi + 0xb1], 0
je 0x14016f694
lea rdx, str.fullscreen
lea rcx, [rbp - 0x28]
call fcn.1401fb190
mov rsi, qword [rbx + 0xe0]
cmp qword [rsi + 8], 0
je 0x14016f6c6
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
and al, 1
mov byte [rsi + 0xb1], al
cmp byte [rsi + 0xb1], 0
je 0x14016f6f5
cmp dword [rbp - 0x1c], 0
jle 0x14016f6e5
lea rdx, [0x1403519e4]
lea rcx, [rbp - 0x28]
call fcn.1401fb190
lea rdx, str.diskbusy
lea rcx, [rbp - 0x28]
call fcn.1401fb190
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xc8]
call fcn.14020dc10
mov ecx, dword [rax + 0xc]
mov rdx, qword [rax]
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14034f1f0]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], 0
jle 0x14016f740
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xd0]
call fcn.14020dc10
mov ecx, dword [rax + 0xc]
mov rdx, qword [rax]
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140357ee0]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], 0
jle 0x14016f78b
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
mov eax, dword [rbp - 0x1c]
add eax, eax
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SchedulerNotWhen
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
cmp dword [rbp - 0x20], 0
jle 0x14016f7c7
mov rcx, qword [rbp - 0x28]
call fcn.1402b7350
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test r14b, r14b
jne 0x14016f7e9
xor ecx, ecx
call fcn.140116740
xor ecx, ecx
call fcn.140116bc0
jmp 0x14016f831
mov rax, qword [rbx + 0xa8]
cmp byte [rax + 0x34], 0
jne 0x14016f828
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r15
cmp byte [rax + 0x2e], 0
sete r8b
cmp byte [rax + 0x2f], 0
sete dl
lea r9, [rbp - 0x28]
xor ecx, ecx
call fcn.140106660
nop
cmp dword [rbp - 0x20], 0
jle 0x14016f828
mov rcx, qword [rbp - 0x28]
call fcn.1402b7350
movzx ecx, r14b
call fcn.140116740
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret