Function at 0x1400033e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
lea r14, [0x140009690]
mov r13, r9
mov r15, r8
mov rsi, rdx
mov r12, rcx
test rdx, rdx
je 0x1400034a0
mov rbx, qword [0x140009690]
test rbx, rbx
je 0x140003466
mov r9d, edi
nop dword [rax]
mov rax, qword [rbx + 8]
mov r8, rsi
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140003453
inc rax
test ecx, ecx
jne 0x140003440
test edx, edx
je 0x14000346b
mov rbx, qword [r14 + r9*8 + 8]
inc r9
inc edi
test rbx, rbx
jne 0x140003430
mov rbx, qword [rsp + 0x68]
movsxd rax, edi
cmp qword [r14 + rax*8], 0
jne 0x140003636
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str.Failed_to_find_demuxer_named___s__n
mov rcx, rax
call fcn.140001010
mov eax, 0xffffff85
jmp 0x140003696
mov rax, qword [0x140009690]
mov ecx, edi
test rax, rax
je 0x1400034c8
mov rdx, rdi
mov eax, dword [rax + 0x10]
lea rdx, [rdx + 1]
cmp ecx, eax
cmovg eax, ecx
mov ecx, eax
mov rax, qword [r14 + rdx*8]
test rax, rax
jne 0x1400034b1
movsxd rbx, ecx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140003500
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_allocate_memory_n
call fcn.140001010
mov eax, 0xfffffff4
jmp 0x140003696
lea rdx, [0x1400096f4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
jne 0x14000356a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea ecx, [rbp + 2]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str.Failed_to_open_input_file__s:__s_n
mov rcx, rax
mov r8, r15
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x140003560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
neg eax
jmp 0x140003696
mov eax, 0xfffffffb
jmp 0x140003696
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rbx, rbx
jne 0x1400035c9
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_read_probe_data_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x140003560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
neg eax
jmp 0x140003696
mov rax, qword [0x140009690]
test rax, rax
je 0x1400035f1
mov rbx, rdi
mov rcx, rsi
call qword [rax + 0x18]
test eax, eax
jne 0x14000362d
mov rax, qword [r14 + rbx*8 + 8]
inc rbx
inc edi
test rax, rax
jne 0x1400035d8
mov rbx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rax, edi
cmp qword [r14 + rax*8], 0
jne 0x140003636
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r15
lea rdx, str.Failed_to_probe_demuxer_for_file__s_n
mov rcx, rax
call fcn.140001010
mov eax, 0xffffff85
jmp 0x140003696
movsxd rax, edi
mov rbx, qword [r14 + rax*8]
jmp 0x1400035f6
movsxd rdx, dword [rbx]
mov ecx, 1
add rdx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x1400034dc
mov r9, qword [rsp + 0x80]
lea rcx, [rax + 0x10]
mov qword [rax], rcx
mov r8, r13
mov qword [rax + 8], rbx
mov rdx, r15
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
call qword [rbx + 0x20]
mov ebx, eax
test eax, eax
jns 0x140003690
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x140003696
mov qword [r12], rdi
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret