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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.1400ba950
mov edi, 0x1126
test al, al
jne 0x1400baf80
xorps xmm0, xmm0
lea rsi, [rsp + 0x50]
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, rbx
mov rdx, rsi
call fcn.1400bafb0
mov ebx, eax
mov rcx, rsi
call fcn.1400bb0a0
mov edi, eax
mov rcx, rsi
mov rdx, rsi
call fcn.1400bb0e0
test bl, bl
jne 0x1400bad66
test dil, dil
jne 0x1400bad66
test al, al
jne 0x1400bad66
mov edi, 0x7b
jmp 0x1400baf70
test dil, dil
je 0x1400bad7b
lea rsi, [rsp + 0x50]
mov al, 1
mov dword [rsp + 0x34], eax
jmp 0x1400bae5d
lea rdx, [0x1401dc5c0]
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140004f50
lea rbp, [rsp + 0x58]
movzx r8d, byte [rbp + 0xf]
test r8b, r8b
cmovs r8, qword [rbp]
lea rsi, [rsp + 0x50]
mov rdx, qword [rsi]
cmovns rdx, rsi
mov rcx, rdi
call fcn.14006b980
mov rdi, qword [rax]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0xf]
mov qword [rsp + 0x77], rdx
mov qword [rsp + 0x70], rcx
mov bl, byte [rax + 0x17]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
xor eax, eax
cmp byte [rsi + 0x17], al
js 0x1400badf0
mov word [rsp + 0x50], 0
mov byte [rsp + 0x67], 0
jmp 0x1400bae1d
mov rax, qword [rsp + 0x50]
mov word [rax], 0
mov qword [rsp + 0x58], 0
cmp byte [rsp + 0x67], 0
jns 0x1400bae1d
mov rcx, qword [rsp + 0x50]
call fcn.140190860
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x77]
mov qword [rbp + 7], rcx
mov qword [rbp], rax
mov byte [rsp + 0x67], bl
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x77], rax
cmp byte [rsp + 0x4f], 0
jns 0x1400bae55
mov rcx, qword [rsp + 0x38]
call fcn.140190860
mov dword [rsp + 0x34], 0
mov rax, 0xffffffffffffffff
lea r12, [rsp + 0x68]
xor r15d, r15d
lea r14, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, rax
call fcn.14006b4f0
cmp byte [rsi + 0x17], 0
js 0x1400baead
mov word [rsp + 0x50], 0
mov byte [rsi + 0x17], 0
jmp 0x1400baed9
mov rax, qword [rsp + 0x50]
mov word [rax], 0
mov qword [rsp + 0x58], 0
cmp byte [rsi + 0x17], 0
jns 0x1400baed9
mov rcx, qword [rsp + 0x50]
call fcn.140190860
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400baefb
mov rcx, qword [rsp + 0x50]
call rbp
cmp eax, 0xffffffff
je 0x1400baf0a
bt eax, 0xa
jae 0x1400baf1c
jmp 0x1400baf43
call r13
mov edi, eax
lea eax, [rdi - 2]
cmp eax, 2
jb 0x1400baf1c
cmp edi, 0x7b
jne 0x1400baf47
mov rcx, rbx
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.14006c270
mov r15b, 1
cmp rax, 2
ja 0x1400bae84
mov edi, 0x1126
jmp 0x1400baf70
xor edi, edi
jmp 0x1400baf70
test r15b, r15b
sete al
mov ecx, dword [rsp + 0x34]
or cl, al
jne 0x1400baf70
lea rcx, [rsp + 0x50]
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.14006c270
cmp rax, 3
je 0x1400baf3c
cmp byte [rsi + 0x17], 0
jns 0x1400baf80
mov rcx, qword [rsp + 0x50]
call fcn.140190860
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret