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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573f31
mov eax, dword fs:[0]
push eax
mov eax, 0x3710
call fcn.0052fd80
mov eax, dword [0x5ebea4]
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 0x46dd08
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 0x46db82
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x371c]
call fcn.0044a910
lea ecx, [ebp - 0x371c]
mov dword [ebp - 4], 0
call fcn.0046c2e0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x3708]
cmp edx, 8
jb 0x46dbf9
mov ecx, dword [ebp - 0x371c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dbef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e0c0
push edx
push ecx
call fcn.0052f5d6
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 0x46e0b9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x46dca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x36dc]
push str.____Unlock_file_failed:__s._Code__lu.
call fcn.00463ab0
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ecx, 8
jb 0x46dc7f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46dc75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e0c0
mov eax, edx
push ecx
push eax
call fcn.0052f5d6
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.0052f5d6
add esp, 8
xor eax, eax
jmp 0x46ddc7
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x46dcdf
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46dcd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e0c0
mov eax, edx
push ecx
push eax
call fcn.0052f5d6
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.0052f5d6
add esp, 8
mov eax, 1
jmp 0x46ddc7
cmp dword [0x5f3340], 0
je 0x46e0b9
xor edi, edi
mov dword [ebp - 0x36e0], edi
cmp dword [ebp - 0x36e0], 0x42
mov dword [ebp - 0x36e4], edi
jae 0x46dd51
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 0x46dd30
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 0x46dd81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmStartSession_failed._Error___i._Code__lu.
call fcn.00463ab0
add esp, 0xc
jmp 0x46ddc5
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 0x46dde2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmRegisterResources_failed._Error___i._Code__lu.
call fcn.00463ab0
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.0052f395
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 0x46de29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmGetList_failed._Error___i._Code__lu.
jmp 0x46ddb1
xor ecx, ecx
mov dword [ebp - 0x36e8], ecx
cmp dword [ebp - 0x348c], ecx
jbe 0x46ddb9
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 0x46e079
cmp eax, 0x3e8
je 0x46e079
mov esi, dword [ebp - 0x36e0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x46e079
mov ecx, dword [0x5f31dc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x46dea6
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x46e0ad
mov eax, dword [eax]
cmp eax, ecx
jne 0x46de95
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 0x46df49
lea eax, [ebp - 0x36d8]
mov dword [ebp - 0x36d8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46df42
cmp dword [ebp - 0x36d0], esi
je 0x46df11
lea eax, [ebp - 0x36d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46def5
jmp 0x46df42
lea ecx, [ebp - 0x36b4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46df20
sub ecx, edx
lea eax, [ebp - 0x36b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34a4]
call fcn.0044a910
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.00463ab0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x36f0]
cmp edx, 8
jb 0x46dfde
mov ecx, dword [ebp - 0x3704]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dfd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e0c0
push edx
push ecx
call fcn.0052f5d6
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 0x46e026
mov edi, 1
push 0x3e8
mov dword [ebp - 0x36e4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46e07f
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 0x46e079
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 0x46e072
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.____Failed_to_kill_process_pid:_i._Code__lu.
call fcn.00463ab0
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 0x46de50
jmp 0x46ddb9
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x46ddc7
call fcn.0054b071
int3