Function at 0x140019580
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r13
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, qword [rcx + 0x20]
lea rsi, [rcx + 0x10]
mov r13, rcx
mov qword [rbp - 0x61], rdx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, 0xe
jb 0x1400198a9
cmp qword [rsi + 0x18], 8
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov qword [rbp - 0x69], rsi
jb 0x1400195ed
mov rax, qword [rsi]
mov qword [rbp - 0x69], rax
xor edi, edi
lea r15, [r12 + 0xe]
mov ebx, 7
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x31], rdi
lea r14, [rbp - 0x41]
mov qword [rbp - 0x29], rdi
cmp r15, rbx
jbe 0x140019662
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x14001961f
mov rbx, rcx
jmp 0x14001962b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rax, 0xffffffffffffffff
mov rcx, rbx
add rcx, 1
cmovb rcx, rax
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400198af
lfence
add rcx, rcx
call fcn.140012d70
mov r14, rax
mov qword [rbp - 0x41], rax
mov rdx, qword [rbp - 0x69]
mov rcx, r14
mov qword [rbp - 0x29], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov qword [rbp - 0x31], r15
call fcn.1401a9040
movups xmm0, xmmword [str.VolatileFlags]
mov qword [rbp + 7], rdi
mov qword [rbp - 1], rdi
movups xmmword [rbx + r14], xmm0
mov qword [rbp + 0xf], rdi
movsd xmm1, qword [0x14020a528]
movsd qword [rbx + r14 + 0x10], xmm1
mov eax, dword [0x14020a530]
mov dword [rbx + r14 + 0x18], eax
mov word [r14 + r15*2], di
cmp qword [rsi + 0x18], 8
jb 0x1400196be
mov rsi, qword [rsi]
mov rdx, qword [r13 + 8]
lea rcx, [rbp - 1]
mov qword [rsp + 0x38], rdi
mov r8, rsi
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], edi
call fcn.140018690
test eax, eax
jne 0x14001981e
cmp qword [rbp - 0x29], 8
lea r8, [rbp - 0x41]
mov rdx, qword [r13 + 8]
lea rcx, [rbp - 0x19]
cmovae r8, qword [rbp - 0x41]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x28], 0x20206
mov qword [rbp - 0x11], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov dword [rsp + 0x20], 1
call fcn.140018690
mov rbx, qword [rbp - 0x19]
test eax, eax
jne 0x140019810
mov rsi, qword [rbp - 0x61]
lea rdx, str.RebootRequired
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov eax, dword [rsi]
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movabs rax, 0x346dc5d63886594b
mov dword [rsp + 0x28], 8
imul qword [rsi + 8]
mov r9d, 0xb
xor r8d, r8d
sar rdx, 0xb
mov rcx, rbx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rbp - 0x21]
mov qword [rbp - 0x21], rdx
lea rdx, str.RebootRequiredSince
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsi + 0x10], edi
lea rax, [rbp - 0x51]
mov dword [rsp + 0x28], 4
lea rdx, str.UrgentRebootRequired
sete dil
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x51], edi
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsi + 0x10]
lea rdx, str.RebootCredit
mov dword [rbp - 0x49], eax
mov r9d, 4
lea rax, [rbp - 0x49]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14001981e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14001982d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x140019869
mov rcx, qword [rbp - 0x41]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019864
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400198a3
call fcn.1401853a0
mov r14, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x120]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140185380
add rsp, 0xe8
pop r13
pop r12
pop rsi
pop rbp
ret
call fcn.1401b3c00
int3
call fcn.140008810
int3
call fcn.140008770
int3