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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571111
mov eax, dword fs:[0]
push eax
mov eax, 0x3710
call fcn.0052d270
mov eax, dword [0x5e8ea4]
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 0x46b428
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 0x46b2a2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x371c]
call fcn.0044a890
lea ecx, [ebp - 0x371c]
mov dword [ebp - 4], 0
call fcn.00469a00
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x3708]
cmp edx, 8
jb 0x46b319
mov ecx, dword [ebp - 0x371c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b30f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b7e0
push edx
push ecx
call fcn.0052cac7
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 0x46b7d9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x46b3c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x36dc]
push str.____Unlock_file_failed:__s._Code__lu.
call fcn.004612c0
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ecx, 8
jb 0x46b39f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46b395
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b7e0
mov eax, edx
push ecx
push eax
call fcn.0052cac7
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.0052cac7
add esp, 8
xor eax, eax
jmp 0x46b4e7
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x46b3ff
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46b3f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b7e0
mov eax, edx
push ecx
push eax
call fcn.0052cac7
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.0052cac7
add esp, 8
mov eax, 1
jmp 0x46b4e7
cmp dword [0x5f02e8], 0
je 0x46b7d9
xor edi, edi
mov dword [ebp - 0x36e0], edi
cmp dword [ebp - 0x36e0], 0x42
mov dword [ebp - 0x36e4], edi
jae 0x46b471
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 0x46b450
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 0x46b4a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmStartSession_failed._Error___i._Code__lu.
call fcn.004612c0
add esp, 0xc
jmp 0x46b4e5
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 0x46b502
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmRegisterResources_failed._Error___i._Code__lu.
call fcn.004612c0
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.0052c886
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 0x46b549
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmGetList_failed._Error___i._Code__lu.
jmp 0x46b4d1
xor ecx, ecx
mov dword [ebp - 0x36e8], ecx
cmp dword [ebp - 0x348c], ecx
jbe 0x46b4d9
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 0x46b799
cmp eax, 0x3e8
je 0x46b799
mov esi, dword [ebp - 0x36e0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x46b799
mov ecx, dword [0x5f0188]
mov eax, dword [ecx]
cmp eax, ecx
je 0x46b5c6
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x46b7cd
mov eax, dword [eax]
cmp eax, ecx
jne 0x46b5b5
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 0x46b669
lea eax, [ebp - 0x36d8]
mov dword [ebp - 0x36d8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46b662
cmp dword [ebp - 0x36d0], esi
je 0x46b631
lea eax, [ebp - 0x36d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46b615
jmp 0x46b662
lea ecx, [ebp - 0x36b4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b640
sub ecx, edx
lea eax, [ebp - 0x36b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34a4]
call fcn.0044a890
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.004612c0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x36f0]
cmp edx, 8
jb 0x46b6fe
mov ecx, dword [ebp - 0x3704]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b6f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b7e0
push edx
push ecx
call fcn.0052cac7
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 0x46b746
mov edi, 1
push 0x3e8
mov dword [ebp - 0x36e4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46b79f
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 0x46b799
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 0x46b792
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.____Failed_to_kill_process_pid:_i._Code__lu.
call fcn.004612c0
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 0x46b570
jmp 0x46b4d9
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x46b4e7
call fcn.00548571
int3