Function at 0x1400a7160
Capabilities:
Create restart manager session

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
lea rsi, [rcx + 0x28]
or ebx, 0xffffffff
cmp dword [rsi], ebx
je 0x1400a71b7
mov ecx, dword [rsi]
call sub.RstrtMgr.DLL_RmEndSession
mov dword [rsi], ebx
xor edx, edx
lea r8d, [rdx + 0x42]
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x130]
xor edx, edx
mov rcx, rsi
call sub.RstrtMgr.DLL_RmStartSession
mov dword [rsp + 0x40], eax
xor r13d, r13d
test eax, eax
jne 0x1400a747d
cmp dword [rsi], ebx
je 0x1400a747d
mov r12, qword [r14 + 0x20]
mov ecx, r12d
lea eax, [r13 + 8]
mul rcx
lea rcx, [r13 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400206a0
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdi, qword [r14 + 0x18]
mov rdi, qword [rdi]
cmp rdi, qword [r14 + 0x18]
je 0x1400a727d
mov r15, rax
lea rax, [rdi + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400a7237
mov rcx, qword [rax]
jmp 0x1400a723a
mov rcx, rax
mov qword [r15], rcx
add r15, 8
cmp qword [rax + 0x18], 8
jb 0x1400a724b
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.ProcessKiller::RegisterResources:_File:___s_
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x362688
lea r8d, [rdx + 0x56]
call fcn.140018b18
mov rdi, qword [rdi]
cmp rdi, qword [r14 + 0x18]
jne 0x1400a7227
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rbx
mov edx, r12d
mov ecx, dword [rsi]
call sub.RstrtMgr.DLL_RmRegisterResources
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400a7466
lea r8, [rsp + 0x40]
lea rdx, str.RmRegisterResources_Error___d
lea rcx, [rbp - 0x10]
call fcn.1400a2f5c
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x1400a72ca
mov rsi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov eax, 7
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.1400354c0
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.1400f27cc
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x48], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea r9, str.ProcessKiller::RegisterResources
mov edx, 0x3ae
mov ecx, 0x38120c
mov r8d, 0xa
call fcn.14000ba08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x38]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x18]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf0]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd0]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb0]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.14000867c
mov edi, 4
jmp 0x1400a7469
mov edi, r13d
test rbx, rbx
je 0x1400a7476
mov rcx, rbx
call fcn.1400206c0
mov eax, edi
jmp 0x1400a7639
lea r8, [rsp + 0x40]
lea rdx, str.RmStartSession_Error___d
lea rcx, [rbp - 0x10]
call fcn.1400a2f5c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400a749f
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov eax, 7
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.1400354c0
mov rbx, rax
lea rcx, [rbp + 0xa0]
call fcn.1400f27cc
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x48], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.ProcessKiller::RegisterResources
mov edx, 0x3ae
mov ecx, 0x38120b
mov r8d, 0xa
call fcn.14000ba08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf0]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xc8]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa8]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.14000867c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.14000867c
mov eax, 4
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret