Function at 0x140018060
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
mov eax, 0x1308
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140024b10
sub rsp, rax
movaps xmmword [rsp + 0x12f0], xmm6
mov rbx, rcx
mov eax, dword [0x140042214]
test eax, eax
jne 0x1400181be
mov rax, rcx
sub rax, qword [0x140042200]
xor esi, esi
cmp rax, 0x1869f
jle 0x1400180b2
mov esi, dword [0x140042248]
test esi, esi
je 0x1400180d0
xor esi, esi
movaps xmm6, xmmword [rsp + 0x12f0]
mov eax, esi
add rsp, 0x1308
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [0x1400421f8], 0
je 0x140018188
mov eax, dword [0x1400421f0]
test eax, eax
je 0x140018174
lea r14, [rsp + 0x2f0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, qword [0x1400421f8]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400181c8
mov r9d, dword [rsp + 0x2f0]
test r9d, r9d
je 0x1400181c8
lea rdx, [rsp + 0xf0]
mov r8d, 1
xor ecx, ecx
call sub.msvcrt.dll__read
movzx eax, byte [rsp + 0xf0]
mov dword [rsp + 0x4c], eax
cmp eax, 0x71
mov qword [0x140042200], rbx
je 0x1400181be
cmp eax, 0x2b
jne 0x1400181d4
call sub.avutil_55.dll_av_log_get_level
lea ecx, [rax + 0xa]
call sub.avutil_55.dll_av_log_set_level
jmp 0x1400180b2
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x1400181c8
call sub.msvcrt.dll__getch
mov dword [rsp + 0x4c], eax
jmp 0x140018151
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x1f0]
mov qword [0x1400421f8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
sete al
movzx eax, al
mov dword [0x1400421f0], eax
jmp 0x1400180e4
mov esi, 0xabb6a7bb
jmp 0x1400180b2
mov qword [0x140042200], rbx
jmp 0x1400180b2
cmp dword [rsp + 0x4c], 0x2d
jne 0x1400181ed
call sub.avutil_55.dll_av_log_get_level
lea ecx, [rax - 0xa]
call sub.avutil_55.dll_av_log_set_level
jmp 0x1400180b2
cmp dword [rsp + 0x4c], 0x73
je 0x14001822c
cmp dword [rsp + 0x4c], 0x68
jne 0x140018258
mov rax, qword [0x14003da40]
mov rdx, qword [0x14003da50]
mov r8d, dword [rax]
test r8d, r8d
je 0x140018240
mov dword [rdx], 0
mov dword [rax], 0
mov ecx, 0x30
call sub.avutil_55.dll_av_log_set_level
jmp 0x1400180b2
mov rax, qword [0x14003dc40]
xor dword [rax], 1
jmp 0x1400180b2
mov ecx, dword [rdx]
test ecx, ecx
je 0x140018250
mov dword [rax], 1
jmp 0x14001821d
mov dword [rdx], 1
jmp 0x14001821d
mov eax, dword [rsp + 0x4c]
cmp eax, 0x63
sete byte [rsp + 0x5c]
and eax, 0xffffffdf
cmp eax, 0x43
jne 0x140018671
lea r13, [rsp + 0x1f0]
xor eax, eax
mov ecx, 0x20
lea r14, [rsp + 0x2f0]
lea r15, [rsp + 0xb0]
xor r12d, r12d
mov rdi, r13
rep stosq qword [rdi], rax
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
call rdi
lea rdx, str._nEnter_command:__target_all__time__1__command____argument___n
lea rcx, [rax + 0x60]
call fcn.140015980
mov rbp, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [rsp + 0x50], r12d
mov ebx, r12d
jmp 0x140018339
lea rax, [rsp + 0xf0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, qword [0x1400421f8]
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x140018413
mov edx, dword [rsp + 0xf0]
test edx, edx
je 0x140018413
lea rdx, [rsp + 0x70]
xor ecx, ecx
mov r8d, 1
call sub.msvcrt.dll__read
movzx eax, byte [rsp + 0x70]
cmp eax, 0xa
je 0x14001836c
cmp eax, 0xd
je 0x140018460
cmp ebx, 0xffe
ja 0x140018460
test eax, eax
jg 0x140018450
cmp qword [0x1400421f8], 0
je 0x1400183e2
mov eax, dword [0x1400421f0]
test eax, eax
jne 0x1400182c2
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x140018413
call sub.msvcrt.dll__getch
cmp eax, 0xa
jne 0x14001831c
movsxd rax, dword [rsp + 0x50]
mov byte [rsp + rax + 0x2f0], 0
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
lea rbp, [rsp + 0x70]
lea rbx, [rsp + 0xf0]
lea r9, [rsp + 0x68]
lea rdx, str._63_____lf__255_____255__n_
mov qword [rsp + 0x28], r13
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov r8, rbp
call fcn.140015950
cmp eax, 2
mov r9d, eax
jg 0x1400184a0
lea r8, str.Parse_error__at_least_3_arguments_were_expected__only__d_given_in_string__s_n
mov qword [rsp + 0x20], r14
mov edx, 0x10
xor ecx, ecx
call sub.avutil_55.dll_av_log
jmp 0x1400180b2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, r15
mov qword [0x1400421f8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
sete al
movzx eax, al
mov dword [0x1400421f0], eax
jmp 0x14001834d
cmp r12, 0xffe
jbe 0x140018339
movsxd rax, dword [rsp + 0x50]
mov byte [rsp + rax + 0x2f0], 0
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
xor r9d, r9d
jmp 0x1400183c5
mov byte [r14 + r12], al
add r12, 1
jmp 0x1400182b8
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov byte [rsp + rax + 0x2f0], 0
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
mov r8d, dword [rsp + 0x58]
xor r9d, r9d
test r8d, r8d
jle 0x1400183c5
jmp 0x14001838b
movsd xmm0, qword [rsp + 0x68]
lea r8, str.Processing_command_target:_s_time:_f_command:_s_arg:_s
xor ecx, ecx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
movsd qword [rsp + 0x20], xmm0
mov r9, rbp
mov edx, 0x30
xor r15d, r15d
lea r12, [0x1400435f8]
call sub.avutil_55.dll_av_log
mov eax, dword [0x1400435f0]
test eax, eax
jle 0x1400180b2
lea rcx, [rsp + 0xb0]
pxor xmm6, xmm6
mov qword [rsp + 0x50], rcx
movzx ecx, byte [rsp + 0x5c]
mov dword [rsp + 0x58], ecx
mov rcx, r12
mov r12, rdi
mov rdi, rbp
mov rbp, rbx
mov rbx, rcx
jmp 0x14001854a
movsd qword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
mov r9, r13
mov r8, rbp
mov rdx, rdi
call sub.avfilter_6.dll_avfilter_graph_queue_command
test eax, eax
js 0x1400185e2
mov eax, dword [0x1400435f0]
lea edx, [r15 + 1]
add r15, 1
cmp edx, eax
jge 0x1400180b2
mov rdx, qword [rbx]
mov rdx, qword [rdx + r15*8]
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14001853a
movsd xmm0, qword [rsp + 0x68]
ucomisd xmm6, xmm0
ja 0x140018590
cmp dword [rsp + 0x4c], 0x63
jne 0x140018510
call r12
lea rdx, str.Queing_commands_only_on_filters_supporting_the_specific_command_is_unsupported_n
lea rcx, [rax + 0x60]
call fcn.140015980
mov eax, dword [0x1400435f0]
jmp 0x14001853a
mov eax, dword [rsp + 0x58]
mov r9, r13
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x30], eax
call sub.avfilter_6.dll_avfilter_graph_send_command
mov dword [rsp + 0x5c], eax
call r12
mov r9d, dword [rsp + 0x5c]
lea rcx, [rax + 0x60]
lea rdx, str.Command_reply_for_stream__d:_ret:_d_res:_n_s
mov qword [rsp + 0x20], r14
mov r8d, r15d
call fcn.140015980
mov eax, dword [0x1400435f0]
jmp 0x14001853a
mov rdx, qword [rsp + 0x50]
mov r8d, 0x40
mov ecx, eax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
call sub.avutil_55.dll_av_strerror
call r12
mov r8, qword [rsp + 0x50]
lea rcx, [rax + 0x60]
lea rdx, str.Queing_command_failed_with_error__s_n
call fcn.140015980
jmp 0x140018534
cmp eax, 0x44
jne 0x1400188d6
xor edi, edi
cmp dword [rsp + 0x4c], 0x44
mov dword [rsp + 0xb0], 0
je 0x140018800
mov r15, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbp, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea r13, [rsp + 0xf0]
movsxd r12, edi
mov ebx, edi
jmp 0x140018724
lea rax, [rsp + 0x1f0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, qword [0x1400421f8]
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x140018900
mov eax, dword [rsp + 0x1f0]
test eax, eax
je 0x140018900
lea rdx, [rsp + 0x70]
xor ecx, ecx
mov r8d, 1
call sub.msvcrt.dll__read
movzx eax, byte [rsp + 0x70]
cmp eax, 0xa
je 0x140018757
cmp eax, 0xd
je 0x140018970
cmp ebx, 0x1e
ja 0x140018970
test eax, eax
jg 0x140018960
cmp qword [0x1400421f8], 0
je 0x1400187d0
mov eax, dword [0x1400421f0]
test eax, eax
jne 0x1400186b0
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x140018900
call sub.msvcrt.dll__getch
cmp eax, 0xa
jne 0x14001870a
mov byte [rsp + r12 + 0x2f0], 0
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
lea rcx, [rsp + 0x2f0]
lea r8, [rsp + 0xb0]
lea rdx, [0x14003ab87]
call fcn.140015950
cmp eax, 1
je 0x1400187ac
call rdi
lea rdx, str.error_parsing_debug_value_n
lea rcx, [rax + 0x60]
call fcn.140015980
mov ebx, dword [rsp + 0xb0]
mov eax, dword [0x1400420f0]
test eax, eax
jle 0x14001887d
mov rdx, qword [0x1400420f8]
jmp 0x140018850
mov ecx, 0xfffffff6
call r15
mov rdx, r13
mov qword [0x1400421f8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
sete al
movzx eax, al
mov dword [0x1400421f0], eax
jmp 0x140018738
mov rdx, qword [0x1400420f8]
mov rax, qword [rdx]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
mov ebx, dword [rax + 0x2fc]
add ebx, ebx
test ebx, ebx
mov dword [rsp + 0xb0], ebx
jne 0x1400189a3
mov eax, dword [0x1400420f0]
mov dword [rsp + 0xb0], 1
mov ebx, 1
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
test eax, eax
jle 0x140018931
nop
lea ecx, [rax - 1]
lea rax, [rdx + 8]
lea rcx, [rax + rcx*8]
jmp 0x140018864
add rax, 8
mov rdx, qword [rdx]
cmp rcx, rax
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + 8]
mov dword [rdx + 0x2fc], ebx
mov rdx, rax
jne 0x140018860
mov eax, dword [0x1400420d0]
test eax, eax
jle 0x1400188b9
mov rdx, qword [0x1400420d8]
lea ecx, [rax - 1]
lea rax, [rdx + 8]
lea rcx, [rax + rcx*8]
jmp 0x1400188a4
add rax, 8
mov rdx, qword [rdx]
cmp rcx, rax
mov rdx, qword [rdx + 0x48]
mov dword [rdx + 0x2fc], ebx
mov rdx, rax
jne 0x1400188a0
test ebx, ebx
jne 0x140018940
call rdi
lea rdx, str.debug_d_n
lea rcx, [rax + 0x60]
mov r8d, ebx
call fcn.140015980
cmp dword [rsp + 0x4c], 0x3f
jne 0x1400180b2
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.key____function_n_______show_this_help_n______increase_verbosity_n_______decrease_verbosity_nc______Send_command_to_first_matching_filter_supporting_it_nC______Send_Que_command_to_all_matching_filters_nD______cycle_through_available_debug_modes_nh______dump_packets_hex_press_to_cycle_through_the_3_states_nq______quit_ns______Show_QP_histogram_n
lea rcx, [rax + 0x60]
call fcn.140015980
jmp 0x1400180b2
cmp rdi, 0x1e
jbe 0x140018724
mov byte [rsp + r12 + 0x2f0], 0
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
jmp 0x14001879a
mov eax, dword [0x1400420d0]
test eax, eax
jg 0x140018887
nop
mov ecx, 0x30
call sub.avutil_55.dll_av_log_set_level
mov ebx, dword [rsp + 0xb0]
jmp 0x1400188c1
mov byte [rsp + rdi + 0x2f0], al
add rdi, 1
jmp 0x1400186a8
mov r14d, eax
mov byte [rsp + r12 + 0x2f0], 0
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
call rdi
lea rdx, [0x14003a689]
lea rcx, [rax + 0x60]
call fcn.140015980
test r14d, r14d
jle 0x14001879a
jmp 0x140018779
test ebx, 0x6040
je 0x1400189c1
nop dword [rax + rax]
add ebx, ebx
test ebx, 0x6040
jne 0x1400189b0
mov dword [rsp + 0xb0], ebx
mov rdi, qword [sym.imp.msvcrt.dll___iob_func]
jmp 0x1400187b3