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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
movsxd rax, dword [rcx + 8]
xor r14d, r14d
mov r15, rdx
mov rdi, rcx
test eax, eax
js 0x140010475
mov r8, rax
mov rax, qword [0x140107440]
mov rbp, qword [rax + r8*8]
jmp 0x140010478
mov rbp, r14
mov rsi, qword [rcx + 0x58]
lea rdx, str.encoder
movsxd rcx, dword [rcx]
xor r9d, r9d
mov rax, qword [0x140107468]
xor r8d, r8d
mov dword [rsp + 0x90], r14d
mov r13, r14
mov rbx, qword [rax + rcx*8]
mov rcx, qword [rdi + 0x10]
mov eax, dword [rsi + 0x4c]
mov dword [rsp + 0xa0], eax
mov r12, qword [rbx]
mov rcx, qword [rcx + 0x48]
call sub.avutil_56.dll_av_dict_get
test rax, rax
jne 0x14001061c
mov rcx, qword [rbx + 8]
lea rdx, str.fflags
xor r9d, r9d
xor r8d, r8d
call sub.avutil_56.dll_av_dict_get
mov r14, rax
test rax, rax
je 0x14001051d
mov rcx, qword [rbx]
lea rdx, str.fflags
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
call sub.avutil_56.dll_av_opt_find
test rax, rax
je 0x140010619
mov r8, qword [r14 + 8]
lea r9, [rsp + 0x90]
mov rcx, qword [rbx]
mov rdx, rax
call sub.avutil_56.dll_av_opt_eval_flags
mov rcx, qword [rdi + 0x170]
lea rdx, str.flags
xor r9d, r9d
xor r8d, r8d
call sub.avutil_56.dll_av_dict_get
mov rbx, rax
test rax, rax
je 0x14001057d
mov rcx, qword [rdi + 0x58]
lea rdx, str.flags
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
call sub.avutil_56.dll_av_opt_find
test rax, rax
je 0x14001061c
mov r8, qword [rbx + 8]
lea r9, [rsp + 0xa0]
mov rcx, qword [rdi + 0x58]
mov rdx, rax
call sub.avutil_56.dll_av_opt_eval_flags
mov rax, qword [rdi + 0x68]
mov rcx, qword [rax]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140010590
add eax, 0x11
movsxd r14, eax
mov rcx, r14
call sub.avutil_56.dll_av_mallocz
mov rbx, rax
test rax, rax
jne 0x1400105b7
lea ecx, [rax + 1]
call fcn.140001974
test dword [rsp + 0x90], 0x400
jne 0x1400105d8
test dword [rsp + 0xa0], 0x800000
lea rdx, str.Lavc58.134.100
je 0x1400105df
lea rdx, str.Lavc
mov r8, r14
mov rcx, rbx
call sub.avutil_56.dll_av_strlcpy
mov rdx, qword [rdi + 0x68]
mov r8, r14
mov rcx, rbx
mov rdx, qword [rdx]
call sub.avutil_56.dll_av_strlcat
mov rcx, qword [rdi + 0x10]
lea rdx, str.encoder
add rcx, 0x48
mov r9d, 0x18
mov r8, rbx
call sub.avutil_56.dll_av_dict_set
xor r14d, r14d
mov rcx, qword [rdi + 0x10]
lea rdx, str.rotate
add rcx, 0x48
xor r9d, r9d
xor r8d, r8d
call sub.avutil_56.dll_av_dict_set
test rbp, rbp
je 0x14001065c
mov rax, qword [rbp + 8]
mov rcx, qword [rdi + 0x10]
mov eax, dword [rax + 0x38]
mov dword [rcx + 0x38], eax
mov r13, qword [rbp + 0x20]
mov eax, dword [r13 + 0x188]
mov dword [rsi + 0x188], eax
jmp 0x1400106b6
mov r11d, dword [r12 + 0x2c]
mov r8d, r14d
test r11d, r11d
je 0x14001069a
mov r10, qword [rdi + 0x10]
mov r9, qword [r12 + 0x30]
mov rdx, qword [r9]
cmp rdx, r10
je 0x14001068e
mov rax, qword [r10 + 0xd0]
mov rdx, qword [rdx + 0xd0]
mov ecx, dword [rax]
cmp dword [rdx], ecx
je 0x14001069a
inc r8d
add r9, 8
cmp r8d, r11d
jb 0x140010672
cmp r8d, r11d
jne 0x1400106b6
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 0xd0]
cmp dword [rax], 1
ja 0x1400106b6
mov dword [rcx + 0x38], 1
cmp dword [rsi + 0xc], 0
jne 0x1400107f7
lea rbx, [rdi + 0xa8]
cmp dword [rbx], 0
jne 0x1400106de
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_frame_rate
mov qword [rbx], rax
test rbp, rbp
je 0x14001074d
mov ecx, dword [rbx]
test ecx, ecx
jne 0x14001074d
mov rcx, qword [rbp + 0xb8]
mov qword [rbx], rcx
test ecx, ecx
jne 0x14001074d
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0xc0]
mov qword [rbx], rcx
test ecx, ecx
jne 0x14001074d
cmp dword [rdi + 0xb0], ecx
jne 0x140010756
mov r9d, dword [rdi]
lea edx, [rcx + 0x18]
mov dword [rsp + 0x90], 0x19
lea r8, str.No_information_about_the_input_framerate_is_available._Falling_back_to_a_default_value_of_25fps_for_output_stream__d:_d._Use_the__r_option_if_you_want_a_different_framerate._n
mov dword [rsp + 0x94], 1
xor ecx, ecx
mov rax, qword [rsp + 0x90]
mov qword [rbx], rax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
cmp dword [rdi + 0xb0], 0
je 0x1400107a3
mov rax, qword [rbx]
mov rdx, qword [rdi + 0xb0]
mov rcx, rax
shr rcx, 0x20
movd xmm2, eax
mov rax, rdx
shr rax, 0x20
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
movd xmm1, edx
divsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
comisd xmm2, xmm1
ja 0x1400107a0
test ecx, ecx
jne 0x1400107a3
mov qword [rbx], rdx
mov rax, qword [rdi + 0x68]
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1400107d3
cmp dword [rdi + 0xbc], 0
jne 0x1400107d3
mov rcx, qword [rbx]
call sub.avutil_56.dll_av_find_nearest_q_idx
movsxd r8, eax
mov rax, qword [rdi + 0x68]
mov rdx, qword [rax + 0x20]
mov rax, qword [rdx + r8*8]
mov qword [rbx], rax
cmp dword [rsi + 0x18], 0xc
jne 0x1400107f7
movsxd r8, dword [rbx]
lea rdx, [rdi + 0xac]
movsxd r9, dword [rdx]
mov rcx, rbx
mov qword [rsp + 0x20], 0xffff
call sub.avutil_56.dll_av_reduce
mov ecx, dword [rsi + 0xc]
test ecx, ecx
je 0x14001093c
sub ecx, 1
je 0x140010886
sub ecx, 1
je 0x140010d25
cmp ecx, 1
jne 0x140010d47
cmp dword [rsi + 0x74], 0
mov dword [rsp + 0x90], ecx
mov dword [rsp + 0x94], 0xf4240
mov rax, qword [rsp + 0x90]
mov qword [rsi + 0x64], rax
jne 0x140010d25
mov rax, qword [0x140107440]
movsxd rcx, dword [rdi + 8]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 0xd0]
mov eax, dword [rcx + 0x38]
mov dword [rsi + 0x74], eax
mov rax, qword [0x140107440]
movsxd rcx, dword [rdi + 8]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 0xd0]
mov eax, dword [rcx + 0x3c]
mov dword [rsi + 0x78], eax
jmp 0x140010d25
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_format
mov dword [rsi + 0x19c], eax
test r13, r13
je 0x1400108cf
mov ecx, eax
call sub.avutil_56.dll_av_get_bytes_per_sample
mov ecx, dword [r13 + 0x2fc]
lea eax, [rax*8]
cmp ecx, eax
jle 0x1400108c9
mov ecx, dword [rsi + 0x19c]
call sub.avutil_56.dll_av_get_bytes_per_sample
mov ecx, eax
shl ecx, 3
mov dword [rsi + 0x2fc], ecx
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_sample_rate
mov dword [rsi + 0x194], eax
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_channel_layout
mov qword [rsi + 0x1b0], rax
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_channels
mov dword [rsi + 0x198], eax
mov rcx, rdi
mov eax, dword [rsi + 0x194]
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x90], 1
mov rdx, qword [rsp + 0x90]
call fcn.14000f440
jmp 0x140010d25
mov rax, qword [rdi + 0xa8]
mov rcx, rax
mov dword [rsp + 0x94], eax
shr rcx, 0x20
mov dword [rsp + 0x90], ecx
mov rcx, rdi
mov rdx, qword [rsp + 0x90]
call fcn.14000f440
cmp dword [0x140107674], 0
je 0x1400109e7
mov edx, dword [r15 + 0x178]
mov ecx, r14d
test edx, edx
jle 0x1400109e7
mov rax, qword [r15 + 0x170]
mov rbp, qword [rax]
cmp dword [rbp], 0xb
je 0x14001099b
inc ecx
add rax, 8
cmp ecx, edx
jl 0x140010986
jmp 0x1400109e7
mov ecx, 0x10
call sub.avutil_56.dll_av_mallocz
mov rbx, rax
mov dword [rax + 0xc], 0x14
mov dword [rax + 8], 0x58
call sub.avutil_56.dll_av_mastering_display_metadata_alloc
mov qword [rbx], rax
mov rcx, rax
movsxd r8, dword [rbp + 0x10]
mov rdx, qword [rbp + 8]
call fcn.140002bf8
mov rcx, qword [rdi + 0x10]
mov dword [rcx + 0xb8], 1
mov rcx, qword [rdi + 0x10]
mov qword [rcx + 0xb0], rbx
cmp dword [rsi + 0x64], 0
je 0x1400109f3
cmp dword [rsi + 0x68], 0
jne 0x140010a06
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_time_base
mov qword [rsi + 0x64], rax
mov rax, qword [rsi + 0x64]
movsd xmm1, qword [0x1400de3d8]
movd xmm2, eax
shr rax, 0x20
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x140010a6d
mov eax, dword [0x140106044]
test eax, eax
je 0x140010a6d
cmp eax, 1
je 0x140010a59
cmp eax, 0xfe
je 0x140010a59
cmp eax, 0xffffffff
jne 0x140010a6d
mov rax, qword [r12 + 0x10]
test dword [rax + 0x2c], 0x400
jne 0x140010a6d
lea r8, str.Frame_rate_very_high_for_a_muxer_not_efficiently_supporting_it._nPlease_consider_specifying_a_lower_framerate__a_different_muxer_or__vsync_2_n
mov edx, 0x18
mov rcx, r12
call sub.avutil_56.dll_av_log
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_w
mov dword [rsi + 0x74], eax
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_h
mov dword [rsi + 0x78], eax
cmp dword [rdi + 0xd8], 0
je 0x140010ac1
mov rcx, qword [rdi + 0xd8]
mov dword [rsp + 0x90], eax
mov eax, dword [rsi + 0x74]
mov dword [rsp + 0x94], eax
mov rdx, qword [rsp + 0x90]
call sub.avutil_56.dll_av_mul_q
jmp 0x140010ad0
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_sample_aspect_ratio
mov rcx, qword [rdi + 0x10]
mov qword [rcx + 0x40], rax
mov qword [rsi + 0xe8], rax
mov rcx, qword [rdi + 0x150]
mov rcx, qword [rcx]
call sub.avfilter_7.dll_av_buffersink_get_format
mov dword [rsi + 0x88], eax
test r13, r13
je 0x140010b20
mov ecx, eax
call sub.avutil_56.dll_av_pix_fmt_desc_get
mov ecx, dword [r13 + 0x2fc]
cmp ecx, dword [rax + 0x28]
jle 0x140010b1a
mov ecx, dword [rsi + 0x88]
call sub.avutil_56.dll_av_pix_fmt_desc_get
mov ecx, dword [rax + 0x28]
mov dword [rsi + 0x2fc], ecx
test r15, r15
je 0x140010b66
mov eax, dword [r15 + 0x180]
mov dword [rsi + 0x184], eax
mov eax, dword [r15 + 0x184]
mov dword [rsi + 0x178], eax
mov eax, dword [r15 + 0x188]
mov dword [rsi + 0x17c], eax
mov eax, dword [r15 + 0x18c]
mov dword [rsi + 0x180], eax
mov eax, dword [r15 + 0x190]
mov dword [rsi + 0x188], eax
mov rax, qword [rdi + 0xa8]
mov qword [rsi + 0x368], rax
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x50], 0
jne 0x140010b89
mov rax, qword [rdi + 0xa8]
mov qword [rcx + 0x50], rax
test r13, r13
je 0x140010baf
mov eax, dword [r13 + 0x74]
cmp dword [rsi + 0x74], eax
jne 0x140010baf
mov eax, dword [r13 + 0x78]
cmp dword [rsi + 0x78], eax
jne 0x140010baf
mov eax, dword [r13 + 0x88]
cmp dword [rsi + 0x88], eax
je 0x140010bbb
mov eax, dword [0x1401076b4]
mov dword [rsi + 0x2fc], eax
mov eax, dword [rdi + 0xc0]
test eax, eax
jne 0x140010bd1
mov dword [rsi + 0x190], 3
jmp 0x140010be0
cmp eax, 1
jne 0x140010be0
mov dword [rsi + 0x190], 2
test r15, r15
je 0x140010c48
test dword [rsi + 0x4c], 0x20040000
je 0x140010c05
mov ecx, dword [rdi + 0xc0]
test ecx, ecx
js 0x140010c05
mov eax, r14d
setne al
mov dword [r15 + 0x100], eax
cmp dword [r15 + 0xfc], 0
je 0x140010c3e
mov rax, qword [rsi + 0x10]
mov ecx, dword [r15 + 0x100]
cmp dword [rax + 0x14], 7
jne 0x140010c2f
neg ecx
sbb eax, eax
add eax, 3
mov dword [rsi + 0x190], eax
jmp 0x140010c48
neg ecx
sbb eax, eax
add eax, 5
mov dword [rsi + 0x190], eax
jmp 0x140010c48
mov dword [rsi + 0x190], 1
mov rcx, qword [rdi + 0xf8]
test rcx, rcx
je 0x140010d25
mov r8d, 5
lea rdx, str.expr:
call fcn.140003ed6
mov rcx, qword [rdi + 0xf8]
test eax, eax
jne 0x140010cfc
mov qword [rsp + 0x40], r14
lea rdx, [rcx + 5]
mov dword [rsp + 0x38], r14d
lea rcx, [rdi + 0x100]
mov qword [rsp + 0x30], r14
lea r8, [0x1400daf60]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], r14
call sub.avutil_56.dll_av_expr_parse
mov ebx, eax
test eax, eax
jns 0x140010cd4
mov r9, qword [rdi + 0xf8]
lea r8, str.Invalid_force_key_frames_expression__s_n
add r9, 5
mov edx, 0x10
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov eax, ebx
jmp 0x140010d2f
mov qword [rdi + 0x108], r14
movabs rax, 0x7ff8000000000000
mov qword [rdi + 0x110], r14
mov qword [rdi + 0x118], rax
mov qword [rdi + 0x120], rax
jmp 0x140010d25
mov r8d, 6
lea rdx, str.source
call fcn.140003ed6
test eax, eax
je 0x140010d25
mov r8, qword [rdi + 0x58]
mov rdx, rdi
mov rcx, qword [rdi + 0xf8]
call fcn.140011f10
mov rax, qword [rsi + 0x64]
mov qword [rdi + 0x40], rax
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001e38
int3