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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0x114], 0
mov dword [rbp + 0x134], 0
mov dword [rbp + 0x154], 0
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x198], 0
mov qword [rbp + 0x1b8], 0
call fcn.140009c80
test eax, eax
jne 0x140004e71
xor eax, eax
jmp 0x140005118
mov edx, 0x42
lea rcx, [rbp + 0xb0]
call fcn.140005570
lea r8, [rbp + 0xb0]
xor edx, edx
lea rcx, [rbp + 0x64]
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x140005115
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x2b0]
mov edx, 1
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x14000510d
mov edx, 8
lea rcx, [rbp + 0x178]
call fcn.140005570
lea rax, [rbp + 0x114]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x154]
lea rdx, [rbp + 0x134]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmGetList
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xea
jne 0x140004f26
cmp dword [rbp + 0x134], 0
jne 0x140004f35
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140005118
mov eax, dword [rbp + 0x134]
imul rax, rax, 0x29c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0
jne 0x140004f6b
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140005118
mov eax, dword [rbp + 0x134]
mov dword [rbp + 0x154], eax
lea rax, [rbp + 0x114]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x178]
lea r8, [rbp + 0x154]
lea rdx, [rbp + 0x134]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmGetList
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140004fb8
cmp dword [rbp + 0x134], 0
jne 0x140004fd4
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140005118
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rbp + 4], eax
mov dword [rbp + 0x24], 0
jmp 0x140004ff7
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x154]
cmp dword [rbp + 0x24], eax
jae 0x1400050cd
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x29c
mov rcx, qword [rbp + 0x178]
mov edx, dword [rbp + 4]
cmp dword [rcx + rax], edx
jne 0x14000503c
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140005118
mov qword [rbp + 0x1b8], 0
mov rax, qword [0x140015078]
mov rax, qword [rax]
mov qword [rbp + 0x198], rax
jmp 0x14000506b
mov rax, qword [rbp + 0x198]
mov rax, qword [rax]
mov qword [rbp + 0x198], rax
mov rax, qword [0x140015078]
cmp qword [rbp + 0x198], rax
je 0x1400050c8
mov rax, qword [rbp + 0x198]
sub rax, 8
mov qword [rbp + 0x1b8], rax
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x29c
mov rcx, qword [rbp + 0x178]
mov rdx, qword [rbp + 0x1b8]
mov edx, dword [rdx]
cmp dword [rcx + rax], edx
jne 0x1400050c6
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140005118
jmp 0x14000505a
jmp 0x140004fef
xor r8d, r8d
mov edx, 1
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmShutdown
test eax, eax
jne 0x1400050ed
mov dword [rbp + 0x284], 1
jmp 0x1400050f7
mov dword [rbp + 0x284], 0
mov eax, dword [rbp + 0x284]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbp + 0x64]
call sub.RstrtMgr.DLL_RmEndSession
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000e040]
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret