Function at 0x1400018e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x90
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [0x14002c884]
mov rbp, rcx
xor ebx, ebx
call fcn.140003f40
mov rdi, rax
test rax, rax
je 0x140001ba1
mov rax, qword [0x14002e368]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
mov r8d, 8
shr rax, 0x18
mov rcx, rdi
add al, 0xc
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x83], al
call fcn.140007690
mov rsi, rax
test rax, rax
je 0x140001b8e
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.140010844
test eax, eax
jns 0x140001991
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002730
jmp 0x140001b8e
mov edx, 0x58
lea rcx, [rsp + 0x20]
mov r9, rdi
lea r8d, [rdx - 0x57]
call fcn.14001050c
cmp rax, 1
jae 0x1400019c5
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002730
jmp 0x140001b8e
mov edx, 0x1060
mov ecx, 1
call fcn.140014fa4
mov rbx, rax
test rax, rax
jne 0x1400019f4
lea rdx, str.Could_not_allocate_memory_for_archive_structure__n
lea rcx, str.calloc
call fcn.140002730
jmp 0x140001b8e
mov r9, rbp
lea r8, [0x14002ca3c]
mov edx, 0x1000
mov rcx, rbx
call fcn.140001bd0
mov eax, dword [rsp + 0x28]
lea rcx, [rbx + 0x1020]
bswap eax
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x38]
mov eax, dword [rsp + 0x2c]
lea r8, [0x14002ca3c]
bswap eax
mov dword [rsp + 0x2c], eax
mov edx, 0x40
mov eax, dword [rsp + 0x30]
bswap eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rsp + 0x34], eax
mov dword [rbx + 0x101c], eax
call fcn.140001bd0
mov eax, dword [rsp + 0x28]
xor r8d, r8d
sub rsi, rax
mov rcx, rdi
lea rax, [rsi + 0x58]
mov qword [rbx + 0x1000], rax
mov edx, dword [rsp + 0x2c]
add rdx, rax
call fcn.140010844
mov ecx, dword [rsp + 0x30]
call fcn.140014fc0
mov qword [rbx + 0x1008], rax
test rax, rax
jne 0x140001aa7
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002730
jmp 0x140001b8e
mov edx, dword [rsp + 0x30]
mov r9, rdi
mov r8d, 1
mov rcx, rax
call fcn.14001050c
cmp rax, 1
jae 0x140001ada
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002730
jmp 0x140001b8e
mov eax, dword [rsp + 0x30]
mov rcx, rdi
add rax, qword [rbx + 0x1008]
mov qword [rbx + 0x1010], rax
call fcn.140010280
test eax, eax
je 0x140001b09
lea rcx, str.Error_on_file._n
call fcn.1400025c0
jmp 0x140001b8e
mov rdx, qword [rbx + 0x1008]
cmp rdx, qword [rbx + 0x1010]
jae 0x140001b8e
mov r8d, dword [0x14003f010]
xor eax, eax
cmp r8d, 2
jl 0x140001b40
movdqu xmm0, xmmword [rdx]
pshufb xmm0, xmmword [0x14002caa0]
movdqu xmmword [rdx], xmm0
jmp 0x140001b51
mov ecx, dword [rdx + rax*4]
bswap ecx
mov dword [rdx + rax*4], ecx
inc rax
cmp rax, 4
jl 0x140001b40
movzx ecx, byte [rdx + 0x11]
lea eax, [rcx - 0x5a]
test al, 0xf7
je 0x140001b6f
cmp cl, 0x64
je 0x140001b6f
cmp cl, 0x6e
je 0x140001b6f
cmp cl, 0x78
je 0x140001b6f
xor al, al
jmp 0x140001b71
mov al, 1
or al, byte [rbx + 0x1018]
setne al
mov byte [rbx + 0x1018], al
mov eax, dword [rdx]
add rdx, rax
cmp rdx, qword [rbx + 0x1010]
jb 0x140001b20
mov rcx, rdi
call fcn.1400101bc
mov rsi, qword [rsp + 0xa8]
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000b7f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret