Function at 0x140027690
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.140031968
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.1400344b0
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 0x1400278e7
cmp qword [rsi + 0x18], 8
jb 0x140027715
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 0x1400278e7
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 0x140027a19
mov eax, dword [rsp + 0xd0]
test eax, eax
je 0x140027a19
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 0x1400277e0
lea rcx, [rsp + 0x58]
call fcn.140027ae0
mov eax, dword [rsp + 0xd0]
mov r14, qword [rsp + 0x68]
nop word [rax + rax]
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 0x140027941
cmp dword [rsp + 0xd0], eax
je 0x140027941
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 0x140027894
mov r8, rsi
mov rdx, qword [0x140088fa8]
mov r11, qword [0x140088fa0]
nop dword [rax + rax]
mov ecx, dword [r8]
cmp ecx, r10d
je 0x140027941
mov rax, r11
cmp r11, rdx
je 0x140027885
cmp ecx, dword [rax]
je 0x140027941
add rax, 4
cmp rax, rdx
jne 0x140027874
inc r15d
add r8, 0x29c
cmp r15d, r9d
jb 0x140027860
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 0x1400278e7
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x1400278db
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027a6e
mov rdx, r14
mov rcx, rsi
call fcn.1400316f8
nop
test rdi, rdi
je 0x140027925
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rbx, 0x1000
jb 0x14002791a
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140027a68
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.1400316f8
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 0x140027a27
sub r14, rsi
cmp r14, 0x1000
mov rax, rsi
jb 0x140027980
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027a6e
mov rdx, r14
mov rcx, rsi
call fcn.1400316f8
jmp 0x140027a27
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
nop
test rdi, rdi
je 0x140027a61
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rbx, 0x1000
jb 0x140027a56
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140027a74
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.1400316f8
xor al, al
jmp 0x140027929
call fcn.140038810
nop
call fcn.140038810
nop
call fcn.140038810
int3