Function at 0x140001450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rcx]
mov rbx, rcx
test rax, rax
jne 0x14000149b
add rcx, 0x78
lea rdx, [0x1400233f0]
call fcn.140002ca0
mov qword [rbx], rax
test rax, rax
je 0x1400016a0
xor r8d, r8d
mov dword [rsp + 0x24], 0
xor edx, edx
mov rcx, rax
call fcn.14000b0b4
mov r9, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.14000ade4
cmp byte [rsp + 0x20], 0x4d
jne 0x14000157d
cmp byte [rsp + 0x21], 0x5a
jne 0x14000157d
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14000b0b4
mov r9, qword [rbx]
lea rcx, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ade4
mov edx, dword [rsp + 0x24]
xor r8d, r8d
mov rcx, qword [rbx]
add edx, 0x18
call fcn.14000b0b4
mov r9, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14000ade4
cmp byte [rsp + 0x20], 0xb
jne 0x14000157d
movzx eax, byte [rsp + 0x21]
cmp al, 1
jne 0x140001540
mov ecx, 0x98
jmp 0x140001549
cmp al, 2
jne 0x14000157d
mov ecx, 0xa8
mov edx, dword [rsp + 0x24]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rbx]
call fcn.14000b0b4
mov r9, qword [rbx]
lea rcx, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ade4
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x14000157d
cmp eax, 1
jge 0x140001593
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14000b0b4
mov rcx, qword [rbx]
call fcn.14000b5b0
mov rcx, qword [rbx]
lea esi, [rax - 0x60]
mov edx, esi
lea rdi, [rsp + 0x38]
xor r8d, r8d
call fcn.14000b0b4
test eax, eax
jne 0x1400016a0
mov r9, qword [rbx]
lea edx, [rax + 0x60]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x30]
call fcn.14000ade4
cmp rax, 1
jb 0x1400016a0
nop
mov r8d, 8
lea rcx, str.MEI_f_v_n_v
mov rdx, rdi
call fcn.14000a650
test eax, eax
je 0x1400015fb
dec rdi
lea rax, [rsp + 0x30]
cmp rdi, rax
jae 0x1400015d0
jmp 0x1400016a0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x30], xmm1
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rbx + 0x50], xmm1
movsd xmm1, qword [rdi + 0x50]
movups xmmword [rbx + 0x60], xmm0
movsd qword [rbx + 0x70], xmm1
mov ecx, dword [rbx + 0x28]
call sub.WS2_32.dll_ntohl
lea rcx, [rsp + 0x30]
mov dword [rbx + 0x407c], 0
sub edi, ecx
mov ecx, dword [rbx + 0x34]
add edi, esi
sub edi, eax
add edi, 0x58
mov dword [rbx + 8], edi
call sub.WS2_32.dll_ntohl
mov dword [0x140033af4], eax
mov ecx, dword [rbx + 0x2c]
call sub.WS2_32.dll_ntohl
add eax, dword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
mov edx, eax
call fcn.14000b0b4
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000aa0c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400016ca
lea rdx, str.Could_not_allocate_buffer_for_TOC.
lea rcx, str.malloc
call fcn.1400018b0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140008760
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov r9, qword [rbx]
mov r8d, 1
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.14000ade4
cmp rax, 1
jae 0x1400016fc
lea rdx, str.Could_not_read_from_file.
lea rcx, str.fread
jmp 0x14000169b
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
add rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rbx]
call fcn.14000ab28
test eax, eax
je 0x14000172b
lea rcx, str.Error_on_file_n.
call fcn.140001cd0
jmp 0x1400016a0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000173f
call fcn.14000aa98
mov qword [rbx], 0
xor eax, eax
jmp 0x1400016a5