Function at 0x140006c0c
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 [0x1405e0190]
xor rax, rbp
mov qword [rbp + 0x58], rax
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov qword [rbp + 0x18], rcx
xor edi, edi
mov r13, rdi
mov qword [rbp + 0x30], rdi
mov eax, 0x100
mov dword [rbp + 0x10], eax
mov rcx, rax
call fcn.140002acc
mov r14, rax
mov qword [rbp + 0x28], rax
mov r12d, edi
mov dword [rbp + 0x14], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 0x20], eax
cmp eax, 0xffffffff
je 0x140006f10
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
mov qword [rbp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140006f10
mov dword [rbp], edi
mov eax, 0x8000
call fcn.140078b20
sub rsp, rax
lea rsi, [rsp + 0x40]
mov qword [rbp + 0x40], rsi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 8]
mov r8d, eax
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x140006f10
cmp ebx, 0xffffffff
jne 0x140006d5a
mov ecx, edi
mov dword [rbp + 0x24], ecx
mov r8b, 0xa
mov edx, dword [rbp + 8]
cmp ecx, edx
jae 0x140006d2a
mov eax, ecx
cmp byte [rax + rsi], 0xd
je 0x140006d2a
cmp byte [rax + rsi], r8b
je 0x140006d2a
inc ecx
mov dword [rbp + 0x24], ecx
jmp 0x140006d11
cmp edi, edx
jne 0x140006d32
mov ebx, edi
jmp 0x140006d5a
mov eax, edi
cmp byte [rax + rsi], r8b
jne 0x140006d41
mov ebx, 1
jmp 0x140006d5a
lea eax, [rdx - 1]
cmp edi, eax
jae 0x140006d55
lea eax, [rdi + 1]
cmp byte [rax + rsi], r8b
jne 0x140006d55
mov ebx, edi
jmp 0x140006d5a
mov ebx, 2
mov dword [r15 + 0x4c], ebx
movsxd rax, ebx
lea rbx, [0x1400ae1c8]
mov rbx, qword [rbx + rax*8]
mov qword [rbp + 0x50], rbx
lea rcx, [r15 + 0x58]
xor edx, edx
mov r8d, 0x1000
call fcn.140004f38
mov r12d, edi
mov dword [rbp + 0xc], edi
mov esi, edi
mov dword [rbp + 4], edi
mov edx, edi
mov ecx, dword [rbp + 8]
cmp r12d, ecx
jae 0x140006e94
mov eax, r12d
mov r10, qword [rbp + 0x40]
movsx r15d, byte [rax + r10]
mov dword [rbp + 0x48], r15d
inc r12d
mov dword [rbp + 0xc], r12d
cmp r12d, ecx
jne 0x140006de7
cmp ecx, 0x8000
jne 0x140006de7
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 8]
mov r8d, ecx
mov rdx, r10
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x140006f0c
mov r12d, edi
mov dword [rbp + 0xc], edi
mov edx, dword [rbp]
movsxd rax, edx
mov byte [rax + r14], r15b
inc edx
mov dword [rbp], edx
mov eax, dword [rbp + 0x10]
cmp edx, eax
jne 0x140006e35
add eax, 0x100
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x38], eax
movsxd rcx, eax
call fcn.140002acc
mov rbx, rax
movsxd r8, dword [rbp]
mov rdx, r14
mov rcx, rax
call fcn.140060300
mov rcx, r14
call fcn.14001a72c
mov r14, rbx
mov qword [rbp + 0x28], rbx
mov edx, dword [rbp]
mov rbx, qword [rbp + 0x50]
movsxd rax, esi
cmp r15b, byte [rax + rbx]
jne 0x140006e80
inc esi
mov dword [rbp + 4], esi
movsxd rcx, esi
cmp byte [rcx + rbx], dil
jne 0x140006e8b
movsxd rax, edx
sub rax, rcx
mov byte [rax + r14], dil
mov rcx, r14
call fcn.14001ca08
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov r15, qword [rbp + 0x18]
mov rcx, r15
call fcn.140006abc
mov edx, edi
mov dword [rbp], edx
mov esi, edi
mov dword [rbp + 4], edi
jmp 0x140006e8f
mov esi, edi
mov dword [rbp + 4], edi
mov r15, qword [rbp + 0x18]
jmp 0x140006e8f
mov r15, qword [rbp + 0x18]
jmp 0x140006d8e
movsxd rax, edx
mov byte [rax + r14], dil
mov rcx, r14
call fcn.14001ca08
mov rdx, rax
or r9d, 0xffffffff
or r8d, r9d
mov rcx, r15
call fcn.140006abc
mov ecx, 1
mov dword [r15 + 0x40], ecx
mov eax, dword [rbp + 0x20]
and eax, ecx
mov dword [r15 + 0x44], eax
mov dword [r15 + 0x48], edi
mov dword [r15 + 0xb4], edi
mov dword [r15 + 0xb0], edi
mov dword [r15 + 0x54], 0x80000
mov dword [r15 + 0xa8], edi
mov dword [r15 + 0xac], edi
mov r12d, ecx
or dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.140004d48
jmp 0x140006f10
mov r12d, dword [rbp + 0x14]
cmp r14, rdi
je 0x140006f1d
mov rcx, r14
call fcn.14001a72c
cmp r13, rdi
je 0x140006f2b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov rcx, qword [rbp + 0x58]
xor rcx, rbp
call fcn.140060110
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