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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573671
mov eax, dword fs:[0]
push eax
mov eax, 0x3710
call fcn.0052f5a0
mov eax, dword [0x5eaea4]
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 0x46d5a8
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 0x46d422
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x371c]
call fcn.0044a8b0
lea ecx, [ebp - 0x371c]
mov dword [ebp - 4], 0
call fcn.0046bb80
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x3708]
cmp edx, 8
jb 0x46d499
mov ecx, dword [ebp - 0x371c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d48f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d960
push edx
push ecx
call fcn.0052edf8
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 0x46d959
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x46d545
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x36dc]
push str.____Unlock_file_failed:__s._Code__lu.
call fcn.00463390
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ecx, 8
jb 0x46d51f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46d515
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d960
mov eax, edx
push ecx
push eax
call fcn.0052edf8
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.0052edf8
add esp, 8
xor eax, eax
jmp 0x46d667
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x46d57f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46d575
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d960
mov eax, edx
push ecx
push eax
call fcn.0052edf8
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.0052edf8
add esp, 8
mov eax, 1
jmp 0x46d667
cmp dword [0x5f230c], 0
je 0x46d959
xor edi, edi
mov dword [ebp - 0x36e0], edi
cmp dword [ebp - 0x36e0], 0x42
mov dword [ebp - 0x36e4], edi
jae 0x46d5f1
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 0x46d5d0
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 0x46d621
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmStartSession_failed._Error___i._Code__lu.
call fcn.00463390
add esp, 0xc
jmp 0x46d665
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 0x46d682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmRegisterResources_failed._Error___i._Code__lu.
call fcn.00463390
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.0052ebb7
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 0x46d6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmGetList_failed._Error___i._Code__lu.
jmp 0x46d651
xor ecx, ecx
mov dword [ebp - 0x36e8], ecx
cmp dword [ebp - 0x348c], ecx
jbe 0x46d659
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 0x46d919
cmp eax, 0x3e8
je 0x46d919
mov esi, dword [ebp - 0x36e0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x46d919
mov ecx, dword [0x5f21ac]
mov eax, dword [ecx]
cmp eax, ecx
je 0x46d746
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x46d94d
mov eax, dword [eax]
cmp eax, ecx
jne 0x46d735
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 0x46d7e9
lea eax, [ebp - 0x36d8]
mov dword [ebp - 0x36d8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46d7e2
cmp dword [ebp - 0x36d0], esi
je 0x46d7b1
lea eax, [ebp - 0x36d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46d795
jmp 0x46d7e2
lea ecx, [ebp - 0x36b4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d7c0
sub ecx, edx
lea eax, [ebp - 0x36b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34a4]
call fcn.0044a8b0
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.00463390
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x36f0]
cmp edx, 8
jb 0x46d87e
mov ecx, dword [ebp - 0x3704]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d874
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d960
push edx
push ecx
call fcn.0052edf8
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 0x46d8c6
mov edi, 1
push 0x3e8
mov dword [ebp - 0x36e4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46d91f
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 0x46d919
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 0x46d912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.____Failed_to_kill_process_pid:_i._Code__lu.
call fcn.00463390
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 0x46d6f0
jmp 0x46d659
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x46d667
call fcn.0054a8a1
int3