Function at 0x1400cecbc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x510
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401543b0]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x68], r8
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor r13d, r13d
mov edi, r13d
lea esi, [r13 + 1]
lea rcx, str.AsrPerformBackup
call fcn.140008368
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
xor edx, edx
mov r8d, 0x228
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x70], r13
mov eax, r13d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rax
mov r12d, r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call sub.msvcrt.dll_memset
lea r14, [0x140129d80]
xor eax, eax
test rbx, rbx
jne 0x1400cede1
mov esi, eax
lea edi, [rbx + 0x57]
lea rbx, [0x140154180]
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4aa
test byte [rcx + 0x1c], 8
je 0x1400cf4aa
lea edx, [rax + 0x11]
lea rax, str.ppwszXmlDocOut
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
jmp 0x1400cf4aa
call fcn.1400dc720
call fcn.1400ddf2c
xor ebx, ebx
test eax, eax
jne 0x1400cee3d
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
lea rbx, [0x140154180]
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x12
lea rax, str.GetLastError__
mov r8, r14
mov rcx, qword [0x140154180]
jmp 0x1400cedce
lea rcx, [rsp + 0x38]
call fcn.1400dcc00
test eax, eax
jne 0x1400ceea5
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
lea rbx, [0x140154180]
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cee9b
test byte [rax + 0x1c], 8
je 0x1400cee9b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x13
lea rax, str.GetLastError__
mov qword [rsp + 0x20], rax
mov r8, r14
mov rcx, qword [0x140154180]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
mov r13, qword [rsp + 0x38]
jmp 0x1400cf4aa
mov r13, qword [rsp + 0x38]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400ceeb1
cmp rax, 2
ja 0x1400cef05
mov esi, ebx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
lea rbx, [0x140154180]
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4aa
test byte [rcx + 0x1c], 8
je 0x1400cf4aa
lea edx, [r9 + 9]
lea rax, str.ERROR_BAD_FORMAT
lea r8, [0x140129d80]
jmp 0x1400cedce
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400cef08
cmp word [r13 + rax*2 - 2], 0x5c
jne 0x1400cef30
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400cef1f
mov word [r13 + rax*2 - 2], bx
mov eax, 0x3f
mov word [r13 + 2], ax
lea rbx, [0x140154180]
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cef69
test byte [rcx + 0x1c], 2
je 0x1400cef69
lea edx, [rax - 0x2a]
mov r9, r13
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc238
mov rdx, r13
mov rcx, r15
call fcn.1400dd728
xor ecx, ecx
test eax, eax
jne 0x1400cefbf
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x16
lea rax, str.MwszStringAppend_ppmwszSelectedCriticalVolumes__pwszBootVolGuidName_
lea r8, [0x140129d80]
jmp 0x1400cee34
lea rcx, [rsp + 0x40]
call fcn.1400dcdbc
mov r12, qword [rsp + 0x40]
xor ecx, ecx
test eax, eax
jne 0x1400cf045
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r15d, eax
call fcn.1400d4688
cmp eax, 2
je 0x1400cf131
xor r14d, r14d
mov esi, r14d
mov r12d, 0x80042416
mov ecx, r12d
call fcn.1400de1e4
mov edi, eax
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf03b
test byte [rcx + 0x1c], 8
je 0x1400cf03b
lea edx, [r14 + 0x17]
mov dword [rsp + 0x28], r15d
lea rax, str.VSS_E_ASRERROR_SYSTEM_PARTITION_HIDDEN
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400ceaf0
mov r12, qword [rsp + 0x40]
jmp 0x1400cf4ad
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400cf048
cmp rax, 2
ja 0x1400cf086
mov esi, ecx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4aa
test byte [rcx + 0x1c], 8
je 0x1400cf4aa
lea edx, [r9 + 0xd]
jmp 0x1400ceef2
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400cf089
cmp word [r12 + rax*2 - 2], 0x5c
jne 0x1400cf0af
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400cf09f
mov word [r12 + rax*2 - 2], cx
mov eax, 0x3f
mov word [r12 + 2], ax
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf0e2
test byte [rcx + 0x1c], 2
je 0x1400cf0e2
lea edx, [rax - 0x26]
mov r9, r12
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc238
mov rdx, r12
mov rcx, r15
call fcn.1400dd728
xor ecx, ecx
test eax, eax
jne 0x1400cf131
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x1a
lea rax, str.MwszStringAppend_ppmwszSelectedCriticalVolumes__pwszSysVolGuidName_
jmp 0x1400cefb3
lea rcx, [rbp + 0x1f0]
call fcn.1400df8b4
mov r15d, eax
xor edx, edx
test eax, eax
je 0x1400cf25b
cmp word [rbp + 0x1f0], dx
je 0x1400cf25b
lea rax, [rbp + 0x1f0]
inc r14
cmp word [rax + r14*2], dx
jne 0x1400cf15e
cmp r14d, 2
ja 0x1400cf19c
mov esi, edx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4aa
test byte [rcx + 0x1c], 8
je 0x1400cf4aa
lea edx, [r9 + 0x10]
jmp 0x1400ceef2
lea ecx, [r14 - 1]
add rcx, rcx
cmp word [rbp + rcx + 0x1f0], 0x5c
jne 0x1400cf1c7
cmp rcx, 0x208
jae 0x1400cf1c1
mov word [rbp + rcx + 0x1f0], dx
jmp 0x1400cf1c7
call fcn.140020338
int3
mov eax, 0x3f
mov word [rbp + 0x1f2], ax
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf1ff
test byte [rcx + 0x1c], 2
je 0x1400cf1ff
lea edx, [rax - 0x23]
lea r9, [rbp + 0x1f0]
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc238
lea rdx, [rbp + 0x1f0]
mov r14, qword [rsp + 0x60]
mov rcx, r14
call fcn.1400dd728
xor ecx, ecx
test eax, eax
jne 0x1400cf2f3
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x1d
lea rax, str.MwszStringAppend__ppmwszSelectedCriticalVolumes__wszWinReVolumeGuid__
jmp 0x1400cefb3
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf292
test byte [rax + 0x1c], 2
je 0x1400cf292
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x1e
lea r8, [0x140129d80]
mov rcx, qword [0x140154180]
mov rcx, qword [rcx + 0x10]
call fcn.1400ceb80
test r15d, r15d
jne 0x1400cf2ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r9d, [r15 + 0xe]
cmp eax, r9d
jne 0x1400cf2ee
xor r14d, r14d
mov esi, r14d
mov edi, r9d
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4ad
test byte [rcx + 0x1c], 8
je 0x1400cf4ad
lea edx, [r15 + 0x1f]
lea rax, str.ERROR_OUTOFMEMORY
mov qword [rsp + 0x20], rax
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
jmp 0x1400cf4ad
mov r14, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x58]
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x68]
mov r8, r14
lea rcx, [rbp - 0x60]
call fcn.1400dc0a4
xor ecx, ecx
test eax, eax
jne 0x1400cf352
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x20
mov r9d, eax
lea rax, str.GetLastError__
jmp 0x1400cefb3
lea rcx, [rsp + 0x50]
call fcn.1400e41f8
xor ecx, ecx
test eax, eax
jne 0x1400cf393
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x21
jmp 0x1400cf343
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x68]
mov r8, qword [r14]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.1400ce46c
xor ecx, ecx
test eax, eax
jne 0x1400cf3f2
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf4aa
test byte [rax + 0x1c], 8
je 0x1400cf4aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x22
lea rax, str.asr_ldm.InitializeForBackup__asr_sys__ppmwszSelectedCriticalVolumes__rgIncludedDisks__cIncludedDisks__
jmp 0x1400cefb3
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400cf590
xor ecx, ecx
test eax, eax
jne 0x1400cf467
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x140154180]
cmp rax, rbx
je 0x1400cf45d
test byte [rax + 0x1c], 8
je 0x1400cf45d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x23
lea rax, str.GetLastError__
mov qword [rsp + 0x20], rax
lea r8, [0x140129d80]
mov rcx, qword [0x140154180]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0d8
mov rcx, qword [rsp + 0x48]
xor r14d, r14d
jmp 0x1400cf4b2
call fcn.1400df794
xor r14d, r14d
test eax, eax
jne 0x1400cf498
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf498
test byte [rcx + 0x1c], 4
je 0x1400cf498
lea edx, [rax + 0x24]
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400cc0b4
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rcx, r14
jmp 0x1400cf4b2
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov edx, edi
call fcn.1400dc840
test eax, eax
jne 0x1400cf4fd
mov rcx, qword [0x140154180]
cmp rcx, rbx
je 0x1400cf4fd
test byte [rcx + 0x1c], 8
je 0x1400cf4fd
lea edx, [rax + 0x25]
mov r9d, edi
lea r8, [0x140129d80]
mov rcx, qword [rcx + 0x10]
call fcn.1400ceb80
lea rcx, str.AsrPerformBackup
call fcn.1400084a8
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
lea rcx, [rsp + 0x78]
call fcn.1400cdc8c
nop
cmp qword [rsp + 0x50], r14
je 0x1400cf52f
lea rcx, [rsp + 0x50]
call fcn.1400cd43c
nop
lea rcx, [rbp - 0x60]
call fcn.1400d37ac
mov eax, esi
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14001ff30
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret