Function at 0x14008ca40
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 [0x140191010]
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 0x14008cb0d
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 0x14008cae0
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140002ed0
mov dword [r14], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
jmp 0x14008ced5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rsi, 0xffffffffffffffff
test r15d, r15d
je 0x14008cc18
cmp eax, 8
jne 0x14008ceb2
mov eax, 2
mul r15
cmovo rax, rsi
lea rdx, [0x140127eb0]
mov rcx, rax
call fcn.140072510
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x14008cb89
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 0x14008cedf
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 0x14008cbfe
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 0x14008cbc0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140002ed0
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_1
jmp 0x14008cedf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, rdi
call sub.mfc140u.dll_operator_1
test r13d, r13d
jne 0x14008ceb2
test r12d, r12d
je 0x14008ceb2
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.140002ed0
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, [0x140127eb0]
mov ecx, ebx
call fcn.140072510
mov r13, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14008ce3c
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 0x14008cd52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14008ccd4
mov rcx, r13
call sub.mfc140u.dll_operator_1
mov eax, 0xfffe
cmp ebx, eax
jb 0x14008cc60
jmp 0x14008cdcd
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_1
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14008cedf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cd48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008ceab
call fcn.140071e50
jmp 0x14008cedf
lea r9, [r13 + 4]
nop word [rax + rax]
inc rsi
cmp word [r9 + rsi*2], 0
jne 0x14008cd60
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14008cdaf
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 0x14008cdc5
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1400039f0
nop
mov rcx, r13
call sub.mfc140u.dll_operator_1
cmp qword [rsp + 0x68], 7
jbe 0x14008ce26
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 0x14008ce26
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 0x14008cd07
mov dword [r14], r15d
lea rcx, [r14 + 8]
lea rdx, [rsp + 0x58]
call fcn.140002b70
jmp 0x14008cd07
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 0x14008cedf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cd48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008cd48
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.140071e30
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret