Function at 0x1400ac238
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 [0x140198858]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
lea rsi, [rcx + 0x20]
or ebx, 0xffffffff
cmp dword [rsi], ebx
je 0x1400ac28f
mov ecx, dword [rsi]
call sub.RstrtMgr.DLL_RmEndSession
mov dword [rsi], ebx
xor r13d, r13d
mov word [rbp + 0x130], r13w
xor edx, edx
lea r8d, [r13 + 0x40]
lea rcx, [rbp + 0x132]
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
test eax, eax
jne 0x1400ac55d
cmp dword [rsi], ebx
je 0x1400ac55d
mov r12, qword [r14 + 0x18]
mov ecx, r12d
lea eax, [r13 + 8]
mul rcx
lea rcx, [r13 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140022308
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdi, qword [r14 + 0x10]
mov rdi, qword [rdi]
cmp rdi, qword [r14 + 0x10]
je 0x1400ac35d
mov r15, rax
lea rax, [rdi + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400ac317
mov rcx, qword [rax]
jmp 0x1400ac31a
mov rcx, rax
mov qword [r15], rcx
add r15, 8
cmp qword [rax + 0x18], 8
jb 0x1400ac32b
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.14001bb90
mov rdi, qword [rdi]
cmp rdi, qword [r14 + 0x10]
jne 0x1400ac307
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 0x1400ac546
lea r8, [rsp + 0x40]
lea rdx, str.RmRegisterResources_Error___d
lea rcx, [rbp - 0x10]
call fcn.1400192f8
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x1400ac3aa
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 - 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
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.14000df40
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.1400f6db0
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.14000b4a8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x38]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x18]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf0]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd0]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb0]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
mov edi, 4
jmp 0x1400ac549
mov edi, r13d
test rbx, rbx
je 0x1400ac556
mov rcx, rbx
call fcn.140022300
mov eax, edi
jmp 0x1400ac719
lea r8, [rsp + 0x40]
lea rdx, str.RmStartSession_Error___d
lea rcx, [rbp - 0x10]
call fcn.1400192f8
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400ac57f
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov eax, 7
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
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 - 0x18], rax
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.14000df40
mov rbx, rax
lea rcx, [rbp + 0xa0]
call fcn.1400f6db0
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.14000b4a8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x110]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf0]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xc8]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa8]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
mov eax, 4
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140022430
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