Function at 0x140001930
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x90
mov rax, qword [0x140043080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov rdx, rcx
lea rcx, str.LOADER:_attempting_to_open_archive__s_n
xor ebx, ebx
call fcn.140001ea0
lea rdx, [0x14002d834]
mov rcx, rdi
call fcn.140003fd0
mov rbp, rax
test rax, rax
jne 0x140001995
mov rdx, rdi
lea rcx, str.LOADER:_cannot_open_archive:__s_n
call fcn.140001ea0
xor eax, eax
jmp 0x140001c6e
mov rax, qword [0x140030950]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
mov r8d, 8
shr rax, 0x18
mov rcx, rbp
add al, 0xc
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x83], al
call fcn.140007ca0
mov rsi, rax
test rax, rax
jne 0x1400019e8
lea rcx, str.LOADER:_cannot_find_cookie__n
call fcn.140001ea0
jmp 0x140001c5b
mov rdx, rsi
lea rcx, str.LOADER:_cookie_found_at_offset_0x_llX_n
call fcn.140001ea0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call fcn.14001089c
test eax, eax
jns 0x140001a28
call fcn.140016ab8
lea r8, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002260
jmp 0x140001c5b
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 0x58
mov r8d, 1
call fcn.140010564
cmp rax, 1
jae 0x140001a65
call fcn.140016ab8
lea r8, str.Failed_to_read_cookie__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002260
jmp 0x140001c5b
mov edx, 0x1070
mov ecx, 1
call fcn.140016ad8
mov rbx, rax
test rax, rax
jne 0x140001a9b
call fcn.140016ab8
lea r8, str.Could_not_allocate_memory_for_archive_structure__n
lea rcx, str.calloc
mov edx, dword [rax]
call fcn.140002260
jmp 0x140001c5b
mov r9, rdi
lea r8, [0x14002da84]
mov edx, 0x1000
mov rcx, rbx
call fcn.140001ca0
mov eax, dword [rsp + 0x28]
lea rcx, [rbx + 0x102c]
bswap eax
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x38]
mov eax, dword [rsp + 0x2c]
lea r8, [0x14002da84]
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 + 0x1028], eax
call fcn.140001ca0
mov eax, dword [rsp + 0x28]
xor r8d, r8d
sub rsi, rax
mov rcx, rbp
lea rax, [rsi + 0x58]
mov qword [rbx + 0x1000], rax
mov edx, dword [rsp + 0x2c]
add rdx, rax
call fcn.14001089c
mov ecx, dword [rsp + 0x30]
call fcn.140016af4
mov qword [rbx + 0x1008], rax
test rax, rax
jne 0x140001b55
call fcn.140016ab8
lea r8, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002260
jmp 0x140001c5b
mov edx, dword [rsp + 0x30]
mov r9, rbp
mov r8d, 1
mov rcx, rax
call fcn.140010564
cmp rax, 1
jae 0x140001b8f
call fcn.140016ab8
lea r8, str.Could_not_read_full_TOC__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002260
jmp 0x140001c5b
mov eax, dword [rsp + 0x30]
mov rcx, rbp
add rax, qword [rbx + 0x1008]
mov qword [rbx + 0x1010], rax
call fcn.1400102d8
test eax, eax
je 0x140001bbe
lea rcx, str.Error_on_file._n
call fcn.140002080
jmp 0x140001c5b
mov rdx, qword [rbx + 0x1008]
cmp rdx, qword [rbx + 0x1010]
jae 0x140001c5b
mov r8d, dword [0x140043058]
movdqa xmm1, xmmword [0x14002dae0]
xor eax, eax
cmp r8d, 2
jl 0x140001c00
movdqu xmm0, xmmword [rdx]
pshufb xmm0, xmm1
movdqu xmmword [rdx], xmm0
jmp 0x140001c11
mov ecx, dword [rdx + rax*4]
bswap ecx
mov dword [rdx + rax*4], ecx
inc rax
cmp rax, 4
jl 0x140001c00
movzx ecx, byte [rdx + 0x11]
lea eax, [rcx - 0x5a]
test al, 0xf7
je 0x140001c2f
cmp cl, 0x64
je 0x140001c2f
cmp cl, 0x6e
je 0x140001c2f
cmp cl, 0x78
je 0x140001c2f
xor al, al
jmp 0x140001c31
mov al, 1
or al, byte [rbx + 0x1018]
setne al
mov byte [rbx + 0x1018], al
cmp byte [rdx + 0x11], 0x6c
jne 0x140001c4d
mov qword [rbx + 0x1020], rdx
mov eax, dword [rdx]
add rdx, rax
cmp rdx, qword [rbx + 0x1010]
jb 0x140001be1
mov rcx, rbp
call fcn.140010214
mov rsi, qword [rsp + 0xa8]
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000c780
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret