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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rbp + 7], rax
mov rbx, rcx
call fcn.1400406a0
xor r14d, r14d
test al, al
je 0x14004079d
mov eax, 0x1126
jmp 0x140040a11
mov r13d, 7
mov qword [rbp - 0x49], r14
lea rdx, [rbp - 0x59]
mov qword [rbp - 0x41], r13
mov rcx, rbx
mov word [rbp - 0x59], r14w
call fcn.140040570
lea rcx, [rbp - 0x59]
mov dil, al
call fcn.1400410c0
lea rdx, [rbp - 0x59]
mov bl, al
lea rcx, [rbp - 0x59]
call fcn.140040440
test bl, bl
jne 0x1400407ed
test al, al
jne 0x1400407ed
test dil, dil
jne 0x1400407ed
lea ebx, [r13 + 0x74]
jmp 0x140040a06
or r15, 0xffffffffffffffff
mov sil, r14b
test bl, bl
jne 0x140040895
movdqa xmm0, xmmword [0x140085330]
lea rdx, str.._
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov r8, r15
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140040818
lea rcx, [rbp - 0x39]
call fcn.14001ed20
cmp qword [rbp - 0x41], 8
lea rdx, [rbp - 0x59]
mov r8, qword [rbp - 0x49]
lea rcx, [rbp - 0x39]
cmovae rdx, qword [rbp - 0x59]
call fcn.140031430
lea rcx, [rbp - 0x59]
movups xmm7, xmmword [rax]
movups xmm6, xmmword [rax + 0x10]
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
movups xmmword [rbp - 0x19], xmm7
mov word [rax], r14w
call fcn.14001b8c0
movdqa xmm0, xmmword [0x140085330]
lea rcx, [rbp - 0x19]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r14w
movups xmmword [rbp - 0x59], xmm7
movups xmmword [rbp - 0x49], xmm6
call fcn.14001b8c0
lea rcx, [rbp - 0x39]
call fcn.14001b8c0
mov sil, 1
mov r9, qword [rbp - 0x41]
mov rax, r15
mov r8, qword [rbp - 0x49]
mov dil, r14b
mov r10, qword [rbp - 0x59]
mov ebx, 0x7b
cmp r8, rax
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x59]
mov qword [rbp - 0x21], r13
cmovb rax, r8
mov word [rbp - 0x39], r14w
cmp r9, 8
lea rcx, [rbp - 0x39]
mov r8, rax
cmovae rdx, r10
call fcn.14001ed20
lea rcx, [rbp - 0x59]
call fcn.14001b8c0
movups xmm1, xmmword [rbp - 0x29]
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x29], r14
movups xmm0, xmmword [rbp - 0x39]
mov qword [rbp - 0x21], r13
movups xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x39], r14w
movups xmmword [rbp - 0x59], xmm0
call fcn.14001b8c0
cmp qword [rbp - 0x41], 8
lea rcx, [rbp - 0x59]
cmovae rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140040975
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14004097f
cmp eax, ebx
je 0x14004097f
test dil, dil
je 0x1400409fe
test sil, sil
je 0x1400409fe
cmp qword [rbp - 0x41], 8
lea rdx, [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
cmovae rdx, qword [rbp - 0x59]
test rcx, rcx
je 0x1400409f5
dec rcx
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea rcx, [rdx + rax*2]
jmp 0x1400409e7
bt eax, 0xa
jb 0x140040a03
mov r9, qword [rbp - 0x41]
lea rdx, [rbp - 0x59]
mov r10, qword [rbp - 0x59]
cmp r9, 8
mov r8, qword [rbp - 0x49]
mov dil, 1
cmovae rdx, r10
test r8, r8
je 0x1400409ca
lea rcx, [r8 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea rax, [rdx + rax*2]
jmp 0x1400409bc
cmp rax, rdx
je 0x1400409ca
sub rax, 2
cmp word [rax], 0x5c
jne 0x1400409b3
sub rax, rdx
sar rax, 1
jmp 0x1400409cd
mov rax, r15
cmp rax, 2
ja 0x1400408ac
mov ebx, 0x1126
jmp 0x140040a06
cmp rcx, rdx
je 0x1400409f5
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x1400409de
sub rcx, rdx
sar rcx, 1
jmp 0x1400409f8
mov rcx, r15
cmp rcx, 3
je 0x1400409d7
mov ebx, r8d
jmp 0x140040a06
mov ebx, r14d
lea rcx, [rbp - 0x59]
call fcn.14001b8c0
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400801e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret