Function at 0x406f00
Capabilities:
Create restart manager session
Enumerate processes that use resource
Move file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a88
call fcn.00414fd0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1a84], ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1a70], ecx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f30
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 0xa]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1a70]
mov ebx, eax
mov dword [ebp - 0x1a74], ebx
mov esi, ebx
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x406f72
mov edx, 0x428560
mov esi, edx
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406f90
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406fa0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x1a70]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
push 8
push 0
push 0
push ebx
push dword [ebp - 0x1a70]
call esi
test eax, eax
jne 0x407119
push 0x42
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00409790
add esp, 0xc
mov dword [ebp - 0x1a78], 0
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x1a78]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4070fe
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1a70]
push eax
push 1
push dword [ebp - 0x1a78]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4070f2
lea eax, [ebp - 0x1a88]
mov dword [ebp - 0x1a80], 0xa
push eax
lea eax, [ebp - 0x1a6c]
push eax
lea eax, [ebp - 0x1a80]
push eax
lea eax, [ebp - 0x1a7c]
push eax
push dword [ebp - 0x1a78]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x4070f2
xor esi, esi
cmp dword [ebp - 0x1a7c], esi
jbe 0x4070ec
lea edi, [ebp - 0x1a6c]
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
jne 0x4070a0
inc esi
add edi, 0x29c
cmp esi, dword [ebp - 0x1a7c]
jb 0x407083
jmp 0x4070e6
imul eax, esi, 0x29c
mov eax, dword [ebp + eax - 0x17e0]
cmp eax, 4
je 0x4070e6
cmp eax, 0x3e8
je 0x4070e6
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4070e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1a74]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
push dword [ebp - 0x1a78]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
push 8
push 0
push 0
push ebx
push dword [ebp - 0x1a70]
call esi
test eax, eax
jne 0x407119
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407138
mov ecx, dword [ebp - 0x1a84]
push ebx
call fcn.00407210
test eax, eax
je 0x407138
push 8
push 0
push 0
push dword [ebp - 0x1a70]
push ebx
call esi
test ebx, ebx
je 0x40714c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407f82
mov esp, ebp
pop ebp
ret 4