Function at 0x4492cb
Capabilities:
Check if file exists
Create restart manager session
Enumerate processes that use resource

Disassembly:
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f74bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1cd4
call fcn.004e1fd0
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str.Enter_GetProcessesUsingFile__
push 0x624458
push 1
mov dword [ebp - 0x1c88], eax
call fcn.0043e026
add esp, 0xc
xor ebx, ebx
mov esi, ebx
push dword [ebp - 0x1c88]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44934c
push str.GetProcessesUsingFile____file_doesnt_exist
push 0x624458
push 1
call fcn.0043e026
mov eax, 0x80070002
jmp 0x4496b7
push 0x624638
mov ecx, edi
call fcn.0040aaa9
push 0x42
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0041ab50
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x1c7c]
push eax
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x4495ef
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c88]
push eax
push 1
push dword [ebp - 0x1c7c]
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x4495c0
lea eax, [ebp - 0x1c84]
mov dword [ebp - 0x1c80], ebx
push eax
lea eax, [ebp - 0x1c74]
mov dword [ebp - 0x1c78], 0xa
push eax
lea eax, [ebp - 0x1c78]
push eax
lea eax, [ebp - 0x1c80]
push eax
push dword [ebp - 0x1c7c]
call sub.RstrtMgr.DLL_RmGetList
test eax, eax
jne 0x4495aa
cmp dword [ebp - 0x1c78], 0xa
ja 0x4495aa
mov dword [ebp - 0x1c94], ebx
cmp dword [ebp - 0x1c78], ebx
jbe 0x4495e2
lea ebx, [ebp - 0x1c74]
push dword [ebx]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c90], eax
test eax, eax
je 0x44955f
push 0x208
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.0041ab50
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x104
push eax
push 0
push dword [ebp - 0x1c90]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x449529
push 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x1cb0]
push eax
call fcn.004a3cc3
and dword [ebp - 4], 0
mov ecx, edi
push eax
call fcn.00412915
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1cb0]
call fcn.00405a95
push 0x624638
mov ecx, edi
call fcn.0040a742
mov eax, dword [ebx]
mov dword [ebp - 0x1c98], eax
lea eax, [ebp - 0x25c]
push 0
push eax
lea eax, [ebp - 0x1cc8]
push eax
call fcn.004a3cc3
mov dword [ebp - 0x1c8c], eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4494cc
mov eax, dword [eax]
mov dword [ebp - 0x1c8c], eax
push 0
push dword [ebp - 0x1c88]
lea eax, [ebp - 0x1cb0]
push eax
call fcn.004a3cc3
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4494ec
mov eax, dword [eax]
push dword [ebp - 0x1c98]
push dword [ebp - 0x1c8c]
push eax
push str.File__ls_is_in_use_by__ls_pid:_ld_
push 0x624458
push 1
call fcn.0043e026
add esp, 0x18
lea ecx, [ebp - 0x1cb0]
call fcn.00405a95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1cc8]
call fcn.00405a95
jmp 0x449551
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push str.GetModuleFileNameEx___failed_with_result:_0x_X
push 0x624458
push esi
call fcn.0043bfdd
add esp, 0x10
push dword [ebp - 0x1c90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x449587
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push str.OpenProcess___failed_with_result:_0x_X
push 0x624458
push esi
call fcn.0043bfdd
add esp, 0x10
mov eax, dword [ebp - 0x1c94]
add ebx, 0x29c
inc eax
mov dword [ebp - 0x1c94], eax
cmp eax, dword [ebp - 0x1c78]
jb 0x449404
xor ebx, ebx
jmp 0x4495e2
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push str.RmGetList___failed_with_result:_0x_X
jmp 0x4495d4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push str.RmRegisterResources___failed_with_result:_0x_X
push 0x624458
push esi
call fcn.0043bfdd
add esp, 0x10
push dword [ebp - 0x1c7c]
call sub.RstrtMgr.DLL_RmEndSession
jmp 0x449611
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push str.RmStartSession___failed_with_result:_0x_X
push 0x624458
push esi
call fcn.0043bfdd
add esp, 0x10
cmp dword [edi + 0x10], 1
jbe 0x44965f
cmp dword [edi + 0x14], 8
jb 0x44961f
mov edi, dword [edi]
push ebx
push dword [ebp - 0x1c88]
lea eax, [ebp - 0x1cc8]
push eax
call fcn.004a3cc3
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x449641
mov eax, dword [eax]
push edi
push eax
push str.File__ls_is_in_use_by_processes___ls_
push 0x624458
push 1
call fcn.0043e026
add esp, 0x14
lea ecx, [ebp - 0x1cc8]
jmp 0x44969c
push ebx
push dword [ebp - 0x1c88]
lea eax, [ebp - 0x1ce0]
push eax
call fcn.004a3cc3
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 4
jb 0x449681
mov eax, dword [eax]
push eax
push str.File__ls_is_not_being_used_by_any_process
push 0x624458
push 1
call fcn.0043e026
add esp, 0x10
lea ecx, [ebp - 0x1ce0]
or dword [ebp - 4], 0xffffffff
call fcn.00405a95
push str.GetProcessesUsingFile_failed_
push 0x624458
push esi
call fcn.0043bfdd
mov eax, esi
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004192c5
leave
ret 8
push ebp
mov ebp, esp
pop ebp
jmp 0x4492c9