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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x588]
sub rsp, 0x688
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor eax, eax
mov rdi, r8
mov r13, rdx
mov qword [rsp + 0x40], rax
mov r15, rcx
mov qword [rsp + 0x48], rax
xor r14d, r14d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x618
mov r12d, r14d
mov rsi, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, r15
call fcn.140019908
test eax, eax
je 0x14001e366
lea rsi, [rsp + 0x50]
lea r12d, [r14 + 1]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001e382
mov rcx, rsi
call fcn.14001a5d0
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
test al, al
je 0x14001e55b
movzx ebx, word [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx + 0x18]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14001e4b6
movzx r8d, word [rsp + 0x40]
lea rcx, [rax + 0x14]
mov rdx, qword [rsp + 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
xor esi, esi
mov r8, r14
mov byte [r14], sil
mov rdx, rdi
mov qword [r14 + 8], rsi
movzx ecx, word [rsp + 0x40]
mov dword [r14 + 0x10], ecx
mov rcx, r15
movzx r9d, word [rsp + 0x40]
add r9d, 0x18
call fcn.14001b1c0
mov ebx, eax
test eax, eax
jns 0x14001e48e
mov dword [rsp + 0x30], 0x22c
lea rdi, str.RestoreHardlink
mov qword [rsp + 0x28], rdi
lea r9, str.setting_hardlink_failed
mov r8, r13
mov dword [rsp + 0x20], eax
mov rdx, r15
lea ecx, [rsi + 1]
call fcn.14000f794
test r12d, r12d
je 0x14001e48e
cmp ebx, 0x80070011
je 0x14001e464
lea eax, [rbx + 0x3fffff2c]
test eax, 0xefffffff
jne 0x14001e48e
mov dword [rsp + 0x30], 0x232
lea r9, str.Reset_setting_hardlink_failure_because_of_folder_redirection
mov qword [rsp + 0x28], rdi
mov r8, r13
mov rdx, r15
mov dword [rsp + 0x20], esi
mov ecx, 2
mov ebx, esi
call fcn.14000f794
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor r14d, r14d
jmp 0x14001e539
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r14d, r14d
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001e4f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x14001e4f5
mov ebx, 0x80004005
lea rdi, str.RestoreHardlink
test ebx, ebx
jns 0x14001e511
mov r9d, ebx
mov r8d, 0x23c
mov rcx, rdi
call fcn.14001b2f8
mov dword [rsp + 0x30], 0x23d
lea r9, str.MALLOC_failed
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov rdx, r15
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14000f794
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x14001e5a0
mov ebx, 0x80070003
lea rdi, str.RestoreHardlink
mov r9d, ebx
mov rcx, rdi
mov r8d, 0x246
call fcn.14001b2f8
mov dword [rsp + 0x30], 0x247
lea r9, str.Converting_to_NT_filename_failed
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov rdx, r15
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14000f794
test ebx, ebx
cmovns ebx, r14d
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400582e0
add rsp, 0x688
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret