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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x40]
mov rax, qword [0x141724cd0]
xor rax, rbp
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0x30], 0
mov dword [rbp + 0x24], 0x100
movsxd rax, dword [rbp + 0x24]
mov rcx, rax
call fcn.14002d248
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x58], 0
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x50], eax
cmp dword [rbp + 0x50], 0xffffffff
jne 0x14000afcc
jmp 0x14000b4e5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0xffffffffffffffff
jne 0x14000b010
jmp 0x14000b4e5
mov dword [rbp], 0
mov dword [rbp + 0x98], 0x8000
mov eax, 0x8000
call fcn.1401e8ac0
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, 0x8000
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000b061
jmp 0x14000b4e5
cmp dword [rbp + 0xe0], 0xffffffff
jne 0x14000b116
mov dword [rbp + 0x28], 0
mov dword [rbp + 0x20], 0
jmp 0x14000b086
mov eax, dword [rbp + 0x20]
inc eax
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x20], eax
jae 0x14000b0b2
mov eax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x14000b0ae
mov eax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000b0b0
jmp 0x14000b0b2
jmp 0x14000b07e
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x28], eax
jne 0x14000b0c6
mov dword [rbp + 0xe0], 0
jmp 0x14000b116
mov eax, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x38]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000b0e2
mov dword [rbp + 0xe0], 1
jmp 0x14000b116
mov eax, dword [rbp + 4]
dec eax
cmp dword [rbp + 0x28], eax
jae 0x14000b10c
mov eax, dword [rbp + 0x28]
inc eax
mov eax, eax
mov rcx, qword [rbp + 0x38]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000b10c
mov dword [rbp + 0xe0], 0
jmp 0x14000b116
mov dword [rbp + 0xe0], 2
mov rax, qword [rbp + 0xd0]
mov ecx, dword [rbp + 0xe0]
mov dword [rax + 0x4c], ecx
movsxd rax, dword [rbp + 0xe0]
lea rcx, section..data
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xd0]
add rax, 0x58
mov r8d, 0x1000
xor edx, edx
mov rcx, rax
call fcn.14000c75c
mov dword [rbp + 0x10], 0
mov dword [rbp + 8], 0
call fcn.14017f048
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x10], eax
jae 0x14000b364
mov eax, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x38]
movsx eax, byte [rcx + rax]
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x10], eax
jne 0x14000b1d1
cmp dword [rbp + 4], 0x8000
jne 0x14000b1d1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, 0x8000
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000b1ca
jmp 0x14000b4e5
mov dword [rbp + 0x10], 0
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x18]
mov dl, byte [rbp + 0x48]
mov byte [rcx + rax], dl
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp], eax
jne 0x14000b250
mov eax, dword [rbp + 0x24]
add eax, 0x100
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
mov rcx, rax
call fcn.14002d248
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x68], rax
movsxd rax, dword [rbp]
mov r8, rax
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x68]
call fcn.1401e9af0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xb0], rax
mov edx, 1
mov rcx, qword [rbp + 0xb0]
call fcn.1401e8b54
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x18], rax
movsx eax, byte [rbp + 0x48]
movsxd rcx, dword [rbp + 8]
mov rdx, qword [rbp + 0x70]
movsx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x14000b358
mov eax, dword [rbp + 8]
inc eax
mov dword [rbp + 8], eax
movsxd rax, dword [rbp + 8]
mov rcx, qword [rbp + 0x70]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14000b356
mov eax, dword [rbp + 8]
mov ecx, dword [rbp]
sub ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rbp + 0x18]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
jne 0x14000b2b4
mov qword [rbp + 0x80], 0
jmp 0x14000b329
mov rcx, qword [rbp + 0x40]
call fcn.1401ed8c0
inc eax
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0x3fffffff
jle 0x14000b2d5
mov qword [rbp + 0x78], 0
jmp 0x14000b31e
movsxd rax, dword [rbp + 0xc]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14000b2f2
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401e8ac0
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x4c]
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x40]
mov rcx, rax
call fcn.140004ce0
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x80], rax
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp + 0xd0]
call fcn.14000a5b4
mov dword [rbp], 0
mov dword [rbp + 8], 0
jmp 0x14000b35f
mov dword [rbp + 8], 0
jmp 0x14000b16d
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x18]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
jne 0x14000b38c
mov qword [rbp + 0x90], 0
jmp 0x14000b40a
mov rcx, qword [rbp + 0x40]
call fcn.1401ed8c0
inc eax
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0x3fffffff
jle 0x14000b3b0
mov qword [rbp + 0x88], 0
jmp 0x14000b3fc
movsxd rax, dword [rbp + 0xc]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14000b3cd
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401e8ac0
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x4c]
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x40]
mov rcx, rax
call fcn.140004ce0
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x90], rax
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, qword [rbp + 0x90]
mov rcx, qword [rbp + 0xd0]
call fcn.14000a5b4
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0x40], 1
mov eax, dword [rbp + 0x50]
and eax, 1
test eax, eax
je 0x14000b44a
mov dword [rbp + 0x54], 1
jmp 0x14000b451
mov dword [rbp + 0x54], 0
mov rax, qword [rbp + 0xd0]
mov ecx, dword [rbp + 0x54]
mov dword [rax + 0x44], ecx
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0x48], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xb4], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xb0], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0x54], 0x80000
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xa8], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xac], 0
mov dword [rbp + 0x58], 1
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xd0]
call fcn.14000d6b0
nop
cmp qword [rbp + 0x18], 0
je 0x14000b502
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x60], rax
mov edx, 1
mov rcx, qword [rbp + 0x60]
call fcn.1401e8b54
cmp qword [rbp + 0x30], 0
je 0x14000b513
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x58]
mov rcx, qword [rbp + 0xb8]
xor rcx, rbp
call fcn.1401e8b30
lea rsp, [rbp + 0xc0]
pop rbp
ret