Function at 0x14002e420
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rsi, rcx
xor r12b, r12b
xor r15d, r15d
mov dword [rsp + 0xc8], r15d
mov ecx, 0x200
call fcn.140034850
mov rdi, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], rax
lea rbx, [rax + 0x200]
mov qword [rsp + 0x80], rbx
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call fcn.140037390
mov qword [rsp + 0x78], rbx
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14002e669
cmp qword [rsi + 0x18], 8
jb 0x14002e4a5
mov rsi, qword [rsi]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [r9 + 1]
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x14002e669
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0xd0], r15d
mov dword [rsp + 0xd8], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xd0]
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x14002e79b
mov eax, dword [rsp + 0xd0]
test eax, eax
je 0x14002e79b
imul ecx, eax, 0x29c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov r14, r15
mov qword [rsp + 0x68], r15
movsxd rdx, ecx
test ecx, ecx
je 0x14002e567
lea rcx, [rsp + 0x58]
call fcn.14002e860
mov eax, dword [rsp + 0xd0]
mov r14, qword [rsp + 0x68]
mov dword [rsp + 0xd8], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x58]
mov r9, rsi
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xd0]
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x14002e6c3
cmp dword [rsp + 0xd0], eax
je 0x14002e6c3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r10d, eax
mov r9d, dword [rsp + 0xd8]
test r9d, r9d
je 0x14002e616
mov r8, rsi
mov rdx, qword [0x14008cf08]
mov r11, qword [0x14008cf00]
mov ecx, dword [r8]
cmp ecx, r10d
je 0x14002e6c3
mov rax, r11
cmp r11, rdx
je 0x14002e607
cmp ecx, dword [rax]
je 0x14002e6c3
add rax, 4
cmp rax, rdx
jne 0x14002e5f6
inc r15d
add r8, 0x29c
cmp r15d, r9d
jb 0x14002e5e2
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
test eax, eax
sete r12b
test rsi, rsi
je 0x14002e669
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x14002e65d
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e7f0
mov rdx, r14
mov rcx, rsi
call fcn.1400345e0
nop
test rdi, rdi
je 0x14002e6a7
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rbx, 0x1000
jb 0x14002e69c
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14002e7ea
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.1400345e0
movzx eax, r12b
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
nop
test rsi, rsi
je 0x14002e7a9
sub r14, rsi
cmp r14, 0x1000
mov rax, rsi
jb 0x14002e702
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e7f0
mov rdx, r14
mov rcx, rsi
call fcn.1400345e0
jmp 0x14002e7a9
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
nop
test rdi, rdi
je 0x14002e7e3
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rbx, 0x1000
jb 0x14002e7d8
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14002e7f6
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.1400345e0
xor al, al
jmp 0x14002e6ab
call fcn.14003d29c
nop
call fcn.14003d29c
nop
call fcn.14003d29c
int3