Function at 0x140015f30
Capabilities:
Check if file exists
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 [0x141f3f870]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov ebx, r8d
mov rdi, rdx
mov qword [rbp + 0x30], rcx
xor r12d, r12d
mov rsi, r12
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x14], 0x100
mov ecx, 0x100
call fcn.14001c8a8
mov r13, rax
mov qword [rbp + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 0x28], eax
cmp eax, 0xffffffff
je 0x140007a29
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rbp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140007a29
mov r14d, r12d
mov dword [rbp + 0x1c], r12d
mov eax, 0x8000
call fcn.14007a3e0
sub rsp, rax
lea r15, [rsp + 0x40]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x10]
mov r8d, eax
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007a29
cmp ebx, 0xffffffff
jne 0x140007867
mov ecx, r12d
mov dword [rbp + 0x38], ecx
mov r8d, dword [rbp + 0x10]
nop
cmp ecx, r8d
jae 0x14000782d
mov eax, ecx
movzx edx, byte [rax + r15]
cmp dl, 0xd
je 0x14000782d
cmp dl, 0xa
je 0x14000782d
inc ecx
mov dword [rbp + 0x38], ecx
jmp 0x140007810
cmp r12d, r8d
jne 0x140007837
mov ebx, r12d
jmp 0x140007867
mov eax, r12d
cmp byte [rax + r15], 0xa
jne 0x140007848
mov ebx, 1
jmp 0x140007867
lea eax, [r8 - 1]
cmp r12d, eax
jae 0x140007862
lea eax, [r12 + 1]
cmp byte [rax + r15], 0xa
jne 0x140007862
mov ebx, r12d
jmp 0x140007867
mov ebx, 2
mov rcx, qword [rbp + 0x30]
mov dword [rcx + 0x4c], ebx
movsxd rax, ebx
lea rbx, [0x1400b11c8]
mov rbx, qword [rbx + rax*8]
mov qword [rbp + 0x48], rbx
add rcx, 0x58
xor edx, edx
mov r8d, 0x1000
call fcn.140005760
mov esi, r12d
mov dword [rbp + 0x18], r12d
mov edi, r12d
mov dword [rbp], r12d
nop
mov ecx, dword [rbp + 0x10]
cmp esi, ecx
jae 0x14000799d
mov eax, esi
movsx r13d, byte [rax + r15]
mov dword [rbp + 0x3c], r13d
inc esi
mov dword [rbp + 0x18], esi
cmp esi, ecx
jne 0x1400078f2
cmp ecx, 0x8000
jne 0x1400078f2
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x10]
mov r8d, ecx
mov rdx, r15
mov rsi, qword [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007a25
mov esi, r12d
mov dword [rbp + 0x18], r12d
movsxd rax, r14d
mov rdx, qword [rbp + 8]
mov byte [rax + rdx], r13b
inc r14d
mov dword [rbp + 0x1c], r14d
mov eax, dword [rbp + 0x14]
cmp r14d, eax
jne 0x140007945
add eax, 0x100
mov dword [rbp + 0x14], eax
mov dword [rbp + 0x40], eax
movsxd rcx, eax
call fcn.14001c8a8
mov rbx, rax
movsxd r8, r14d
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.140062290
mov rcx, qword [rbp + 8]
call fcn.14001c8a0
mov rdx, rbx
mov qword [rbp + 8], rbx
mov rbx, qword [rbp + 0x48]
movsxd rax, edi
cmp r13b, byte [rax + rbx]
jne 0x140007991
inc edi
mov dword [rbp], edi
movsxd rcx, edi
cmp byte [rcx + rbx], 0
jne 0x140007998
movsxd rax, r14d
sub rax, rcx
mov byte [rax + rdx], 0
mov rcx, rdx
call fcn.140005370
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov rcx, qword [rbp + 0x30]
call fcn.1400075b0
mov r14d, r12d
mov dword [rbp + 0x1c], r12d
mov edi, r12d
mov dword [rbp], r12d
jmp 0x140007998
mov edi, r12d
mov dword [rbp], r12d
jmp 0x1400078a0
movsxd rax, r14d
mov r13, qword [rbp + 8]
mov byte [rax + r13], 0
mov rcx, r13
call fcn.140005370
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.1400075b0
mov dword [rbx + 0x40], 1
mov eax, dword [rbp + 0x28]
and eax, 1
mov dword [rbx + 0x44], eax
mov dword [rbx + 0x48], r12d
mov dword [rbx + 0xb4], r12d
mov dword [rbx + 0xb0], r12d
mov dword [rbx + 0x54], 0x80000
mov dword [rbx + 0xa8], r12d
mov dword [rbx + 0xac], r12d
mov r12d, 1
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140005520
mov rsi, qword [rbp + 0x20]
jmp 0x140007a29
mov r13, qword [rbp + 8]
test r13, r13
je 0x140007a36
mov rcx, r13
call fcn.14001c8a0
test rsi, rsi
je 0x140007a44
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.140062100
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
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14004c6c4
test eax, eax
jne 0x140015f54
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 0xa0]
or r8d, 0xffffffff
mov rdx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140007710