Function at 0x14007afe0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401340c0]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rdx
xor esi, esi
mov dword [rsp + 0x40], esi
lea r14, [rsi - 1]
cmp qword [rdx + 0x10], rsi
jne 0x14007b6e4
lea rdx, [rcx + 0x80]
mov rax, qword [0x140135010]
cmp rax, qword [0x140135008]
jne 0x14007b069
cmp r13, rdx
je 0x14007b6e4
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x14007b05c
mov rdx, qword [rdx]
mov rcx, r13
call fcn.14001e2f0
jmp 0x14007b6e4
mov r10, qword [rdx + 0x10]
mov r9, rdx
mov r11, qword [rdx + 0x18]
cmp r11, 7
jbe 0x14007b07d
mov r9, qword [rdx]
test r10, r10
je 0x14007b0b8
lea rcx, [r10 - 1]
mov rax, r14
cmp rcx, r14
cmovb rax, rcx
lea r8, [r9 + rax*2]
cmp word [r8], 0x5c
je 0x14007b0b0
nop dword [rax + rax]
cmp r8, r9
je 0x14007b0b8
sub r8, 2
cmp word [r8], 0x5c
jne 0x14007b0a0
sub r8, r9
sar r8, 1
jmp 0x14007b0bb
mov r8, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
cmp r10, r8
cmovb r8, r10
cmp r11, 7
jbe 0x14007b0da
mov rdx, qword [rdx]
lea rcx, [rbp - 0x80]
call fcn.140005390
mov r15d, 0x40
mov dword [rsp + 0x40], r15d
mov r12, qword [0x140135008]
mov r14, qword [0x140135010]
mov qword [rsp + 0x50], r14
mov rbx, qword [rbp - 0x80]
cmp r12, r14
je 0x14007b674
movabs r9, 0x7fffffffffffffff
movabs r8, 0x7ffffffffffffffe
mov ecx, 0xa
lea rdi, [0x14011a1a0]
mov rax, qword [r12 + 0x10]
mov r10, r12
cmp qword [r12 + 0x18], 7
jbe 0x14007b142
mov r10, qword [r12]
cmp rax, 2
jb 0x14007b1f8
dec rax
lea r11, [r10 + rax*2]
mov rax, r10
nop word [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov rdx, rsi
je 0x14007b18a
cmp word [rax], 0x3a
je 0x14007b187
cmp rcx, 1
je 0x14007b18a
dec rcx
add rax, 2
cmp word [rax], 0x3a
jne 0x14007b174
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x14007b1df
mov r8d, 2
mov rdx, rdi
mov r9, rax
sub r9, rdi
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x14007b1d9
add rdx, 2
sub r8, 1
jne 0x14007b1a1
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14007b1df
mov rdx, r12
lea rcx, [rbp - 0x40]
call fcn.14001e4f0
mov rdi, rax
or r15d, 4
jmp 0x14007b33e
add rax, 2
jmp 0x14007b160
movabs r9, 0x7fffffffffffffff
movabs r8, 0x7ffffffffffffffe
mov ecx, 0xa
mov rax, r8
mov rdx, qword [rbp - 0x70]
sub rax, rdx
cmp rax, 1
jb 0x14007b830
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r14, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea rsi, [rdx + 1]
mov ebx, 7
lea rdi, [rbp - 0x60]
cmp rsi, rbx
jbe 0x14007b2b9
mov rbx, rsi
or rbx, 7
cmp rbx, r8
jbe 0x14007b24f
mov rbx, r8
lea rcx, [r9 + r9]
jmp 0x14007b270
cmp rbx, 0xa
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, r9
ja 0x14007b842
add rcx, rcx
cmp rcx, 0x1000
jb 0x14007b2a0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14007b842
mov rcx, rax
call fcn.1400a2e84
test rax, rax
je 0x14007b83c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov rdx, qword [rbp - 0x70]
jmp 0x14007b2b5
test rcx, rcx
je 0x14007b2b3
call fcn.1400a2e84
mov rdi, rax
mov rdx, qword [rbp - 0x70]
jmp 0x14007b2b5
xor edi, edi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rbx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.1400cdc60
mov eax, dword [0x140118b18]
mov word [rdi + rbx], ax
xor eax, eax
mov word [rdi + rsi*2], ax
or r15d, 8
or r15d, 1
mov dword [rsp + 0x40], r15d
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14007b2ff
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rbp - 0x60]
call fcn.14004eb50
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or r15d, 0x10
lea rdi, [rbp - 0x20]
or r15d, 2
mov r14, qword [rsp + 0x50]
mov dword [rsp + 0x40], r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x14007b363
mov rdi, qword [rdi]
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
ja 0x14007b872
cmp rsi, 7
ja 0x14007b397
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x60], xmm0
jmp 0x14007b446
mov rbx, rsi
or rbx, 7
cmp rbx, rax
jbe 0x14007b3b6
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14007b3e6
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14007b86c
add rcx, rcx
cmp rcx, 0x1000
jb 0x14007b415
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14007b86c
mov rcx, rax
call fcn.1400a2e84
mov rcx, rax
test rax, rax
je 0x14007b848
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14007b423
test rcx, rcx
je 0x14007b421
call fcn.1400a2e84
jmp 0x14007b423
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rbx
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.1400cdc60
nop
test r15b, 4
je 0x14007b4a9
and r15d, 0xfffffffb
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14007b495
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b84e
call fcn.1400a2e50
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
jmp 0x14007b4ab
xor esi, esi
test r15b, 2
je 0x14007b4fb
and r15d, 0xfffffffd
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x14007b4fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b4f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b854
call fcn.1400a2e50
nop
test r15b, 1
je 0x14007b55a
and r15d, 0xfffffffe
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14007b54a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b545
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b85a
call fcn.1400a2e50
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007b5ce
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14007b5b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b5b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b860
call fcn.1400a2e50
add r12, 0x20
mov rbx, qword [rbp - 0x80]
cmp r12, r14
je 0x14007b66f
jmp 0x14007b10e
lea rax, [rsp + 0x60]
cmp r13, rax
je 0x14007b629
mov rbx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r9, qword [rsp + 0x60]
mov rax, qword [r13 + 0x18]
cmp rbx, rax
ja 0x14007b61d
mov rdi, r13
cmp rax, 7
jbe 0x14007b604
mov rdi, qword [r13]
mov qword [r13 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.1400cdc60
mov word [rdi + rbx*2], si
jmp 0x14007b629
mov rdx, rbx
mov rcx, r13
call fcn.1400212e0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14007b66b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b666
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b860
call fcn.1400a2e50
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x48]
cmp qword [r13 + 0x10], 0
jne 0x14007b69e
lea rdx, [rdi + 0x80]
cmp r13, rdx
je 0x14007b69e
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x14007b695
mov rdx, qword [rdx]
mov rcx, r13
call fcn.14001e2f0
nop
mov rax, qword [rbp - 0x68]
cmp rax, 7
jbe 0x14007b6dd
lea rdx, [rax*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14007b6d5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007b866
mov rcx, rbx
call fcn.1400a2e50
mov r14, 0xffffffffffffffff
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14007b6f2
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007b7b6
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14007b70f
mov rcx, qword [r13]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
xor r15d, r15d
cmp rax, 0xffffffffffffffff
je 0x14007b7b9
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007b7ab
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400a34a4
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400ce300
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007b7a3
movsxd rax, dword [rdi + 0x3c]
mov r14d, dword [rax + rdi + 8]
mov rcx, rdi
call fcn.1400a2e50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007b7b9
xor r15d, r15d
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x14007b7f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x14007b7f0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14007b836
mov rcx, r8
call fcn.1400a2e50
mov qword [r13 + 0x10], r15
mov qword [r13 + 0x18], 7
mov word [r13], r15w
mov rax, r14
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400a2e30
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002210
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
int3
call fcn.140002170
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
nop
call fcn.1400a9f40
nop
call fcn.140002170
int3
call fcn.140002210
int3