Function at 0x474f00
Capabilities:
Create restart manager session
Enumerate processes
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d121
mov eax, dword fs:[0]
push eax
mov eax, 0x3710
call fcn.005379c0
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x36dc], esi
cmp edx, 1
jne 0x4750e8
xor eax, eax
mov dword [ebp - 0x370c], 0
mov dword [ebp - 0x3708], 7
lea edx, [ecx + 2]
mov word [ebp - 0x371c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474f62
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x371c]
call fcn.0044b750
lea ecx, [ebp - 0x371c]
mov dword [ebp - 4], 0
call fcn.004736b0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x3708]
cmp edx, 8
jb 0x474fd9
mov ecx, dword [ebp - 0x371c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474fcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4754a0
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0x370c], 0
mov dword [ebp - 0x3708], 7
mov word [ebp - 0x371c], ax
test esi, esi
je 0x475499
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x475085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x36dc]
push str._____Unlock_file_failed:__s._Code__lu.
call fcn.0046b580
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ecx, 8
jb 0x47505f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x475055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4754a0
mov eax, edx
push ecx
push eax
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x1c
mov dword [esi + 0x18], 7
push esi
mov word [esi + 4], ax
call fcn.00537216
add esp, 8
xor eax, eax
jmp 0x4751a7
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x4750bf
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4750b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4754a0
mov eax, edx
push ecx
push eax
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x1c
mov dword [esi + 0x18], 7
push esi
mov word [esi + 4], ax
call fcn.00537216
add esp, 8
mov eax, 1
jmp 0x4751a7
cmp dword [0x5ffb48], 0
je 0x475499
xor edi, edi
mov dword [ebp - 0x36e0], edi
cmp dword [ebp - 0x36e0], 0x42
mov dword [ebp - 0x36e4], edi
jae 0x475131
nop dword [eax]
mov eax, dword [ebp - 0x36e0]
mov byte [ebp + eax - 0x54], 0
mov eax, dword [ebp - 0x36e0]
inc eax
mov dword [ebp - 0x36e0], eax
cmp dword [ebp - 0x36e0], 0x42
jb 0x475110
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x3488]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
test esi, esi
je 0x475161
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._____RmStartSession_failed._Error___i._Code__lu.
call fcn.0046b580
add esp, 0xc
jmp 0x4751a5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x36dc]
push eax
push 1
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov esi, eax
test esi, esi
je 0x4751c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._____RmRegisterResources_failed._Error___i._Code__lu.
call fcn.0046b580
add esp, 0xc
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34a8]
mov dword [ebp - 0x348c], 0x14
push eax
lea eax, [ebp - 0x3484]
push eax
lea eax, [ebp - 0x348c]
push eax
lea eax, [ebp - 0x34ac]
push eax
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov esi, eax
test esi, esi
je 0x475209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._____RmGetList_failed._Error___i._Code__lu.
jmp 0x475191
xor ecx, ecx
mov dword [ebp - 0x36e8], ecx
cmp dword [ebp - 0x348c], ecx
jbe 0x475199
lea eax, [ebp - 0x3484]
mov dword [ebp - 0x36e0], eax
nop word [eax + eax]
add eax, 0xc
mov dword [ebp - 0x36ec], eax
mov eax, dword [eax + 0x280]
cmp eax, 4
je 0x475459
cmp eax, 0x3e8
je 0x475459
mov esi, dword [ebp - 0x36e0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x475459
mov ecx, dword [0x5ff9a8]
mov eax, dword [ecx]
cmp eax, ecx
je 0x475286
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x47548d
mov eax, dword [eax]
cmp eax, ecx
jne 0x475275
xor eax, eax
mov dword [ebp - 0x3494], 0
mov dword [ebp - 0x3490], 7
mov word [ebp - 0x34a4], ax
push eax
push 2
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x475329
lea eax, [ebp - 0x36d8]
mov dword [ebp - 0x36d8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x475322
cmp dword [ebp - 0x36d0], esi
je 0x4752f1
lea eax, [ebp - 0x36d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4752d5
jmp 0x475322
lea ecx, [ebp - 0x36b4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475300
sub ecx, edx
lea eax, [ebp - 0x36b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34a4]
call fcn.0044b750
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x34a4]
movups xmmword [ebp - 0x3704], xmm0
movq xmm0, qword [ebp - 0x3494]
movq qword [ebp - 0x36f4], xmm0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x3704]
cmp dword [ebp - 0x3490], 8
push esi
cmovae eax, dword [ebp - 0x34a4]
push eax
push dword [ebp - 0x36ec]
push str.___Killing_blocking_process:__s___s___pid:_i_
call fcn.0046b580
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x36f0]
cmp edx, 8
jb 0x4753be
mov ecx, dword [ebp - 0x3704]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4753b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4754a0
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0x36f4], 0
push eax
push 1
push dword [ebp - 0x3488]
mov dword [ebp - 0x36f0], 7
mov word [ebp - 0x3704], ax
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
test eax, eax
jne 0x475406
mov edi, 1
push 0x3e8
mov dword [ebp - 0x36e4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47545f
mov edi, dword [ebp - 0x36e0]
push dword [edi]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x475459
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x36e4], ecx
test eax, eax
jne 0x475452
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str._____Failed_to_kill_process_pid:_i._Code__lu.
call fcn.0046b580
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x36e4]
inc dword [ebp - 0x36e8]
mov eax, dword [ebp - 0x36e0]
mov ecx, dword [ebp - 0x36e8]
add eax, 0x29c
mov dword [ebp - 0x36e0], eax
cmp ecx, dword [ebp - 0x348c]
jb 0x475230
jmp 0x475199
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x4751a7
call fcn.00552cb1
int3