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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x688
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, r8
mov r12, rdx
mov rbp, rcx
xorps xmm0, xmm0
xor r13d, r13d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x618
mov r15d, r13d
mov rsi, r9
movups xmmword [rsp + 0x40], xmm0
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, rbp
call fcn.14001988c
lea r14d, [r13 + 1]
test eax, eax
je 0x14002f4da
lea rsi, [rsp + 0x50]
mov r15d, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002f4f6
mov rcx, rsi
call fcn.14001a730
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 0x14002f6d3
movzx ebx, word [rsp + 0x40]
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 r14, rax
test rax, rax
je 0x14002f631
movzx r8d, word [rsp + 0x40]
lea rcx, [rax + 0x14]
mov rdx, qword [rsp + 0x48]
call sub.msvcrt.dll_memmove
mov byte [r14], r13b
mov r8, r14
mov qword [r14 + 8], r13
mov rdx, rdi
movzx ecx, word [rsp + 0x40]
mov dword [r14 + 0x10], ecx
mov rcx, rbp
movzx r9d, word [rsp + 0x40]
add r9d, 0x18
mov dword [rsp + 0x20], 0xb
call fcn.14001c12c
mov ebx, eax
test eax, eax
jns 0x14002f60c
mov dword [rsp + 0x30], 0x22c
lea rdi, str.RestoreHardlink
mov qword [rsp + 0x28], rdi
lea r9, str.setting_hardlink_failed
mov r8, r12
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov ecx, 1
call fcn.14000b4d0
test r15d, r15d
je 0x14002f60c
cmp ebx, 0x80070011
je 0x14002f5e0
lea eax, [rbx + 0x3fffff2c]
test eax, 0xefffffff
jne 0x14002f60c
mov dword [rsp + 0x30], 0x232
lea r9, str.Reset_setting_hardlink_failure_because_of_folder_redirection
mov qword [rsp + 0x28], rdi
mov r8, r12
mov rdx, rbp
mov dword [rsp + 0x20], r13d
mov ecx, 2
mov ebx, r13d
call fcn.14000b4d0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14002f6b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14002f668
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x14002f66d
mov ebx, 0x80004005
lea rdi, str.RestoreHardlink
test ebx, ebx
jns 0x14002f689
mov r9d, ebx
mov r8d, 0x23c
mov rcx, rdi
call fcn.1400064e0
mov dword [rsp + 0x30], 0x23d
lea r9, str.MALLOC_failed
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov rdx, rbp
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14000b4d0
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 0x14002f716
mov ebx, 0x80070003
lea rdi, str.RestoreHardlink
mov r9d, ebx
mov rcx, rdi
mov r8d, 0x246
call fcn.1400064e0
mov dword [rsp + 0x30], 0x247
lea r9, str.Converting_to_NT_filename_failed
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov rdx, rbp
mov dword [rsp + 0x20], ebx
mov ecx, r14d
call fcn.14000b4d0
test ebx, ebx
cmovns ebx, r13d
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140068870
add rsp, 0x688
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret