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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xa0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x141111408]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov ebx, r8d
mov r14, rdx
mov r13, rcx
xor esi, esi
mov r12d, esi
mov qword [rbp + 0x30], rsi
mov eax, 0x100
mov dword [rbp + 0xc], eax
mov ecx, eax
call fcn.14001d268
mov rdi, rax
mov qword [rbp + 0x28], rax
mov r15d, esi
mov dword [rbp + 0x14], esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x20], eax
cmp eax, 0xffffffff
je 0x1400082de
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea esi, [r12 + 1]
mov r8d, esi
mov edx, 0x80000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rbp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400082e9
xor ecx, ecx
mov r15d, ecx
mov dword [rbp + 0x10], ecx
mov eax, 0x8000
call fcn.1401bc460
sub rsp, rax
lea r14, [rsp + 0x40]
mov qword [rbp + 0x40], r14
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
mov r8d, eax
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r8d, r8d
test eax, eax
je 0x1400082e5
cmp ebx, 0xffffffff
jne 0x140008061
mov ecx, r8d
mov r9b, 0xa
mov edx, dword [rbp]
mov dword [rbp + 0x18], ecx
cmp ecx, edx
jae 0x140008038
mov eax, ecx
cmp byte [rax + r14], 0xd
je 0x140008038
cmp byte [rax + r14], r9b
je 0x140008038
add ecx, esi
jmp 0x14000801e
cmp r8d, edx
jne 0x140008042
mov ebx, r8d
jmp 0x140008061
cmp byte [r14], r9b
jne 0x14000804b
mov ebx, esi
jmp 0x140008061
lea eax, [rdx - 1]
cmp r8d, eax
jae 0x14000805c
cmp byte [r14 + 1], r9b
mov ebx, r8d
je 0x140008061
mov ebx, 2
mov dword [r13 + 0x4c], ebx
movsxd rax, ebx
lea rcx, section..data
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x48], rax
lea rcx, [r13 + 0x58]
xor edx, edx
mov r8d, 0x1000
call fcn.140008e70
xor ebx, ebx
mov ecx, ebx
mov dword [rbp + 8], ebx
mov r14d, ebx
mov dword [rbp + 4], ebx
mov edx, dword [rbp]
cmp ecx, edx
jae 0x140008206
mov eax, ecx
mov r10, qword [rbp + 0x40]
movsx ebx, byte [rax + r10]
mov dword [rbp + 0x1c], ebx
add ecx, esi
mov dword [rbp + 8], ecx
cmp ecx, edx
jne 0x1400080e6
cmp edx, 0x8000
jne 0x1400080e6
xor ecx, ecx
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
mov r8d, edx
mov rdx, r10
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400082e5
mov dword [rbp + 8], ecx
movsxd rax, r15d
mov byte [rax + rdi], bl
add r15d, esi
mov dword [rbp + 0x10], r15d
mov eax, dword [rbp + 0xc]
cmp r15d, eax
jne 0x140008134
add eax, 0x100
mov dword [rbp + 0xc], eax
mov dword [rbp + 0x38], eax
movsxd rcx, eax
call fcn.14001d268
mov rbx, rax
movsxd r8, r15d
mov rdx, rdi
mov rcx, rax
call fcn.1401bd490
mov rdx, rsi
mov rcx, rdi
call fcn.140003f48
mov rdi, rbx
mov qword [rbp + 0x28], rbx
mov ebx, dword [rbp + 0x1c]
movsxd rax, r14d
mov rcx, qword [rbp + 0x48]
cmp bl, byte [rax + rcx]
jne 0x1400081f6
add r14d, esi
mov dword [rbp + 4], r14d
movsxd rax, r14d
xor ebx, ebx
cmp byte [rax + rcx], bl
jne 0x1400081fe
sub r15d, r14d
movsxd rax, r15d
mov byte [rax + rdi], bl
test rdi, rdi
je 0x1400081dc
mov rcx, rdi
call fcn.1401c2180
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400081dc
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140008197
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401bc460
sub rsp, rcx
lea rbx, [rsp + 0x40]
xor eax, eax
test rbx, rbx
je 0x1400081dc
mov word [rbx], ax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
xor ebx, ebx
jmp 0x1400081df
mov rdx, rbx
or r9d, 0xffffffff
or r8d, r9d
mov rcx, r13
call fcn.1400078e4
mov r15d, ebx
mov dword [rbp + 0x10], ebx
jmp 0x1400081f8
xor ebx, ebx
mov dword [rbp + 4], ebx
mov r14d, ebx
mov ecx, dword [rbp + 8]
jmp 0x140008095
movsxd rax, r15d
mov byte [rax + rdi], bl
test rdi, rdi
je 0x140008286
mov rcx, rdi
call fcn.1401c2180
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140008286
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140008241
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401bc460
sub rsp, rcx
lea rbx, [rsp + 0x40]
xor eax, eax
test rbx, rbx
je 0x140008286
mov word [rbx], ax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
xor ebx, ebx
jmp 0x140008289
mov rdx, rbx
or r9d, 0xffffffff
or r8d, r9d
mov rcx, r13
call fcn.1400078e4
mov dword [r13 + 0x40], esi
mov eax, dword [rbp + 0x20]
and eax, esi
mov dword [r13 + 0x44], eax
mov dword [r13 + 0x48], ebx
and qword [r13 + 0xb0], 0
mov dword [r13 + 0x54], 0x80000
and qword [r13 + 0xa8], 0
mov r15d, esi
or dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.14000956c
jmp 0x1400082e9
mov esi, 1
jmp 0x1400082e9
mov r15d, dword [rbp + 0x14]
test rdi, rdi
je 0x1400082f9
mov rdx, rsi
mov rcx, rdi
call fcn.140003f48
test r12, r12
je 0x140008307
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.1401bc4c0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret