Function at 0x140001430
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 0x14000147b
add rcx, 0x78
lea rdx, [0x140023400]
call fcn.140002d00
mov qword [rbx], rax
test rax, rax
je 0x140001680
xor r8d, r8d
mov dword [rsp + 0x24], 0
xor edx, edx
mov rcx, rax
call fcn.14000b044
mov r9, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.14000ad74
cmp byte [rsp + 0x20], 0x4d
jne 0x14000155d
cmp byte [rsp + 0x21], 0x5a
jne 0x14000155d
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14000b044
mov r9, qword [rbx]
lea rcx, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ad74
mov edx, dword [rsp + 0x24]
xor r8d, r8d
mov rcx, qword [rbx]
add edx, 0x18
call fcn.14000b044
mov r9, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14000ad74
cmp byte [rsp + 0x20], 0xb
jne 0x14000155d
movzx eax, byte [rsp + 0x21]
cmp al, 1
jne 0x140001520
mov ecx, 0x98
jmp 0x140001529
cmp al, 2
jne 0x14000155d
mov ecx, 0xa8
mov edx, dword [rsp + 0x24]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rbx]
call fcn.14000b044
mov r9, qword [rbx]
lea rcx, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ad74
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x14000155d
cmp eax, 1
jge 0x140001573
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14000b044
mov rcx, qword [rbx]
call fcn.14000b540
mov rcx, qword [rbx]
lea esi, [rax - 0x60]
mov edx, esi
lea rdi, [rsp + 0x38]
xor r8d, r8d
call fcn.14000b044
test eax, eax
jne 0x140001680
mov r9, qword [rbx]
lea edx, [rax + 0x60]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x30]
call fcn.14000ad74
cmp rax, 1
jb 0x140001680
nop
mov r8d, 8
lea rcx, str.MEI_f_v_n_v
mov rdx, rdi
call fcn.14000a5e0
test eax, eax
je 0x1400015db
dec rdi
lea rax, [rsp + 0x30]
cmp rdi, rax
jae 0x1400015b0
jmp 0x140001680
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 [0x140033b04], 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.14000b044
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000a99c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400016aa
lea rdx, str.Could_not_allocate_buffer_for_TOC.
lea rcx, str.malloc
call fcn.140001890
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140008740
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.14000ad74
cmp rax, 1
jae 0x1400016dc
lea rdx, str.Could_not_read_from_file.
lea rcx, str.fread
jmp 0x14000167b
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.14000aab8
test eax, eax
je 0x14000170b
lea rcx, str.Error_on_file_n.
call fcn.140001cb0
jmp 0x140001680
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000171f
call fcn.14000aa28
mov qword [rbx], 0
xor eax, eax
jmp 0x140001685