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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c0
mov edi, edx
xor edx, edx
mov ebx, ecx
mov ecx, 0x21
mov dword [esp + 4], 0
inc edx
call fcn.0045e7e9
lea ebp, [esp + 0xc0]
add edi, ebx
mov esi, edx
mov dword [ebp], 1
mov dword [ebp + 4], ebx
mov dword [ebp + 8], edi
lea edi, [esp + 0x30]
mov edx, ebp
mov word [ebp + 0xc], 0
mov ecx, edi
call fcn.0045e500
mov eax, dword [edi + 4]
cmp dword [edi], 0
mov dword [esp + 0x2c], eax
je 0x45ef44
push eax
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
lea eax, [esp + 4]
push esi
push 0
push eax
call sub.rstrtmgr.dll_RmStartSession
xor ebx, ebx
test eax, eax
jne 0x45f17e
lea eax, [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
push eax
push 1
push dword [esp + 0x1c]
call sub.rstrtmgr.dll_RmRegisterResources
test eax, eax
jne 0x45f175
xor ebx, ebx
lea edx, [esp + 0x14]
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
mov dword [eax], ebx
mov dword [ecx], ebx
mov dword [edx], ebx
push edx
push ebx
push ecx
push eax
push dword [esp + 0x14]
call sub.rstrtmgr.dll_RmGetList
cmp eax, 0xea
jne 0x45f175
mov eax, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 0x10], eax
push 0x200
push ebx
push ebp
call fcn.00462900
add esp, 0xc
push 0x90
push ebx
push edi
call fcn.00462900
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
je 0x45f0a6
cmp eax, 0x310dcb
ja 0x45f19a
imul ebx, eax, 0x29c
test ebx, ebx
js 0x45f19a
mov al, byte [0x48fdb4]
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
call fcn.0045a4d0
test eax, eax
je 0x45f19f
mov ecx, dword [esp]
cmp ecx, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
jb 0x45f062
mov dword [esp + 0x18], esi
lea esi, [ecx - 1]
mov edi, 0x29c
mov ebx, eax
mov dword [esp + 0x28], eax
push edi
push 0
push ebx
add ebx, edi
call fcn.00462900
add esp, 0xc
dec esi
jne 0x45f039
mov ecx, dword [esp]
lea edi, [esp + 0x30]
lea eax, [ecx - 1]
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x45f0d0
mov esi, dword [esp + 0x18]
mov eax, ebx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [eax + 0xc]
push 0x200
push ebp
push ecx
mov ebx, eax
call fcn.00462380
add esp, 0xc
add ebx, 0x20c
push 0x90
push edi
push ebx
call fcn.00462380
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
jmp 0x45f0df
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, 4
mov dword [esp + 0xc], 0
jmp 0x45f0df
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp], 0
lea edi, [esp + 0x14]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push edi
mov edi, eax
push eax
push edx
push ecx
push dword [esp + 0x14]
call sub.rstrtmgr.dll_RmGetList
xor ebx, ebx
test eax, eax
mov ebp, 1
jne 0x45f160
cmp dword [esp + 8], 0
je 0x45f160
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_GetProcessId]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x45f14a
mov ebx, esi
imul edx, ecx, 0x29c
xor ecx, ecx
mov esi, edi
cmp dword [esi], eax
movzx ecx, cl
lea esi, [esi + 0x29c]
cmove ecx, ebp
add edx, 0xfffffd64
jne 0x45f12d
test cl, 1
mov esi, ebx
jne 0x45f15e
push 0
push 1
push dword [esp + 0xc]
call sub.rstrtmgr.dll_RmShutdown
test eax, eax
sete bl
jmp 0x45f160
xor ebx, ebx
cmp dword [esp], 0
je 0x45f175
push edi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esp + 4]
call sub.rstrtmgr.dll_RmEndSession
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
add esp, 0x2c0
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00414380
mov ecx, 4
mov edx, ebx
call fcn.0046d190