Function at 0x14021719c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov r14, r8
mov rdi, rcx
lea rcx, [rbp + 0xf]
call fcn.14000e0c4
nop
lea rcx, str._Preview_Handler
call fcn.140286900
mov r8d, eax
lea rdx, str._Preview_Handler
lea rcx, [rbp + 0xf]
call fcn.14000db34
mov rbx, 0xffffffff80000002
mov qword [rbp + 0x2f], rbx
and dword [rbp + 0x37], 0
and qword [rbp + 0x3f], 0
and qword [rbp + 0x17], 0
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPreviewHandlers
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140217252
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp + 0x17]
mov qword [rbp + 0x2f], rbx
and dword [rbp + 0x37], 0
mov rsi, qword [rbp + 0xf]
test rsi, rsi
je 0x14021739a
mov rcx, rsi
call fcn.140286900
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14021739a
call fcn.1401bdd78
mov rcx, rax
test rax, rax
je 0x1402173ea
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001d845.0]
add rax, 0x18
mov qword [rbp + 0x1f], rax
lea r9, str.8895b1c6_b41f_4c1c_a562_0d564250836f
mov r8, r14
lea rdx, str._TsShellEx_Ts
lea rcx, [rbp + 0x1f]
call fcn.14000dac8
mov rsi, 0xffffffff80000000
and qword [rbp + 0x27], 0
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rbp + 0x1f]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14021732c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rbp + 0x27]
test rdi, rdi
jne 0x140217335
xor eax, eax
jmp 0x14021733d
mov rcx, rdi
call fcn.140286900
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edi, edi
test eax, eax
sete dil
test rsi, rsi
je 0x140217373
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140217394
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001d845.0]
mov rbx, qword [rbp + 0x2f]
jmp 0x14021739c
xor edi, edi
test rbx, rbx
je 0x1402173ab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1402173d0
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001d845.0]
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000e344
int3