Function at 0x140015dc0
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 [0x1410e3100]
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.14001c6b0
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 0x1400079b9
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 0x1400079b9
mov r14d, r12d
mov dword [rbp + 0x1c], r12d
mov eax, 0x8000
call fcn.14007aad0
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 0x1400079b9
cmp ebx, 0xffffffff
jne 0x1400077f7
mov ecx, r12d
mov dword [rbp + 0x38], ecx
mov r8d, dword [rbp + 0x10]
nop
cmp ecx, r8d
jae 0x1400077bd
mov eax, ecx
movzx edx, byte [rax + r15]
cmp dl, 0xd
je 0x1400077bd
cmp dl, 0xa
je 0x1400077bd
inc ecx
mov dword [rbp + 0x38], ecx
jmp 0x1400077a0
cmp r12d, r8d
jne 0x1400077c7
mov ebx, r12d
jmp 0x1400077f7
mov eax, r12d
cmp byte [rax + r15], 0xa
jne 0x1400077d8
mov ebx, 1
jmp 0x1400077f7
lea eax, [r8 - 1]
cmp r12d, eax
jae 0x1400077f2
lea eax, [r12 + 1]
cmp byte [rax + r15], 0xa
jne 0x1400077f2
mov ebx, r12d
jmp 0x1400077f7
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.140005700
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 0x14000792d
mov eax, esi
movsx r13d, byte [rax + r15]
mov dword [rbp + 0x3c], r13d
inc esi
mov dword [rbp + 0x18], esi
cmp esi, ecx
jne 0x140007882
cmp ecx, 0x8000
jne 0x140007882
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 0x1400079b5
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 0x1400078d5
add eax, 0x100
mov dword [rbp + 0x14], eax
mov dword [rbp + 0x40], eax
movsxd rcx, eax
call fcn.14001c6b0
mov rbx, rax
movsxd r8, r14d
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.1400622b0
mov rcx, qword [rbp + 8]
call fcn.14001c6b8
mov rdx, rbx
mov qword [rbp + 8], rbx
mov rbx, qword [rbp + 0x48]
movsxd rax, edi
cmp r13b, byte [rax + rbx]
jne 0x140007921
inc edi
mov dword [rbp], edi
movsxd rcx, edi
cmp byte [rcx + rbx], 0
jne 0x140007928
movsxd rax, r14d
sub rax, rcx
mov byte [rax + rdx], 0
mov rcx, rdx
call fcn.140005310
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov rcx, qword [rbp + 0x30]
call fcn.140007540
mov r14d, r12d
mov dword [rbp + 0x1c], r12d
mov edi, r12d
mov dword [rbp], r12d
jmp 0x140007928
mov edi, r12d
mov dword [rbp], r12d
jmp 0x140007830
movsxd rax, r14d
mov r13, qword [rbp + 8]
mov byte [rax + r13], 0
mov rcx, r13
call fcn.140005310
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.140007540
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.1400054c0
mov rsi, qword [rbp + 0x20]
jmp 0x1400079b9
mov r13, qword [rbp + 8]
test r13, r13
je 0x1400079c6
mov rcx, r13
call fcn.14001c6b8
test rsi, rsi
je 0x1400079d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.1400620c0
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.14004c474
test eax, eax
jne 0x140015de4
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 0x1400076a0