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

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400dc354
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c30]
mov eax, 0x1d30
call fcn.140169730
sub rsp, rax
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x1c20], rax
mov rdi, rdx
mov qword [rbp - 0x80], rcx
lea r8, str.Enter_GetProcessesUsingFile__
lea r12, str.SetupUtils
mov rdx, r12
mov ecx, 1
call fcn.140065bb0
xor ebx, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400dc3da
lea r8, str.GetProcessesUsingFile____file_doesnt_exist
mov rdx, r12
lea ecx, [rbx + 1]
call fcn.140065bb0
mov eax, 0x80070002
jmp 0x1400dc70e
mov r8d, 1
lea rdx, [0x1403621bc]
mov rcx, rdi
call fcn.14001b664
xor edx, edx
lea r8d, [rdx + 0x42]
lea rcx, [rbp + 0x19c0]
call fcn.14003a220
lea r8, [rbp + 0x19c0]
xor edx, edx
lea rcx, [rbp - 0x74]
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x1400dc64f
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x80]
lea edx, [rax + 1]
mov ecx, dword [rbp - 0x74]
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x1400dc623
and dword [rbp - 0x70], ebx
mov dword [rbp - 0x78], 0xa
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x70]
mov ecx, dword [rbp - 0x74]
call sub.RstrtMgr.DLL_RmGetList
test eax, eax
jne 0x1400dc61a
mov ecx, dword [rbp - 0x78]
cmp ecx, 0xa
ja 0x1400dc61a
xor esi, esi
test ecx, ecx
je 0x1400dc645
mov eax, esi
imul r14, rax, 0x29c
mov r8d, dword [rbp + r14 - 0x60]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400dc5e5
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a10]
call fcn.14003a220
mov r9d, 0x104
lea r8, [rbp + 0x1a10]
xor edx, edx
mov rcx, r15
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400dc5b2
xor r8d, r8d
lea rdx, [rbp + 0x1a10]
lea rcx, [rsp + 0x60]
call fcn.14010aaec
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400dc505
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140019e88
nop
lea rcx, [rsp + 0x60]
call fcn.14001b814
mov r8d, 1
lea rdx, [0x1403621bc]
mov rcx, rdi
call fcn.140019e88
mov r12d, dword [rbp + r14 - 0x60]
xor r8d, r8d
lea rdx, [rbp + 0x1a10]
lea rcx, [rsp + 0x40]
call fcn.14010aaec
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x1400dc556
mov r14, qword [rax]
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14010aaec
nop
cmp qword [rax + 0x18], 8
jb 0x1400dc572
mov rax, qword [rax]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r14
mov r9, rax
lea r8, str.File__ls_is_in_use_by__ls_pid:_ld_
lea r12, str.SetupUtils
mov rdx, r12
mov ecx, 1
call fcn.140065bb0
nop
lea rcx, [rsp + 0x60]
call fcn.14001b814
nop
lea rcx, [rsp + 0x40]
call fcn.14001b814
jmp 0x1400dc5da
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
lea r8, str.GetModuleFileNameEx___failed_with_result:_0x_X
mov rdx, r12
mov ecx, ebx
call fcn.140064998
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400dc60d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
lea r8, str.OpenProcess___failed_with_result:_0x_X
mov rdx, r12
mov ecx, ebx
call fcn.140064998
inc esi
cmp esi, dword [rbp - 0x78]
jb 0x1400dc488
jmp 0x1400dc645
lea r8, str.RmGetList___failed_with_result:_0x_X
jmp 0x1400dc62a
lea r8, str.RmRegisterResources___failed_with_result:_0x_X
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
mov rdx, r12
mov ecx, ebx
call fcn.140064998
mov ecx, dword [rbp - 0x74]
call sub.RstrtMgr.DLL_RmEndSession
jmp 0x1400dc671
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
lea r8, str.RmStartSession___failed_with_result:_0x_X
mov rdx, r12
mov ecx, ebx
call fcn.140064998
cmp qword [rdi + 0x10], 1
jbe 0x1400dc6bd
cmp qword [rdi + 0x18], 8
jb 0x1400dc682
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14010aaec
nop
cmp qword [rax + 0x18], 8
jb 0x1400dc69e
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
mov r9, rax
lea r8, str.File__ls_is_in_use_by_processes___ls_
mov rdx, r12
mov ecx, 1
call fcn.140065bb0
nop
jmp 0x1400dc6f1
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14010aaec
nop
cmp qword [rax + 0x18], 8
jb 0x1400dc6d9
mov rax, qword [rax]
mov r9, rax
lea r8, str.File__ls_is_not_being_used_by_any_process
mov rdx, r12
mov ecx, 1
call fcn.140065bb0
nop
lea rcx, [rsp + 0x40]
call fcn.14001b814
lea r8, str.GetProcessesUsingFile_failed_
mov rdx, r12
mov ecx, ebx
call fcn.140064998
mov eax, ebx
mov rcx, qword [rbp + 0x1c20]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x1d30]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret