Function at 0x1400144a8
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rcx
xor esi, esi
test rdx, rdx
jne 0x1400144da
xor eax, eax
jmp 0x1400148e1
or r13, 0xffffffffffffffff
mov rax, r13
inc rax
cmp word [rdx + rax*2], si
jne 0x1400144e1
cmp rax, 1
ja 0x140014516
mov ecx, 0xe1230fae
xor r8d, r8d
call fcn.140012050
mov rbx, rax
mov rdx, rax
mov rcx, r12
call fcn.14000556c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400144d3
lea rbx, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r14d, 0xffffffff
cmp eax, r14d
jne 0x140014533
mov ecx, 0xe1230faf
jmp 0x1400144f5
mov qword [rbp - 0x28], r13
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp - 0x28], rax
cmp rax, r13
jne 0x140014574
mov ecx, 0xe1230fb0
jmp 0x140014596
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, r14d
jne 0x14001458d
mov ecx, 0xe1230fb1
jmp 0x140014596
test eax, eax
jne 0x1400145ba
mov ecx, 0xe1230fb3
xor r8d, r8d
call fcn.140012050
mov rbx, rax
mov rdx, rax
mov rcx, r12
call fcn.14000556c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400148cc
lea eax, [rbx + 2]
mov r15d, eax
mov ecx, eax
call fcn.140030030
mov r14, rax
mov qword [rbp - 0x20], rax
test rax, rax
jne 0x1400145dd
mov ecx, 0xe1230fb2
jmp 0x1400148a2
mov r8, r15
xor edx, edx
mov rcx, r14
call fcn.1400280e0
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x48]
mov r8d, ebx
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001489d
cmp ebx, dword [rbp + 0x48]
jne 0x14001489d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x28], r13
mov r15, r14
mov rax, rbx
shr rax, 1
lea rax, [r14 + rax*2]
mov qword [rbp - 0x30], rax
mov r13d, 1
mov dword [rbp + 0x50], 0x1005
mov ecx, 0xfeff
cmp word [r14], cx
jne 0x140014652
lea r15, [r14 + 2]
jmp 0x140014712
mov ecx, 0xfffe
cmp word [r14], cx
jne 0x140014699
lea r15, [r14 + 2]
shr ebx, 1
sub ebx, r13d
mov r9d, ebx
mov r8d, esi
je 0x140014712
mov rdx, rsi
movzx ecx, byte [r15 + rdx*2 + 1]
movzx eax, word [r15 + rdx*2]
shl ax, 8
or cx, ax
mov word [r15 + rdx*2], cx
inc r8d
mov edx, r8d
cmp rdx, r9
jb 0x140014675
jmp 0x14001470e
lea r8, [rbp + 0x50]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
jne 0x14001470e
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
lea rdi, [rbx + rbx]
mov rcx, rdi
call fcn.140030030
mov r15, rax
mov qword [rbp - 0x18], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r14
lea rax, [rdi + r15]
mov qword [rbp - 0x30], rax
mov rcx, r14
call fcn.14002a1b8
mov rax, qword [rbp - 0x30]
mov rdi, r15
cmp word [r15], si
je 0x140014894
cmp rdi, rax
jae 0x140014894
jmp 0x140014739
cmp word [rdi], 0xd
je 0x14001473f
cmp word [rdi], si
je 0x14001473f
add rdi, 2
cmp word [rdi], 0xa
jne 0x14001472a
mov word [rdi], si
add rdi, 2
mov rdx, r15
lea rcx, [rbp + 0x58]
call fcn.140006ba8
nop
lea rcx, [rbp + 0x58]
call fcn.1400150e8
mov r14, qword [rbp + 0x58]
mov rbx, rsi
cmp word [r14], si
je 0x1400147df
movzx ecx, word [r14]
call fcn.14003595c
test eax, eax
je 0x140014780
test rbx, rbx
jne 0x140014783
mov rbx, r14
jmp 0x140014783
mov rbx, rsi
add r14, 2
cmp word [r14], si
jne 0x140014769
test rbx, rbx
je 0x1400147db
mov rax, qword [rbp + 0x58]
sub rbx, rax
sar rbx, 1
test ebx, ebx
js 0x140014863
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x1400147c4
mov edx, ebx
lea rcx, [rbp + 0x58]
call fcn.1400072ac
mov rax, qword [rbp + 0x58]
cmp ebx, dword [rax - 0xc]
jg 0x140014858
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rbp + 0x58]
mov word [rax + rcx*2], si
mov r14, qword [rbp + 0x58]
movzx eax, word [r14]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140014805
cmp word [r14 + 2], si
je 0x140014805
mov rdx, r14
mov rcx, r12
call fcn.1400148fc
jmp 0x140014810
mov rdx, r14
mov rcx, r12
call fcn.140005540
test eax, eax
mov r13d, eax
je 0x14001486e
cmp word [rdi], 0xa
je 0x140014823
cmp word [rdi], 0xd
jne 0x140014829
add rdi, 2
jmp 0x140014817
mov r15, rdi
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001484a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp word [rdi], si
je 0x140014894
mov rax, qword [rbp - 0x30]
jmp 0x14001471f
mov ecx, 0x80070057
call fcn.140003cb0
int3
mov ecx, 0x80070057
call fcn.140003cb0
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400148c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400148c2
mov esi, r13d
or r13, 0xffffffffffffffff
jmp 0x1400148c2
mov ecx, 0xe1230fb3
xor r8d, r8d
call fcn.140012050
mov rbx, rax
mov rdx, rax
mov rcx, r12
call fcn.14000556c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rbp - 0x20]
call fcn.14002a1b8
nop
mov rcx, qword [rbp - 0x28]
cmp rcx, r13
je 0x1400148df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x28], r13
mov eax, esi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret