Function at 0x1400017b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [rcx + 0x78]
lea rcx, str.LOADER:_archivename_is__s_n
call fcn.140002a10
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001819
lea rdx, [0x14002a650]
lea rcx, [rbx + 0x78]
call fcn.140003fe0
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140001819
lea rdx, [rbx + 0x78]
lea rcx, str.LOADER:_Cannot_open_archive:__s_n
call fcn.140002a10
mov eax, 0xffffffff
jmp 0x140001a03
mov rax, qword [0x14002d5c0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov r8d, 8
shr rax, 0x18
add al, 0xc
mov byte [rsp + 0x23], al
call fcn.140007910
mov rdi, rax
test rax, rax
jne 0x14000185b
lea rcx, str.LOADER:_Cannot_find_cookie__n
call fcn.140002a10
lea eax, [rdi - 1]
jmp 0x140001a03
mov rdx, rdi
lea rcx, str.LOADER:_Cookie_found_at_offset_0x_llX_n
call fcn.140002a10
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rdi
call fcn.1400100a4
test eax, eax
jns 0x140001899
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002530
mov eax, 0xffffffff
jmp 0x140001a03
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov edx, 0x58
lea r8d, [rdx - 0x57]
call fcn.14000fd6c
cmp rax, 1
jae 0x1400018d1
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002530
mov eax, 0xffffffff
jmp 0x140001a03
mov ecx, dword [rbx + 0x28]
xor r8d, r8d
mov eax, dword [rbx + 0x2c]
bswap eax
mov dword [rbx + 0x2c], eax
mov eax, dword [rbx + 0x30]
bswap eax
mov dword [rbx + 0x30], eax
mov eax, dword [rbx + 0x34]
bswap ecx
mov ecx, ecx
sub rdi, rcx
mov dword [rbx + 0x28], ecx
bswap eax
add rdi, 0x58
mov dword [rbx + 0x34], eax
mov qword [rbx + 8], rdi
xor edi, edi
mov dword [rbx + 0x507c], edi
mov dword [0x14003ecb4], eax
mov edx, dword [rbx + 0x2c]
add rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.1400100a4
movsxd rcx, dword [rbx + 0x30]
call fcn.140014820
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000194b
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002530
lea eax, [rdi - 1]
jmp 0x140001a03
movsxd rdx, dword [rbx + 0x30]
mov r8d, 1
mov r9, qword [rbx]
mov rcx, rax
call fcn.14000fd6c
cmp rax, 1
jae 0x140001972
lea rdx, str.Could_not_read_full_TOC__n
jmp 0x1400018bb
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov rcx, qword [rbx]
mov qword [rbx + 0x18], rax
call fcn.14000fae0
test eax, eax
je 0x14000199d
lea rcx, str.Error_on_file._n
call fcn.1400027d0
mov eax, 0xffffffff
jmp 0x140001a03
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jae 0x1400019f1
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rcx, rax
mov rax, rcx
cmp rcx, qword [rbx + 0x10]
jb 0x1400019e5
cmp rcx, qword [rbx + 0x18]
jb 0x1400019b0
jmp 0x1400019f1
lea rcx, str.Cannot_read_Table_of_Contents._n
call fcn.1400027d0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001a01
call fcn.14000fa1c
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000b4f0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret