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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cc81
mov eax, dword fs:[0]
push eax
mov eax, 0x3710
call fcn.00537550
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 0x474bd8
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 0x474a52
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x371c]
call fcn.0044b740
lea ecx, [ebp - 0x371c]
mov dword [ebp - 4], 0
call fcn.004731b0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x3708]
cmp edx, 8
jb 0x474ac9
mov ecx, dword [ebp - 0x371c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474f90
push edx
push ecx
call fcn.00536da7
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 0x474f89
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x474b75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x36dc]
push str.____Unlock_file_failed:__s._Code__lu.
call fcn.0046b090
mov ecx, dword [esi + 0x18]
add esp, 0xc
cmp ecx, 8
jb 0x474b4f
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x474b45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474f90
mov eax, edx
push ecx
push eax
call fcn.00536da7
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.00536da7
add esp, 8
xor eax, eax
jmp 0x474c97
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x474baf
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x474ba5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474f90
mov eax, edx
push ecx
push eax
call fcn.00536da7
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.00536da7
add esp, 8
mov eax, 1
jmp 0x474c97
cmp dword [0x5ffb28], 0
je 0x474f89
xor edi, edi
mov dword [ebp - 0x36e0], edi
cmp dword [ebp - 0x36e0], 0x42
mov dword [ebp - 0x36e4], edi
jae 0x474c21
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 0x474c00
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 0x474c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmStartSession_failed._Error___i._Code__lu.
call fcn.0046b090
add esp, 0xc
jmp 0x474c95
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 0x474cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmRegisterResources_failed._Error___i._Code__lu.
call fcn.0046b090
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.00536b66
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 0x474cf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____RmGetList_failed._Error___i._Code__lu.
jmp 0x474c81
xor ecx, ecx
mov dword [ebp - 0x36e8], ecx
cmp dword [ebp - 0x348c], ecx
jbe 0x474c89
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 0x474f49
cmp eax, 0x3e8
je 0x474f49
mov esi, dword [ebp - 0x36e0]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x474f49
mov ecx, dword [0x5ff988]
mov eax, dword [ecx]
cmp eax, ecx
je 0x474d76
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x474f7d
mov eax, dword [eax]
cmp eax, ecx
jne 0x474d65
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 0x474e19
lea eax, [ebp - 0x36d8]
mov dword [ebp - 0x36d8], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x474e12
cmp dword [ebp - 0x36d0], esi
je 0x474de1
lea eax, [ebp - 0x36d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x474dc5
jmp 0x474e12
lea ecx, [ebp - 0x36b4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474df0
sub ecx, edx
lea eax, [ebp - 0x36b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34a4]
call fcn.0044b740
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.0046b090
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x36f0]
cmp edx, 8
jb 0x474eae
mov ecx, dword [ebp - 0x3704]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474ea4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474f90
push edx
push ecx
call fcn.00536da7
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 0x474ef6
mov edi, 1
push 0x3e8
mov dword [ebp - 0x36e4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x474f4f
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 0x474f49
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 0x474f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.____Failed_to_kill_process_pid:_i._Code__lu.
call fcn.0046b090
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 0x474d20
jmp 0x474c89
push dword [ebp - 0x3488]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x474c97
call fcn.00552841
int3