Function at 0x1400d721c
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x68], r8
mov r15, rdx
mov qword [rsp + 0x58], 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.140007418
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x1e0], r13
xor edx, edx
mov r8d, 0x220
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x48], 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 + 0x50], rax
mov r12d, r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
xor r14d, r14d
mov word [rbp + 0x1f0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1f2]
call sub.msvcrt.dll_memset
lea r14, [0x14012eb80]
xor eax, eax
test rbx, rbx
jne 0x1400d7353
mov esi, eax
lea edi, [rbx + 0x57]
lea rbx, [0x14015a290]
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a1c
test byte [rcx + 0x1c], 8
je 0x1400d7a1c
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.1400d5cb0
jmp 0x1400d7a1c
call fcn.1400e4900
call fcn.1400e303c
xor ebx, ebx
test eax, eax
jne 0x1400d73af
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
lea rbx, [0x14015a290]
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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 [0x14015a290]
jmp 0x1400d7340
lea rcx, [rsp + 0x38]
call fcn.140005e5c
test eax, eax
jne 0x1400d7417
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
lea rbx, [0x14015a290]
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d740d
test byte [rax + 0x1c], 8
je 0x1400d740d
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 [0x14015a290]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5cb0
mov r13, qword [rsp + 0x38]
jmp 0x1400d7a1c
mov r13, qword [rsp + 0x38]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400d7423
cmp rax, 2
ja 0x1400d7477
mov esi, ebx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
lea rbx, [0x14015a290]
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a1c
test byte [rcx + 0x1c], 8
je 0x1400d7a1c
lea edx, [r9 + 9]
lea rax, str.ERROR_BAD_FORMAT
lea r8, [0x14012eb80]
jmp 0x1400d7340
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400d747a
cmp word [r13 + rax*2 - 2], 0x5c
jne 0x1400d74a2
mov rax, r14
inc rax
cmp word [r13 + rax*2], bx
jne 0x1400d7491
mov word [r13 + rax*2 - 2], bx
mov eax, 0x3f
mov word [r13 + 2], ax
lea rbx, [0x14015a290]
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d74db
test byte [rcx + 0x1c], 2
je 0x1400d74db
lea edx, [rax - 0x2a]
mov r9, r13
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5b58
mov rdx, r13
mov rcx, r15
call fcn.1400e3354
xor ecx, ecx
test eax, eax
jne 0x1400d7531
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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, [0x14012eb80]
jmp 0x1400d73a6
lea rcx, [rsp + 0x40]
call fcn.1400e4de0
mov r12, qword [rsp + 0x40]
xor ecx, ecx
test eax, eax
jne 0x1400d75b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r15d, eax
call fcn.140004ed0
cmp eax, 2
je 0x1400d76a3
xor r14d, r14d
mov esi, r14d
mov r12d, 0x80042416
mov ecx, r12d
call fcn.1400e32f8
mov edi, eax
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d75ad
test byte [rcx + 0x1c], 8
je 0x1400d75ad
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, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d8d88
mov r12, qword [rsp + 0x40]
jmp 0x1400d7a1f
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400d75ba
cmp rax, 2
ja 0x1400d75f8
mov esi, ecx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a1c
test byte [rcx + 0x1c], 8
je 0x1400d7a1c
lea edx, [r9 + 0xd]
jmp 0x1400d7464
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400d75fb
cmp word [r12 + rax*2 - 2], 0x5c
jne 0x1400d7621
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x1400d7611
mov word [r12 + rax*2 - 2], cx
mov eax, 0x3f
mov word [r12 + 2], ax
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7654
test byte [rcx + 0x1c], 2
je 0x1400d7654
lea edx, [rax - 0x26]
mov r9, r12
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5b58
mov rdx, r12
mov rcx, r15
call fcn.1400e3354
xor ecx, ecx
test eax, eax
jne 0x1400d76a3
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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 0x1400d7525
lea rcx, [rbp + 0x1f0]
call fcn.140005c10
mov r15d, eax
xor edx, edx
test eax, eax
je 0x1400d77cd
cmp word [rbp + 0x1f0], dx
je 0x1400d77cd
lea rax, [rbp + 0x1f0]
inc r14
cmp word [rax + r14*2], dx
jne 0x1400d76d0
cmp r14d, 2
ja 0x1400d770e
mov esi, edx
mov r9d, reloc.VssTrace.DLL_Ordinal_11
mov edi, r9d
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a1c
test byte [rcx + 0x1c], 8
je 0x1400d7a1c
lea edx, [r9 + 0x10]
jmp 0x1400d7464
lea ecx, [r14 - 1]
add rcx, rcx
cmp word [rbp + rcx + 0x1f0], 0x5c
jne 0x1400d7739
cmp rcx, 0x208
jae 0x1400d7733
mov word [rbp + rcx + 0x1f0], dx
jmp 0x1400d7739
call fcn.140030a08
int3
mov eax, 0x3f
mov word [rbp + 0x1f2], ax
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7771
test byte [rcx + 0x1c], 2
je 0x1400d7771
lea edx, [rax - 0x23]
lea r9, [rbp + 0x1f0]
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5b58
lea rdx, [rbp + 0x1f0]
mov r14, qword [rsp + 0x58]
mov rcx, r14
call fcn.1400e3354
xor ecx, ecx
test eax, eax
jne 0x1400d7865
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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 0x1400d7525
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7804
test byte [rax + 0x1c], 2
je 0x1400d7804
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0x1e
lea r8, [0x14012eb80]
mov rcx, qword [0x14015a290]
mov rcx, qword [rcx + 0x10]
call fcn.1400d7eec
test r15d, r15d
jne 0x1400d7860
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r9d, [r15 + 0xe]
cmp eax, r9d
jne 0x1400d7860
xor r14d, r14d
mov esi, r14d
mov edi, r9d
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a1f
test byte [rcx + 0x1c], 8
je 0x1400d7a1f
lea edx, [r15 + 0x1f]
lea rax, str.ERROR_OUTOFMEMORY
mov qword [rsp + 0x20], rax
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5cb0
jmp 0x1400d7a1f
mov r14, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x68]
mov r8, r14
lea rcx, [rbp - 0x60]
call fcn.1400e29c4
xor ecx, ecx
test eax, eax
jne 0x1400d78c4
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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 0x1400d7525
lea rcx, [rsp + 0x48]
call fcn.1400e85ac
xor ecx, ecx
test eax, eax
jne 0x1400d7905
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x21
jmp 0x1400d78b5
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x68]
mov r8, qword [r14]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.1400d8690
xor ecx, ecx
test eax, eax
jne 0x1400d7964
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d7a1c
test byte [rax + 0x1c], 8
je 0x1400d7a1c
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 0x1400d7525
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call fcn.1400d7b00
xor ecx, ecx
test eax, eax
jne 0x1400d79d9
mov esi, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rax, qword [0x14015a290]
cmp rax, rbx
je 0x1400d79cf
test byte [rax + 0x1c], 8
je 0x1400d79cf
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, [0x14012eb80]
mov rcx, qword [0x14015a290]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5cb0
mov rcx, qword [rsp + 0x50]
xor r14d, r14d
jmp 0x1400d7a24
call fcn.1400e4524
xor r14d, r14d
test eax, eax
jne 0x1400d7a0a
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a0a
test byte [rcx + 0x1c], 4
je 0x1400d7a0a
lea edx, [rax + 0x24]
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d5a44
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rcx, r14
jmp 0x1400d7a24
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.1400e4a20
test eax, eax
jne 0x1400d7a6f
mov rcx, qword [0x14015a290]
cmp rcx, rbx
je 0x1400d7a6f
test byte [rcx + 0x1c], 8
je 0x1400d7a6f
lea edx, [rax + 0x25]
mov r9d, edi
lea r8, [0x14012eb80]
mov rcx, qword [rcx + 0x10]
call fcn.1400d7eec
lea rcx, str.AsrPerformBackup
call fcn.1400073f0
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
lea rcx, [rsp + 0x78]
call fcn.1400d7f28
nop
cmp qword [rsp + 0x48], r14
je 0x1400d7aa1
lea rcx, [rsp + 0x48]
call fcn.1400d6b5c
nop
lea rcx, [rbp - 0x60]
call fcn.1400ded78
mov eax, esi
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400305f0
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret