Function at 0x14004ffcc
Capabilities:
Create restart manager session

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3d8
movaps xmmword [rsp + 0x3c0], xmm6
mov ebx, edx
mov rbp, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
mov eax, dword [0x14026af38]
mov ecx, dword [0x14026d938]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005039a
cmp qword [0x14026af30], 0
je 0x14005028c
lea rcx, [rsp + 0xac]
mov dword [rcx], 0
xorps xmm6, xmm6
lea r8, [rsp + 0x370]
movaps xmmword [r8 + 0x30], xmm6
movaps xmmword [r8 + 0x20], xmm6
movaps xmmword [r8 + 0x10], xmm6
movaps xmmword [r8], xmm6
mov word [r8 + 0x40], 0
xor edi, edi
xor edx, edx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x14005036c
movaps xmmword [rsp + 0x90], xmm6
xor eax, eax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
test bl, bl
je 0x140050293
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov qword [rsp + 0x38], rbp
mov rdx, rbp
mov r8b, 1
mov r9d, 1
call fcn.140084b90
lea rdi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rdi
call fcn.140084e70
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400500da
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140050264
lea rbp, [rsp + 0x58]
lea r13, [rsp + 0xb0]
lea rdi, [rsp + 0x40]
mov rsi, qword [rsp + 0x98]
cmp rsi, qword [rsp + 0xa0]
je 0x140050120
mov rcx, rsi
mov rdx, rbp
call fcn.14003b7ee
add rsi, 0x18
mov qword [rsp + 0x98], rsi
jmp 0x140050138
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.1400525a6
mov rsi, qword [rsp + 0x98]
cmp byte [rsi - 1], 0
lea r14, [rsi - 0x18]
jns 0x140050145
mov r14, qword [r14]
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
cmp rbx, r15
jae 0x140050168
mov qword [rbx], r14
add rbx, 8
mov qword [rsp + 0x78], rbx
jmp 0x14005022f
mov rsi, qword [rsp + 0x70]
sub rbx, rsi
mov r12, rbx
sar r12, 3
lea rax, [r12 + 1]
movabs rdx, 0x1fffffffffffffff
cmp rax, rdx
ja 0x1400503d8
sub r15, rsi
mov rcx, r15
sar rcx, 3
sar r15, 2
cmp r15, rax
cmovb r15, rax
movabs rax, 0xfffffffffffffff
cmp rcx, rax
cmovae r15, rdx
test r15, r15
je 0x1400501d5
cmp r15, rdx
ja 0x1400503e2
lea rcx, [r15*8]
call fcn.1401c9f10
mov rbp, rax
jmp 0x1400501d9
xor eax, eax
xor ebp, ebp
lea r15, [r15*8]
add r15, rbp
lea rdi, [r12*8 + 8]
add rdi, rbp
mov qword [rdi - 8], r14
test rbx, rbx
jle 0x140050206
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.1401cccd0
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r15
test rsi, rsi
lea rbp, [rsp + 0x58]
lea rdi, [rsp + 0x40]
je 0x14005022f
mov rcx, rsi
call fcn.1401c9f6c
mov rcx, r13
mov rdx, rdi
call fcn.140084e70
mov rcx, rbp
mov rdx, rdi
call fcn.14005bad0
mov rcx, rdi
call fcn.14005baa0
movzx eax, byte [rsp + 0x6f]
test al, al
jns 0x14005025b
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400500f5
lea rcx, [rsp + 0x58]
call fcn.14005baa0
lea rcx, [rsp + 0xb0]
call fcn.140084d70
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x38]
jmp 0x1400502c6
xor edi, edi
jmp 0x14005036c
cmp byte [rbp + 0x17], 0
mov rsi, rbp
jns 0x1400502a0
mov rsi, qword [rbp]
mov ecx, 8
call fcn.1401c9f10
mov r8, rax
mov qword [rax], rsi
mov qword [rsp + 0x70], rax
lea rdx, [rax + 8]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], rdx
sub rdx, r8
shr rdx, 3
mov ecx, dword [rsp + 0xac]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
xor r9d, r9d
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x14005033f
mov ecx, dword [rsp + 0xac]
mov edx, 1
xor r8d, r8d
call sub.RstrtMgr.DLL_RmShutdown
mov esi, 3
mov dil, 1
mov rcx, rbp
mov dl, 1
call fcn.140079f50
test al, al
jne 0x14005032e
mov ecx, 0x186a0
call fcn.14007ef80
dec esi
jne 0x14005030d
xor edi, edi
mov ecx, dword [rsp + 0xac]
xor edx, edx
xor r8d, r8d
call sub.RstrtMgr.DLL_RmRestart
mov ecx, dword [rsp + 0xac]
call sub.RstrtMgr.DLL_RmEndSession
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14005035f
mov qword [rsp + 0x78], rcx
call fcn.1401c9f6c
lea rcx, [rsp + 0x90]
call fcn.14000c30a
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x3c0]
add rsp, 0x3d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14026af38]
call fcn.1401ca090
cmp dword [0x14026af38], 0xffffffff
jne 0x140050023
lea rcx, str.RstrtMgr.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14026af30], rax
lea rcx, [0x14026af38]
call fcn.1401ca128
jmp 0x140050023
lea rcx, [rsp + 0x70]
call fcn.14003d05c
call fcn.1401dedf4
int3