Function at 0x14000c520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r14, rcx
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x88], 0
test rcx, rcx
je 0x14000d777
call sub.avformat_57.dll_av_find_input_format
test rax, rax
mov rbx, rax
je 0x14000df67
mov rsi, qword [rsp + 0xf8]
lea rdi, [0x140033e33]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je 0x14000d763
mov rsi, qword [rsp + 0xf8]
lea rdi, str.pipe:
mov ecx, 5
repe cmpsb byte [rsi], byte [rdi]
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je 0x14000c5d2
mov rsi, qword [rsp + 0xf8]
lea rdi, str._dev_stdin
mov ecx, 0xb
repe cmpsb byte [rsi], byte [rdi]
setne al
movzx eax, al
and dword [0x140031024], eax
call sub.avformat_57.dll_avformat_alloc_context
test rax, rax
mov qword [rsp + 0x78], rax
je 0x14000df90
movsxd rax, dword [r14 + 0x50]
test eax, eax
je 0x14000c615
shl rax, 4
add rax, qword [r14 + 0x48]
mov rdx, qword [r14]
xor r9d, r9d
lea rcx, [rdx + 0x28]
lea rdx, str.sample_rate
movsxd r8, dword [rax - 8]
call sub.avutil_55.dll_av_dict_set_int
mov edi, dword [r14 + 0x40]
test edi, edi
je 0x14000d6d5
test rbx, rbx
je 0x14000c68a
cmp qword [rbx + 0x28], 0
je 0x14000d6d5
lea rcx, [rbx + 0x28]
lea rdx, str.channels
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
call sub.avutil_55.dll_av_opt_find
test rax, rax
je 0x14000d6d5
movsxd rax, dword [r14 + 0x40]
mov rdx, qword [r14]
xor r9d, r9d
lea rcx, [rdx + 0x28]
lea rdx, str.channels
shl rax, 4
add rax, qword [r14 + 0x38]
movsxd r8, dword [rax - 8]
call sub.avutil_55.dll_av_dict_set_int
mov esi, dword [r14 + 0x60]
test esi, esi
jne 0x14000d6eb
movsxd rax, dword [r14 + 0x70]
test eax, eax
je 0x14000c6b4
shl rax, 4
add rax, qword [r14 + 0x68]
mov rdx, qword [r14]
xor r9d, r9d
lea rcx, [rdx + 0x28]
lea rdx, str.video_size
mov r8, qword [rax - 8]
call sub.avutil_55.dll_av_dict_set
movsxd rax, dword [r14 + 0x80]
test eax, eax
je 0x14000c6e1
shl rax, 4
add rax, qword [r14 + 0x78]
mov rdx, qword [r14]
xor r9d, r9d
lea rcx, [rdx + 0x28]
lea rdx, str.pixel_format
mov r8, qword [rax - 8]
call sub.avutil_55.dll_av_dict_set
mov eax, dword [r14 + 0x30]
test eax, eax
jle 0x14000dd8a
mov r9, qword [r14 + 0x28]
lea r11d, [rax - 1]
lea rbp, str.vads
xor r12d, r12d
shl r11, 4
lea r8, [r9 + 0x10]
mov rdx, r9
add r11, r8
nop dword [rax]
mov rsi, qword [rdx]
mov ecx, 2
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000c723
mov r12, qword [rdx + 8]
add rdx, 0x10
cmp r11, rdx
jne 0x14000c710
lea r11, [0x140034bc1]
mov rax, r9
xor r13d, r13d
nop dword [rax]
mov rsi, qword [rax]
mov ecx, 2
mov rdi, r11
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000c753
mov r13, qword [rax + 8]
add rax, 0x10
cmp rdx, rax
jne 0x14000c740
lea r11, [0x1400343ac]
mov rdx, r9
xor ebp, ebp
nop dword [rax + rax]
mov rsi, qword [rdx]
mov ecx, 2
mov rdi, r11
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000c783
mov rbp, qword [rdx + 8]
add rdx, 0x10
cmp rax, rdx
jne 0x14000c770
xor r15d, r15d
lea rdx, [0x140034bc3]
jmp 0x14000c7a4
add r8, 0x10
mov rsi, qword [r9]
mov ecx, 2
mov rdi, rdx
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000c7b7
mov r15, qword [r9 + 8]
cmp rax, r8
mov r9, r8
jne 0x14000c7a0
xor edx, edx
test r12, r12
je 0x14000c7d1
mov rcx, r12
call fcn.14000a970
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x488], edx
xor edx, edx
test r13, r13
je 0x14000c7f8
mov edx, 1
mov rcx, r13
call fcn.14000a970
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x48c], edx
xor edx, edx
test rbp, rbp
je 0x14000c81a
mov edx, 3
mov rcx, rbp
call fcn.14000a970
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x490], edx
xor edx, edx
test r15, r15
je 0x14000c83c
mov edx, 2
mov rcx, r15
call fcn.14000a970
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x78]
test r12, r12
mov dword [rax + 0x598], edx
je 0x14000c85e
xor edx, edx
mov rcx, r12
call fcn.14000a970
mov rcx, qword [rsp + 0x78]
mov rdx, rax
call sub.avformat_57.dll_av_format_set_video_codec
test r13, r13
je 0x14000c87d
mov edx, 1
mov rcx, r13
call fcn.14000a970
mov rcx, qword [rsp + 0x78]
mov rdx, rax
call sub.avformat_57.dll_av_format_set_audio_codec
test rbp, rbp
je 0x14000c89c
mov edx, 3
mov rcx, rbp
call fcn.14000a970
mov rcx, qword [rsp + 0x78]
mov rdx, rax
call sub.avformat_57.dll_av_format_set_subtitle_codec
test r15, r15
je 0x14000c8bb
mov edx, 2
mov rcx, r15
call fcn.14000a970
mov rcx, qword [rsp + 0x78]
mov rdx, rax
call sub.avformat_57.dll_av_format_set_data_codec
mov rdx, qword [0x14003db10]
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov r9d, 1
mov r11, qword [rdx]
mov r12, qword [rdx + 8]
lea rdx, [0x140034bc5]
or dword [rax + 0x458], 4
mov qword [rax + 0x4c0], r11
mov qword [rax + 0x4c8], r12
mov rax, qword [r14]
mov rcx, qword [rax + 0x28]
call sub.avutil_55.dll_av_dict_get
test rax, rax
mov rax, qword [r14]
je 0x14000dd20
lea rdx, [rsp + 0x78]
lea r9, [rax + 0x28]
mov r8, rbx
mov rcx, rdx
mov qword [rsp + 0x40], rdx
mov rdx, qword [rsp + 0xf8]
call sub.avformat_57.dll_avformat_open_input
test eax, eax
js 0x14000df77
mov rax, qword [r14]
mov rdx, qword [rax + 0x20]
lea rcx, [rax + 0x28]
call fcn.140021fa0
mov rax, qword [r14]
mov rcx, qword [rax + 0x28]
call fcn.140022000
mov rbx, qword [rsp + 0x78]
mov r10d, dword [rbx + 0x2c]
test r10d, r10d
je 0x14000ca0a
xor r13d, r13d
xor r12d, r12d
nop dword [rax + rax]
mov r9d, dword [r14 + 0x30]
mov rax, qword [rbx + 0x30]
test r9d, r9d
mov rbp, qword [rax + r13]
jle 0x14000d67e
xor esi, esi
xor r15d, r15d
jmp 0x14000c9a6
mov rax, qword [r14 + 0x28]
mov r15, qword [rax + rdi + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x30], eax
jle 0x14000c9d1
mov rax, qword [r14 + 0x28]
mov rdi, rsi
mov rdx, rbp
shl rdi, 4
mov rcx, rbx
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000c990
je 0x14000c999
mov ecx, 1
call fcn.140001cf0
test r15, r15
mov rax, qword [rbp + 8]
je 0x14000d682
mov edx, dword [rax + 0xc]
mov rcx, r15
call fcn.14000a970
mov rdx, qword [rbp + 8]
mov eax, dword [rax + 0x14]
mov dword [rdx + 0x38], eax
mov rbx, qword [rsp + 0x78]
add r12d, 1
add r13, 8
cmp dword [rbx + 0x2c], r12d
ja 0x14000c970
mov rax, qword [r14]
mov rcx, rbx
mov rdx, qword [rax + 0x20]
call fcn.140007d90
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov edx, dword [rcx + 0x2c]
mov dword [rsp + 0x6c], edx
mov rdx, rax
call sub.avformat_57.dll_avformat_find_stream_info
test eax, eax
mov rbp, qword [rsp + 0x78]
js 0x14000dcd7
mov rax, qword [r14 + 0x10]
movabs rdx, 0x8000000000000000
cmp rax, rdx
je 0x14000dc21
mov rdx, qword [rbp + 0x440]
test rdx, rdx
jle 0x14000ddee
add rax, rdx
mov qword [rsp + 0x60], rax
mov qword [r14 + 8], rax
mov eax, dword [r14 + 0x18]
test eax, eax
mov r9, qword [rsp + 0x60]
jne 0x14000caab
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbp + 0x438]
movabs rcx, 0x8000000000000000
lea rdx, [rbx + rax]
cmp rax, rcx
cmove rdx, rbx
mov qword [rsp + 0x60], rdx
mov r9, rdx
mov rax, qword [rbp + 8]
mov edx, dword [rax + 0x10]
and edx, 0x4000000
je 0x14000d77e
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], r9
movabs r8, 0x8000000000000000
mov edx, 0xffffffff
mov rcx, rbp
call sub.avformat_57.dll_avformat_seek_file
test eax, eax
js 0x14000ddb5
mov rbp, qword [rsp + 0x78]
mov r15d, dword [rbp + 0x2c]
test r15d, r15d
je 0x14000de1c
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
nop dword [rax]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rbp + 0x30]
mov rbx, qword [rax + rcx]
mov ecx, 0x1b0
mov rdi, qword [rbx + 8]
call sub.avutil_55.dll_av_mallocz
lea rdx, str.skip_frame
mov r12, rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rcx, rdi
call sub.avutil_55.dll_av_opt_find
test r12, r12
mov qword [rsp + 0x50], rax
je 0x14000c9c7
mov rax, qword [0x14003dba0]
mov edx, 8
mov r9d, dword [rax]
mov r8, rax
mov rax, qword [0x14003db00]
mov rcx, qword [rax]
add r9d, 1
call fcn.140007e40
mov rdx, qword [0x14003db00]
mov rcx, qword [0x14003dba0]
mov r13d, dword [r14 + 0xa8]
mov qword [rdx], rax
movsxd rdx, dword [rcx]
mov qword [rax + rdx*8 - 8], r12
mov rax, qword [0x14003db90]
mov qword [r12 + 8], rbx
mov dword [r12 + 0x10], 1
mov qword [rsp + 0x58], rax
mov eax, dword [rax]
mov dword [r12], eax
movabs rax, 0x7fffffffffffffff
mov dword [rbx + 0x54], 0x30
mov qword [r12 + 0x78], rax
add rax, 1
test r13d, r13d
mov qword [r12 + 0x80], rax
mov rax, qword [0x1400397e8]
mov qword [r12 + 0x88], 0
mov qword [r12 + 0x90], rax
jle 0x14000cc64
xor esi, esi
jmp 0x14000cc2c
mov rax, qword [r14 + 0xa0]
movsd xmm0, qword [rax + r13 + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xa8], eax
movsd qword [r12 + 0x90], xmm0
jle 0x14000cc64
mov rax, qword [r14 + 0xa0]
mov r13, rsi
mov rdx, rbx
shl r13, 4
mov rcx, rbp
mov r8, qword [rax + r13]
call fcn.140007ab0
cmp eax, 0
jg 0x14000cc04
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xa8], eax
jg 0x14000cc2c
mov esi, dword [r14 + 0xf8]
mov dword [r12 + 0xb8], 1
test esi, esi
jle 0x14000ccdc
xor esi, esi
jmp 0x14000cca4
mov rax, qword [r14 + 0xf0]
mov eax, dword [rax + r13 + 8]
mov dword [r12 + 0xb8], eax
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xf8], eax
jle 0x14000ccdc
mov rax, qword [r14 + 0xf0]
mov r13, rsi
mov rdx, rbx
shl r13, 4
mov rcx, rbp
mov r8, qword [rax + r13]
call fcn.140007ab0
cmp eax, 0
jg 0x14000cc80
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xf8], eax
jg 0x14000cca4
mov r11d, dword [r14 + 0x1b8]
test r11d, r11d
jle 0x14000d630
xor r13d, r13d
xor esi, esi
jmp 0x14000cd10
mov rax, qword [r14 + 0x1b0]
mov rsi, qword [rax + r15 + 8]
lea eax, [r13 + 1]
add r13, 1
cmp dword [r14 + 0x1b8], eax
jle 0x14000cd40
mov rax, qword [r14 + 0x1b0]
mov r15, r13
mov rdx, rbx
shl r15, 4
mov rcx, rbp
mov r8, qword [rax + r15]
call fcn.140007ab0
cmp eax, 0
jg 0x14000ccf3
je 0x14000ccff
jmp 0x14000c9c7
test rsi, rsi
je 0x14000d630
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtol
mov rdx, qword [rsp + 0x98]
cmp byte [rdx], 0
je 0x14000cd6b
mov eax, dword [rsi]
mov rdx, qword [rbx + 8]
mov dword [rdx + 0x3c], eax
mov r10d, dword [r14 + 0x30]
test r10d, r10d
jle 0x14000d641
xor r13d, r13d
xor esi, esi
jmp 0x14000cda7
mov rax, qword [r14 + 0x28]
mov rsi, qword [rax + r15 + 8]
lea eax, [r13 + 1]
add r13, 1
cmp dword [r14 + 0x30], eax
jle 0x14000cdda
mov rax, qword [r14 + 0x28]
mov r15, r13
mov rdx, rbx
shl r15, 4
mov rcx, rbp
mov r8, qword [rax + r15]
call fcn.140007ab0
cmp eax, 0
jg 0x14000cd90
jne 0x14000c9c7
lea eax, [r13 + 1]
add r13, 1
cmp dword [r14 + 0x30], eax
jg 0x14000cda7
test rsi, rsi
mov rdx, qword [rbx + 8]
je 0x14000d641
mov edx, dword [rdx + 0xc]
mov rcx, rsi
call fcn.14000a970
mov rdx, qword [rbx + 8]
mov ecx, dword [rax + 0x14]
mov dword [rdx + 0x38], ecx
mov rdx, qword [r12 + 8]
mov rcx, qword [r14]
mov r8, rbp
mov qword [r12 + 0x28], rax
mov r9, rbx
mov rdx, qword [rdx + 8]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rdx + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140007b00
mov r8d, dword [r14 + 0x2c8]
mov qword [r12 + 0xa0], rax
mov dword [r12 + 0x144], 0xffffffff
test r8d, r8d
jle 0x14000ceac
xor esi, esi
jmp 0x14000ce74
mov rax, qword [r14 + 0x2c0]
mov eax, dword [rax + r13 + 8]
mov dword [r12 + 0x144], eax
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2c8], eax
jle 0x14000ceac
mov rax, qword [r14 + 0x2c0]
mov r13, rsi
mov rdx, rbx
shl r13, 4
mov rcx, rbp
mov r8, qword [rax + r13]
call fcn.140007ab0
cmp eax, 0
jg 0x14000ce50
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2c8], eax
jg 0x14000ce74
mov ecx, dword [r14 + 0x338]
test ecx, ecx
jle 0x14000d65f
xor esi, esi
xor r13d, r13d
jmp 0x14000cede
mov rax, qword [r14 + 0x330]
mov r13, qword [rax + r15 + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x338], eax
jle 0x14000cf16
mov rax, qword [r14 + 0x330]
mov r15, rsi
mov rdx, rbx
shl r15, 4
mov rcx, rbp
mov r8, qword [rax + r15]
call fcn.140007ab0
cmp eax, 0
jg 0x14000cec2
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x338], eax
jg 0x14000cede
test r13, r13
mov dword [r12 + 0x14], 0xfffffff0
je 0x14000cf41
mov rdx, qword [rsp + 0x50]
lea r9, [r12 + 0x14]
mov r8, r13
mov rcx, rdi
call sub.avutil_55.dll_av_opt_eval_int
test eax, eax
js 0x14000de50
mov rcx, qword [r12 + 0x28]
movabs rax, 0x8000000000000000
mov qword [r12 + 0x70], rax
call sub.avcodec_57.dll_avcodec_alloc_context3
test rax, rax
mov qword [r12 + 0x20], rax
je 0x14000de83
mov rdx, rdi
mov rcx, rax
call sub.avcodec_57.dll_avcodec_copy_context
test eax, eax
js 0x14000de6b
mov eax, dword [rdi + 0xc]
add eax, 1
cmp eax, 5
ja case.default.0x14000cf98
lea rdx, [0x140034f80]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
test r13, r13
je 0x14000d64e
mov rcx, r13
call sub.avutil_55.dll_av_get_pix_fmt
cmp eax, 0xffffffff
mov dword [r12 + 0x158], eax
je 0x14000d748
mov dword [r12 + 0x180], 0xffffffff
add dword [rsp + 0x40], 1
add qword [rsp + 0x48], 8
mov eax, dword [rsp + 0x40]
cmp dword [rbp + 0x2c], eax
ja 0x14000cb10
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0xf8]
mov edx, dword [rsi]
xor r9d, r9d
mov rcx, rbp
call sub.avformat_57.dll_av_dump_format
mov rbx, qword [0x14003daf0]
mov eax, dword [rsi]
mov r8, rsi
mov edx, 8
mov rcx, qword [rbx]
lea r9d, [rax + 1]
call fcn.140007e40
mov ecx, 0x68
mov qword [rbx], rax
call sub.avutil_55.dll_av_mallocz
test rax, rax
mov rdi, rax
je 0x14000c9c7
movsxd rdx, dword [rsi]
mov rax, qword [rbx]
mov r11d, dword [0x140042078]
mov qword [rax + rdx*8 - 8], rdi
mov rdx, qword [rsp + 0x78]
mov rax, qword [0x14003dba0]
mov ecx, dword [rdx + 0x2c]
mov qword [rdi], rdx
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
sub eax, ecx
test r11d, r11d
mov dword [rdi + 0x10], eax
mov rax, qword [r14 + 8]
mov qword [rdi + 0x40], rax
mov rax, qword [r14 + 0x138]
mov qword [rdi + 0x50], rax
mov rax, qword [r14 + 0x88]
mov qword [rdi + 0x28], rax
jne 0x14000d7d7
sub rax, qword [rsp + 0x60]
mov qword [rdi + 0x30], rax
mov eax, dword [r14 + 0x94]
lea rbp, [0x140033f8c]
lea r13, [rsp + 0x98]
mov qword [rdi + 0x18], 0
mov dword [rdi + 0x58], ecx
xor ebx, ebx
mov dword [rdi + 0x60], eax
mov eax, dword [r14 + 0x98]
mov dword [rdi + 0x64], eax
mov eax, dword [r14 + 0x90]
mov dword [rdi + 0x14], eax
movabs rax, 0x100000001
mov qword [rdi + 0x20], rax
mov rax, qword [r14]
mov r12, qword [rax + 0x20]
mov qword [rsp + 0x98], 0
mov r8, rbx
mov r9d, 2
mov rdx, rbp
mov rcx, r12
call sub.avutil_55.dll_av_dict_get
test rax, rax
mov rbx, rax
je 0x14000d821
mov r15, qword [rbx]
mov edx, 0x3a
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
mov rsi, rax
je 0x14000d80a
mov byte [rax], 0
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, qword [rbx]
mov rcx, r13
call sub.avutil_55.dll_av_dict_set
mov byte [rsi], 0x3a
jmp 0x14000d0f5
cmp qword [r12 + 0x28], 0
je 0x14000d6b2
mov r15d, dword [r14 + 0x2d8]
test r15d, r15d
jle 0x14000d1cb
xor esi, esi
jmp 0x14000d193
mov rax, qword [r14 + 0x2d0]
mov eax, dword [rax + rdi + 8]
mov dword [r12 + 0xe0], eax
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2d8], eax
jle 0x14000d1cb
mov rax, qword [r14 + 0x2d0]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d170
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2d8], eax
jg 0x14000d193
mov r13d, dword [r14 + 0x2e8]
xor esi, esi
xor edi, edi
test r13d, r13d
jg 0x14000d1fc
jmp case.0x14000cf98.4
mov rax, qword [r14 + 0x2e0]
mov rdi, qword [rax + r13 + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2e8], eax
jle 0x14000d234
mov rax, qword [r14 + 0x2e0]
mov r13, rsi
mov rdx, rbx
shl r13, 4
mov rcx, rbp
mov r8, qword [rax + r13]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d1e0
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x2e8], eax
jg 0x14000d1fc
test rdi, rdi
je case.0x14000cf98.4
mov rax, qword [r12 + 0x20]
mov r8, rdi
lea rdx, [rax + 0xa0]
lea rcx, [rax + 0x9c]
call sub.avutil_55.dll_av_parse_video_size
test eax, eax
jns case.0x14000cf98.4
mov r9, rdi
lea r8, str.Invalid_canvas_size:__s._n
jmp 0x14000de3a
mov eax, dword [r14 + 0x318]
mov dword [r12 + 0xb4], 0x7fffffff
test eax, eax
jle 0x14000d2eb
xor esi, esi
jmp 0x14000d2b3
mov rax, qword [r14 + 0x310]
mov eax, dword [rax + rdi + 8]
mov dword [r12 + 0xb4], eax
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x318], eax
jle 0x14000d2eb
mov rax, qword [r14 + 0x310]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d290
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x318], eax
jg 0x14000d2b3
mov rcx, r12
call fcn.140022050
mov rax, qword [r12 + 0x20]
mov edx, dword [rax + 0x1e0]
mov dword [r12 + 0xc8], edx
mov edx, dword [rax + 0x1d8]
mov dword [r12 + 0xcc], edx
mov edx, dword [rax + 0x1dc]
mov rax, qword [rax + 0x1f8]
mov dword [r12 + 0xd0], edx
mov qword [r12 + 0xd8], rax
jmp case.0x14000cf98.4
cmp qword [r12 + 0x28], 0
je 0x14000d6a0
mov rcx, rdi
call sub.avcodec_57.dll_av_codec_get_lowres
test eax, eax
je 0x14000d35f
or dword [rdi + 0x74], 0x4000
mov rax, qword [r12 + 0x20]
mov edx, dword [rax + 0xa0]
mov dword [r12 + 0xbc], edx
mov edx, dword [rax + 0x9c]
mov eax, dword [rax + 0xb0]
mov dword [r12 + 0xc0], edx
mov edx, dword [r14 + 0x60]
mov dword [r12 + 0xc4], eax
test edx, edx
jle 0x14000d405
xor esi, esi
xor edi, edi
jmp 0x14000d3b6
mov rax, qword [r14 + 0x58]
mov rdi, qword [rax + r13 + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x60], eax
jle 0x14000d3e8
mov rax, qword [r14 + 0x58]
mov r13, rsi
mov rdx, rbx
shl r13, 4
mov rcx, rbp
mov r8, qword [rax + r13]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d3a0
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x60], eax
jg 0x14000d3b6
test rdi, rdi
je 0x14000d405
lea rcx, [r12 + 0xa8]
mov rdx, rdi
call sub.avutil_55.dll_av_parse_video_rate
test eax, eax
js 0x14000dee8
mov eax, dword [r14 + 0x258]
mov dword [r12 + 0xb0], 0xffffffff
test eax, eax
jle 0x14000d47b
xor esi, esi
jmp 0x14000d443
mov rax, qword [r14 + 0x250]
mov eax, dword [rax + rdi + 8]
mov dword [r12 + 0xb0], eax
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x258], eax
jle 0x14000d47b
mov rax, qword [r14 + 0x250]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d420
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0x258], eax
jg 0x14000d443
mov eax, dword [r14 + 0xc8]
test eax, eax
jle 0x14000d542
xor esi, esi
xor r13d, r13d
jmp 0x14000d4ad
mov rax, qword [r14 + 0xc0]
mov r13, qword [rax + rdi + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xc8], eax
jle 0x14000d4e5
mov rax, qword [r14 + 0xc0]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d491
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xc8], eax
jg 0x14000d4ad
test r13, r13
je 0x14000d542
lea rdi, str.none
mov ecx, 5
mov rsi, r13
repe cmpsb byte [rsi], byte [rdi]
je 0x14000d66d
lea rdi, [0x140034cf3]
mov ecx, 5
mov rsi, r13
repe cmpsb byte [rsi], byte [rdi]
je 0x14000d68f
lea r15, str.dxva2
mov ecx, 6
mov rdi, r13
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
je 0x14000d6c4
mov eax, dword [r12 + 0x148]
test eax, eax
je 0x14000de8c
mov eax, dword [r14 + 0xd8]
xor esi, esi
xor r13d, r13d
test eax, eax
jg 0x14000d570
jmp 0x14000d5c6
mov rax, qword [r14 + 0xd0]
mov r13, qword [rax + rdi + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xd8], eax
jle 0x14000d5a8
mov rax, qword [r14 + 0xd0]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d554
jne 0x14000c9c7
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xd8], eax
jg 0x14000d570
test r13, r13
je 0x14000d5c6
mov rcx, r13
call sub.avutil_55.dll_av_strdup
test rax, rax
mov qword [r12 + 0x150], rax
je 0x14000c9c7
mov eax, dword [r14 + 0xe8]
test eax, eax
jle 0x14000d64e
xor esi, esi
xor r13d, r13d
jmp 0x14000d600
mov rax, qword [r14 + 0xe0]
mov r13, qword [rax + rdi + 8]
lea eax, [rsi + 1]
add rsi, 1
cmp dword [r14 + 0xe8], eax
jle 0x14000cfa0
mov rax, qword [r14 + 0xe0]
mov rdi, rsi
mov rdx, rbx
shl rdi, 4
mov rcx, rbp
mov r8, qword [rax + rdi]
call fcn.140007ab0
cmp eax, 0
jg 0x14000d5e0
je 0x14000d5ec
jmp 0x14000c9c7
mov r9d, dword [r14 + 0x30]
test r9d, r9d
jg 0x14000cd7f
mov rdx, qword [rbx + 8]
mov ecx, dword [rdx + 0x38]
call sub.avcodec_57.dll_avcodec_find_decoder
jmp 0x14000cdfc
mov dword [r12 + 0x158], 0xffffffff
jmp 0x14000cfc2
mov dword [r12 + 0x14], 0xfffffff0
jmp 0x14000cf41
mov dword [r12 + 0x148], 0
jmp 0x14000d542
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x38]
call sub.avcodec_57.dll_avcodec_find_decoder
jmp 0x14000c9f3
mov dword [r12 + 0x148], 1
jmp 0x14000d542
mov ecx, dword [rdi + 0x38]
call sub.avcodec_57.dll_avcodec_find_decoder
mov qword [r12 + 0x28], rax
jmp 0x14000d34c
mov ecx, dword [rdi + 0x38]
call sub.avcodec_57.dll_avcodec_find_decoder
mov qword [r12 + 0x28], rax
jmp 0x14000d15c
mov dword [r12 + 0x148], 3
jmp 0x14000d542
mov r11d, dword [r14 + 0x60]
test r11d, r11d
je 0x14000c68a
test rbx, rbx
je 0x14000c68a
cmp qword [rbx + 0x28], 0
je 0x14000c68a
lea rcx, [rbx + 0x28]
lea rdx, str.framerate
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
call sub.avutil_55.dll_av_opt_find
test rax, rax
je 0x14000c68a
movsxd rax, dword [r14 + 0x60]
mov rdx, qword [r14]
xor r9d, r9d
lea rcx, [rdx + 0x28]
lea rdx, str.framerate
shl rax, 4
add rax, qword [r14 + 0x58]
mov r8, qword [rax - 8]
call sub.avutil_55.dll_av_dict_set
jmp 0x14000c68a
lea r8, str.Unrecognised_hwaccel_output_format:__s
mov r9, r13
mov edx, 8
xor ecx, ecx
call sub.avutil_55.dll_av_log
jmp 0x14000cfc2
lea rdx, str.pipe:
mov qword [rsp + 0xf8], rdx
jmp 0x14000c5d2
xor ebx, ebx
jmp 0x14000c568
mov eax, dword [rbp + 0x2c]
test eax, eax
je 0x14000cabe
mov rcx, qword [rbp + 0x30]
lea r8d, [rax - 1]
lea rax, [rcx + 8]
lea r9, [rax + r8*8]
mov r8d, 1
jmp 0x14000d7a5
add rax, 8
mov rcx, qword [rcx]
mov rcx, qword [rcx + 8]
mov ecx, dword [rcx + 0xdc]
test ecx, ecx
mov rcx, rax
cmovne edx, r8d
cmp r9, rax
jne 0x14000d7a1
mov rax, qword [rsp + 0x60]
test edx, edx
lea r9, [rax - 0x1fd82]
cmove r9, rax
jmp 0x14000cabe
mov r10d, dword [0x140042074]
test r10d, r10d
je 0x14000d096
mov rdx, qword [rdx + 0x438]
mov r8, rax
movabs r9, 0x8000000000000000
sub r8, rdx
cmp rdx, r9
cmovne rax, r8
jmp 0x14000d096
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, r15
mov rcx, r13
call sub.avutil_55.dll_av_dict_set
jmp 0x14000d0f5
mov rax, qword [0x14003dba0]
mov r13d, dword [rdi + 0x10]
mov rcx, qword [rsp + 0x98]
cmp dword [rax], r13d
mov qword [rsp + 0x88], rcx
jle 0x14000d8b8
mov rbp, qword [0x14003db00]
movsxd rsi, r13d
lea rdi, [0x140033f8c]
lea r12, [rsp + 0x88]
shl rsi, 3
xor r15d, r15d
jmp 0x14000d874
mov rdx, qword [r15]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call sub.avutil_55.dll_av_dict_set
mov rax, qword [rbp]
mov r8, r15
mov r9d, 2
mov rdx, rdi
mov rax, qword [rax + rsi]
mov rcx, qword [rax + 0xa0]
call sub.avutil_55.dll_av_dict_get
test rax, rax
mov r15, rax
jne 0x14000d863
mov rax, qword [0x14003dba0]
add r13d, 1
add rsi, 8
cmp dword [rax], r13d
jg 0x14000d85e
mov rcx, qword [rsp + 0x88]
lea rsi, [0x140033f8c]
lea rbp, [rsp + 0x90]
lea rdi, [rsp + 0x98]
mov r12, qword [rsp + 0xf8]
mov r13, qword [rsp + 0x58]
jmp 0x14000d983
call sub.avcodec_57.dll_avcodec_get_class
mov dword [rsp + 0x20], 3
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x90], rax
call sub.avutil_55.dll_av_opt_find
mov r15, rax
call sub.avformat_57.dll_avformat_get_class
mov dword [rsp + 0x20], 3
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x98], rax
call sub.avutil_55.dll_av_opt_find
test r15, r15
je 0x14000d97b
test rax, rax
jne 0x14000d97b
test byte [r15 + 0x30], 2
mov eax, dword [r13]
lea edx, [rax - 1]
mov rax, qword [r15 + 8]
je 0x14000df16
test rax, rax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x30], r12
cmove rax, rsi
lea r8, str.Codec_AVOption__s___s__specified_for_input_file__d___s__has_not_been_used_for_any_stream._The_most_likely_reason_is_either_wrong_type__e.g._a_video_option_with_no_video_streams__or_that_it_is_a_private_option_of_some_decoder_which_was_not_actually_used_for_any_stream._n
mov edx, 0x18
mov qword [rsp + 0x20], rax
mov r9, qword [rbx]
xor ecx, ecx
call sub.avutil_55.dll_av_log
mov rcx, qword [rsp + 0x88]
mov r8, rbx
mov r9d, 2
mov rdx, rsi
call sub.avutil_55.dll_av_dict_get
test rax, rax
mov rbx, rax
jne 0x14000d8e1
lea rcx, [rsp + 0x88]
call sub.avutil_55.dll_av_dict_free
mov edx, dword [r14 + 0xb8]
test edx, edx
jle 0x14000db15
mov rcx, qword [rsp + 0x78]
lea rbx, [rsp + 0x98]
xor r12d, r12d
mov qword [rsp + 0x40], rbx
mov eax, dword [rcx + 0x2c]
mov rbp, r12
xor r15d, r15d
shl rbp, 4
test eax, eax
jne 0x14000da08
jmp 0x14000db03
mov rcx, qword [rsp + 0x78]
lea edx, [r15 + 1]
add r15, 1
mov eax, dword [rcx + 0x2c]
cmp eax, edx
jbe 0x14000dafc
mov rax, qword [rcx + 0x30]
mov rbx, qword [rax + r15*8]
mov rax, qword [r14 + 0xb0]
mov r8, qword [rax + rbp]
mov rdx, rbx
call fcn.140007ab0
cmp eax, 1
jne 0x14000d9f0
mov rax, qword [r14 + 0xb0]
mov r13, qword [rax + rbp + 8]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x98], 0
mov r9d, dword [rax + 0x88]
test r9d, r9d
je 0x14000dba0
cmp byte [r13], 0
je 0x14000dbc9
mov r8d, dword [0x1400420b8]
test r8d, r8d
jne 0x14000db70
mov rcx, r13
call sub.avformat_57.dll_avio_find_protocol_name
test rax, rax
je 0x14000da93
lea rdi, str.file
mov ecx, 5
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x14000dc59
mov r9, qword [0x14003db10]
mov rcx, qword [rsp + 0x40]
mov r8d, 2
mov qword [rsp + 0x20], 0
mov rdx, r13
call sub.avformat_57.dll_avio_open2
test eax, eax
js 0x14000df58
mov rax, qword [rbx + 8]
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rax + 0x80]
mov r8d, dword [rax + 0x88]
call sub.avformat_57.dll_avio_write
mov rcx, qword [rsp + 0x98]
call sub.avformat_57.dll_avio_flush
mov rcx, qword [rsp + 0x98]
call sub.avformat_57.dll_avio_close
jmp 0x14000d9f0
mov edx, dword [r14 + 0xb8]
lea r8d, [r12 + 1]
add r12, 1
cmp r8d, edx
jl 0x14000d9d4
mov eax, dword [rsp + 0x6c]
test eax, eax
jle 0x14000db43
sub eax, 1
xor ebx, ebx
lea rsi, [rax*8 + 8]
mov rcx, qword [rsp + 0x80]
add rcx, rbx
add rbx, 8
call sub.avutil_55.dll_av_dict_free
cmp rsi, rbx
jne 0x14000db2a
lea rcx, [rsp + 0x80]
call sub.avutil_55.dll_av_freep
xor eax, eax
mov dword [0x1400420a4], 1
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [0x1400420b4]
test ecx, ecx
je 0x14000da93
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.Error__both__y_and__n_supplied._Exiting._n
lea rcx, [rax + 0x60]
call fcn.1400091d0
mov ecx, 1
call fcn.140001cf0
nop
mov rax, qword [rsp + 0x58]
mov edx, dword [rbx]
lea r8, str.No_extradata_to_dump_in_stream__d:_d._n
xor ecx, ecx
mov eax, dword [rax]
mov dword [rsp + 0x20], edx
mov edx, 0x18
lea r9d, [rax - 1]
call sub.avutil_55.dll_av_log
jmp 0x14000d9f0
mov rcx, qword [rbx + 0x60]
lea rdx, str.filename
xor r9d, r9d
xor r8d, r8d
call sub.avutil_55.dll_av_dict_get
test rax, rax
je 0x14000dbe8
mov r13, qword [rax + 8]
cmp byte [r13], 0
jne 0x14000da5f
mov rax, qword [rsp + 0x58]
mov edx, dword [rbx]
lea r8, str.No_filename_specified_and_no_filename_tagin_stream__d:_d._n
xor ecx, ecx
mov eax, dword [rax]
mov dword [rsp + 0x20], edx
mov edx, 8
lea r9d, [rax - 1]
call sub.avutil_55.dll_av_log
mov ecx, 1
call fcn.140001cf0
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rax
movabs rdx, 0x8000000000000000
cmp qword [rsp + 0x60], rdx
mov eax, dword [r14 + 0x18]
jne 0x14000ca79
test eax, eax
je 0x14000defc
mov qword [rsp + 0x60], 0
jmp 0x14000caef
xor edx, edx
mov rcx, r13
call sub.avformat_57.dll_avio_check
test eax, eax
jne 0x14000da93
mov edx, dword [0x140031024]
test edx, edx
je 0x14000de30
mov eax, dword [0x1400420b4]
test eax, eax
jne 0x14000de30
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.File__s_already_exists._Overwrite____y_N_
lea rcx, [rax + 0x60]
mov r8, r13
call fcn.1400091d0
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
call sub.msvcrt.dll_fflush
call fcn.140021f40
xor edx, edx
mov ecx, 2
call sub.msvcrt.dll_signal
call fcn.1400077b0
test eax, eax
je 0x14000dfac
call fcn.140021f60
jmp 0x14000da93
mov r9, qword [rsp + 0xf8]
lea r8, str._s:_could_not_find_codec_parameters_n
xor ecx, ecx
mov edx, 8
call sub.avutil_55.dll_av_log
mov rbp, qword [rsp + 0x78]
mov r8d, dword [rbp + 0x2c]
test r8d, r8d
jne 0x14000ca42
mov rcx, qword [rsp + 0x40]
call sub.avformat_57.dll_avformat_close_input
mov ecx, 1
call fcn.140001cf0
nop dword [rax + rax]
lea rcx, [rax + 0x28]
lea r8, [0x14003433f]
lea rdx, [0x140034bc5]
mov r9d, 0x10
call sub.avutil_55.dll_av_dict_set
lea rdx, [rsp + 0x78]
mov rax, qword [r14]
mov r8, rbx
mov rcx, rdx
mov qword [rsp + 0x40], rdx
mov rdx, qword [rsp + 0xf8]
lea r9, [rax + 0x28]
call sub.avformat_57.dll_avformat_open_input
test eax, eax
js 0x14000df77
mov rax, qword [r14]
lea rdx, [0x140034bc5]
mov r9d, 1
xor r8d, r8d
lea rcx, [rax + 0x28]
call sub.avutil_55.dll_av_dict_set
jmp 0x14000c934
mov rax, qword [rsp + 0x78]
xor r13d, r13d
xor r15d, r15d
xor r12d, r12d
xor ebp, ebp
xor edx, edx
mov dword [rax + 0x488], 0
mov dword [rax + 0x48c], 0
jmp 0x14000c81a
pxor xmm0, xmm0
mov r9, qword [rsp + 0xf8]
lea r8, str._s:_could_not_seek_to_position__0.3f_n
mov edx, 0x18
xor ecx, ecx
cvtsi2sd xmm0, qword [rsp + 0x60]
divsd xmm0, qword [0x1400397c8]
movsd qword [rsp + 0x20], xmm0
call sub.avutil_55.dll_av_log
jmp 0x14000caea
mov r9, qword [rsp + 0xf8]
lea r8, str.Cannot_use__sseof__duration_of__s_not_known_n
mov edx, 0x18
xor ecx, ecx
call sub.avutil_55.dll_av_log
mov rax, qword [r14 + 8]
mov rbp, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
jmp 0x14000dc2a
mov rax, qword [0x14003db90]
mov qword [rsp + 0x58], rax
mov rsi, rax
jmp 0x14000cff0
lea r8, str.File__s_already_exists._Exiting._n
mov r9, r13
xor ecx, ecx
mov edx, 8
call sub.avutil_55.dll_av_log
mov ecx, 1
call fcn.140001cf0
lea r8, str.Error_parsing_discard__s._n
mov r9, r13
mov edx, 0x10
xor ecx, ecx
call sub.avutil_55.dll_av_log
jmp 0x14000c9c7
lea r8, str.Error_initializing_the_decoder_context._n
mov edx, 0x10
xor ecx, ecx
call sub.avutil_55.dll_av_log
jmp 0x14000c9c7
lea r8, str.Error_allocating_the_decoder_context._n
jmp 0x14000de72
lea r8, str.Unrecognized_hwaccel:__s._n
mov r9, r13
mov edx, 8
xor ecx, ecx
call sub.avutil_55.dll_av_log
lea r8, str.Supported_hwaccels:
mov edx, 8
xor ecx, ecx
call sub.avutil_55.dll_av_log
lea r8, [0x140034d28]
mov r9, r15
mov edx, 8
xor ecx, ecx
call sub.avutil_55.dll_av_log
lea r8, [0x140033dda]
xor ecx, ecx
mov edx, 8
call sub.avutil_55.dll_av_log
mov ecx, 1
call fcn.140001cf0
mov r9, rdi
lea r8, str.Error_parsing_framerate__s._n
jmp 0x14000de5a
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x438]
cmp rax, rdx
mov qword [rsp + 0x60], rax
jne 0x14000caef
jmp 0x14000dc4b
test rax, rax
jne 0x14000df22
lea rax, [0x140033f8c]
mov rcx, qword [rsp + 0xf8]
mov dword [rsp + 0x28], edx
lea r8, str.Codec_AVOption__s___s__specified_for_input_file__d___s__is_not_a_decoding_option._n
mov qword [rsp + 0x20], rax
mov edx, 0x10
mov qword [rsp + 0x30], rcx
mov r9, qword [rbx]
xor ecx, ecx
call sub.avutil_55.dll_av_log
mov ecx, 1
call fcn.140001cf0
mov r9, r13
lea r8, str.Could_not_open_file__s_for_writing._n
jmp 0x14000de3a
mov r9, qword [r14 + 0x20]
lea r8, str.Unknown_input_format:__s_n
jmp 0x14000de3a
mov rcx, qword [rsp + 0xf8]
mov edx, eax
call fcn.140005470
mov ecx, 1
call fcn.140001cf0
mov rcx, qword [rsp + 0xf8]
mov edx, 0xfffffff4
call fcn.140005470
mov ecx, 1
call fcn.140001cf0
lea r8, str.Not_overwriting___exiting_n
mov edx, 8
xor ecx, ecx
call sub.avutil_55.dll_av_log
jmp 0x14000c9c7