Function at 0x14001a9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x88
or qword [rbp + 0x5f], 0xffffffffffffffff
xor esi, esi
mov r13, qword [rdx]
xorps xmm0, xmm0
mov rax, qword [r9]
xorps xmm1, xmm1
mov qword [rbp - 0x29], rsi
mov r12, rcx
mov qword [rbp - 0x31], rsi
mov ebx, esi
mov qword [rbp - 0x21], r13
mov r15d, esi
mov qword [rbp - 0x19], rax
mov edi, esi
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm1
test rcx, rcx
je 0x14001aa5f
cmp qword [rcx + 0x40], rsi
mov rax, rcx
cmovne rax, qword [rcx + 0x40]
mov edi, dword [rax + 0x24]
mov r14, qword [rbp + 0x7f]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001aa7f
mov rcx, r14
call fcn.140049528
bt edi, 0x1c
jae 0x14001ab92
lea r9, [0x14007b9e4]
lea r8, [0x14007b030]
lea rdx, [0x14001c460]
lea rcx, [0x14001c3a0]
call fcn.140005ba4
mov edi, eax
test eax, eax
jns 0x14001aaca
mov r9d, eax
lea rcx, str.WimExchangeFiles
mov r8d, 0x422
call fcn.1400064e0
jmp 0x14001b109
mov rax, qword [0x14007ba00]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [0x14006c9d0]
mov qword [rbp + 0x5f], rax
lea rsi, str.WimExchangeFiles
mov r13d, 0x80070000
mov r14d, 0x80004005
cmp rax, 0xffffffffffffffff
jne 0x14001ab59
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14001ab41
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
jmp 0x14001ab44
mov edi, r14d
test edi, edi
jns 0x14001ab61
mov r9d, edi
mov r8d, 0x42d
mov rcx, rsi
call fcn.1400064e0
test edi, edi
js 0x14001af65
mov r8, qword [rbp + 0x67]
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x5f]
call fcn.14000423c
mov edi, eax
test eax, eax
jns 0x14001af65
mov r9d, eax
mov r8d, 0x435
mov rcx, rsi
call fcn.1400064e0
jmp 0x14001af65
lea r8, [rbp - 0x31]
mov edx, 8
mov rcx, r13
call fcn.14001a7fc
lea rsi, str.WimExchangeFiles
mov edi, eax
test eax, eax
jns 0x14001abef
mov r9d, eax
mov r8d, 0x445
mov rcx, rsi
call fcn.1400064e0
lea r8, [rbp - 0x31]
xor edx, edx
mov rcx, r13
call fcn.14001a7fc
mov edi, eax
test eax, eax
jns 0x14001abef
mov r9d, eax
mov r8d, 0x448
mov rcx, rsi
call fcn.1400064e0
mov r15, qword [rbp - 0x31]
jmp 0x14001b0e4
mov r15, qword [rbp - 0x31]
lea rdx, [rbp - 0x11]
mov rcx, r15
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
mov ebx, 0x80070003
test al, al
jne 0x14001ac50
mov r9d, ebx
mov r8d, 0x453
mov rcx, rsi
mov edi, ebx
call fcn.1400064e0
mov dword [rsp + 0x30], 0x454
lea r9, str.Converting_to_NT_filename_failed
mov qword [rsp + 0x28], rsi
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14000b4d0
test edi, edi
js 0x14001b0e4
xor r9d, r9d
lea rdx, [rbp - 1]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
test al, al
jne 0x14001acb0
mov r9d, ebx
mov r8d, 0x45f
mov rcx, rsi
mov edi, ebx
call fcn.1400064e0
mov dword [rsp + 0x30], 0x460
lea r9, str.Converting_to_NT_filename_failed
mov qword [rsp + 0x28], rsi
mov r8, r14
mov rdx, r12
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14000b4d0
test edi, edi
js 0x14001b0e4
movzx ebx, word [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx + 0x18]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x29], rax
mov r13d, 0x80070000
mov r14d, 0x80004005
mov rbx, rax
test rax, rax
je 0x14001ad1b
movzx r8d, word [rbp - 1]
lea rcx, [rax + 0x14]
mov rdx, qword [rbp + 7]
call sub.msvcrt.dll_memmove
movzx eax, word [rbp - 1]
and qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov byte [rbx], 1
jmp 0x14001ad92
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14001ad51
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
jmp 0x14001ad54
mov edi, r14d
test edi, edi
jns 0x14001ad69
mov r9d, edi
mov r8d, 0x476
mov rcx, rsi
call fcn.1400064e0
mov r8, qword [rbp + 0x7f]
lea r9, str.MALLOC_failed
mov dword [rsp + 0x30], 0x477
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov ecx, 1
mov dword [rsp + 0x20], edi
call fcn.14000b4d0
test edi, edi
js 0x14001b0bf
movzx ebx, word [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx + 0x18]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001aded
movzx r8d, word [rbp - 0x11]
lea rcx, [rax + 0x14]
mov rdx, qword [rbp - 9]
call sub.msvcrt.dll_memmove
movzx ecx, word [rbp - 0x11]
and qword [rbx + 8], 0
mov dword [rbx + 0x10], ecx
mov byte [rbx], 1
jmp 0x14001ae62
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001ae21
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
jmp 0x14001ae24
mov edi, r14d
test edi, edi
jns 0x14001ae39
mov r9d, edi
mov r8d, 0x48d
mov rcx, rsi
call fcn.1400064e0
mov r8, qword [rbp + 0x6f]
lea r9, str.MALLOC_failed
mov dword [rsp + 0x30], 0x48e
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov ecx, 1
mov dword [rsp + 0x20], edi
call fcn.14000b4d0
test edi, edi
js 0x14001b096
movzx r9d, word [rbp - 1]
mov rcx, r12
mov r8, qword [rbp - 0x29]
add r9d, 0x18
mov rdx, qword [rbp - 0x21]
mov dword [rsp + 0x20], 0xa
call fcn.14001c12c
mov edi, eax
test eax, eax
js 0x14001af3d
movzx r9d, word [rbp - 0x11]
mov r14d, 0xa
mov rdx, qword [rbp - 0x19]
add r9d, 0x18
mov r8, rbx
mov dword [rsp + 0x20], r14d
mov rcx, r12
call fcn.14001c12c
mov edi, eax
test eax, eax
jns 0x14001b096
mov r8, qword [rbp + 0x6f]
lea r13d, [r14 - 9]
mov dword [rsp + 0x30], 0x4ac
lea r9, str.moving_folder_failed
mov ecx, r13d
mov qword [rsp + 0x28], rsi
mov rdx, r12
mov dword [rsp + 0x20], eax
call fcn.14000b4d0
movzx r9d, word [rbp - 0x11]
mov r8, rbx
mov rdx, qword [rbp - 0x21]
add r9d, 0x18
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.14001c12c
test eax, eax
jns 0x14001b096
mov dword [rsp + 0x30], 0x4bb
lea r9, str.restoring_folder_failed
mov qword [rsp + 0x28], rsi
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], eax
mov ecx, r13d
call fcn.14000b4d0
jmp 0x14001b096
mov dword [rsp + 0x30], 0x4c3
lea r9, str.moving_folder_failed
mov qword [rsp + 0x28], rsi
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000b4d0
cmp qword [rbp + 0x5f], 0xffffffffffffffff
je 0x14001b096
mov rax, qword [0x14007b9e8]
xor ecx, ecx
call qword [0x14006c9d0]
test edi, edi
js 0x14001b014
mov rcx, qword [rbp + 0x5f]
mov rax, qword [0x14007b9f8]
call qword [0x14006c9d0]
test eax, eax
jne 0x14001b010
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001afd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
jmp 0x14001afd3
mov edi, r14d
test edi, edi
jns 0x14001afe8
mov r9d, edi
mov r8d, 0x4e9
mov rcx, rsi
call fcn.1400064e0
mov dword [rsp + 0x30], 0x4eb
lea r9, str.failed_transaction_commit
mov qword [rsp + 0x28], rsi
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], edi
mov ecx, 1
call fcn.14000b4d0
test edi, edi
jns 0x14001b086
mov rcx, qword [rbp + 0x5f]
mov rax, qword [0x14007b9f0]
call qword [0x14006c9d0]
test eax, eax
jne 0x14001b086
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001b05d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx r14d, ax
or r14d, r13d
test eax, eax
cmovle r14d, eax
mov dword [rsp + 0x30], 0x4f4
lea r9, str.failed_transaction_rollback
mov qword [rsp + 0x28], rsi
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], r14d
mov ecx, 1
call fcn.14000b4d0
mov rcx, qword [rbp + 0x5f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14001b0bb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14001b0e4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r15, r15
je 0x14001b109
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp qword [rbp - 9], 0
je 0x14001b12f
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 9]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp + 7], 0
je 0x14001b155
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp + 7]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret