Function at 0x140163150
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 0x140163461
mov byte [rcx + 0xb0], 0
mov rdi, qword [rcx + 0xb8]
cmp qword [rdi + 8], 0
je 0x1401631c0
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 [0x1403fe608]
test al, 1
jne 0x140163200
or eax, 1
mov dword [0x1403fe608], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1403fe5e0], rax
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
lea rdx, [0x140329c48]
lea rcx, [0x1403fe5e0]
call fcn.1400ec430
mov rdi, rax
lea r12, [0x140323de0]
xor r15d, r15d
test rax, rax
je 0x140163404
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xc0]
call fcn.1401f9de0
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, [0x14032bf20]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], r15d
jle 0x140163271
mov rcx, qword [rbp - 0x18]
call fcn.140298600
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r15
mov rsi, qword [rbx + 0xd8]
cmp qword [rsi + 8], 0
je 0x1401632ab
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 0x1401632c4
lea rdx, str.fullscreen
lea rcx, [rbp - 0x28]
call fcn.1401e7680
mov rsi, qword [rbx + 0xe0]
cmp qword [rsi + 8], 0
je 0x1401632f6
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 0x140163325
cmp dword [rbp - 0x1c], 0
jle 0x140163315
lea rdx, [0x14032dda4]
lea rcx, [rbp - 0x28]
call fcn.1401e7680
lea rdx, str.diskbusy
lea rcx, [rbp - 0x28]
call fcn.1401e7680
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xc8]
call fcn.1401f9de0
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, [0x14032bfa8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], 0
jle 0x140163370
mov rcx, qword [rbp - 0x18]
call fcn.140298600
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0xd0]
call fcn.1401f9de0
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, [0x140334360]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rbp - 0x10], 0
jle 0x1401633bb
mov rcx, qword [rbp - 0x18]
call fcn.140298600
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 0x1401633f7
mov rcx, qword [rbp - 0x28]
call fcn.140298600
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test r14b, r14b
jne 0x140163419
xor ecx, ecx
call fcn.1401174f0
xor ecx, ecx
call fcn.140117970
jmp 0x140163461
mov rax, qword [rbx + 0xa8]
cmp byte [rax + 0x34], 0
jne 0x140163458
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.140107ae0
nop
cmp dword [rbp - 0x20], 0
jle 0x140163458
mov rcx, qword [rbp - 0x28]
call fcn.140298600
movzx ecx, r14b
call fcn.1401174f0
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