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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r13, rdx
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor edx, edx
mov r8d, 0x190
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov ebx, 0xc8
mov r8d, ebx
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov r15d, eax
lea eax, [r15 - 1]
cmp eax, 0xc6
ja 0x14009959d
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
lea rax, [rbp - 0x80]
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x140099570
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140002f20
mov dword [r14], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
jmp 0x140099965
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rsi, 0xffffffffffffffff
test r15d, r15d
je 0x1400996a8
cmp eax, 8
jne 0x140099942
mov eax, 2
mul r15
cmovo rax, rsi
lea rdx, [0x140142e90]
mov rcx, rax
call fcn.14007e930
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x140099619
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov dword [r14], r12d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [r14 + 0x18], xmm1
jmp 0x14009996f
xor r9d, r9d
mov r8d, r15d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov r13d, eax
lea ecx, [r15 - 1]
cmp eax, ecx
jne 0x14009968e
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
nop dword [rax]
inc rsi
cmp word [rdi + rsi*2], r15w
jne 0x140099650
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140002f20
mov dword [r14], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [r14 + 0x18], xmm1
mov rcx, rdi
call sub.mfc140u.dll_operator
jmp 0x14009996f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, rdi
call sub.mfc140u.dll_operator
test r13d, r13d
jne 0x140099942
test r12d, r12d
je 0x140099942
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea r8d, [r15 + 7]
lea rdx, str._UNC
lea rcx, [rsp + 0x58]
call fcn.140002f20
nop
mov eax, 0xfffe
mov r12, qword [rsp + 0x50]
nop dword [rax]
add ebx, ebx
cmp ebx, eax
cmova ebx, eax
mov edi, ebx
lea rdx, [0x140142e90]
mov ecx, ebx
call fcn.14007e930
mov r13, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400998cc
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, ebx
mov r8, r13
mov edx, 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400997e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140099764
mov rcx, r13
call sub.mfc140u.dll_operator
mov eax, 0xfffe
cmp ebx, eax
jb 0x1400996f0
jmp 0x14009985d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
mov rcx, r13
call sub.mfc140u.dll_operator
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14009996f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400997d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009993b
call fcn.14007e2a0
jmp 0x14009996f
lea r9, [r13 + 4]
nop word [rax + rax]
inc rsi
cmp word [r9 + rsi*2], 0
jne 0x1400997f0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14009983f
lea rdi, [rsi + rcx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r15w
jmp 0x140099855
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140003a40
nop
mov rcx, r13
call sub.mfc140u.dll_operator
cmp qword [rsp + 0x68], 7
jbe 0x1400998b6
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400998b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
jmp 0x140099797
mov dword [r14], r15d
lea rcx, [r14 + 8]
lea rdx, [rsp + 0x58]
call fcn.140002bc0
jmp 0x140099797
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], 8
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 0x18], xmm1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14009996f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400997d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400997d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov dword [r14], r12d
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [r14 + 8], xmm0
movups xmmword [r14 + 0x18], xmm1
mov rax, r14
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14007e250
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret