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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xa8
mov rax, qword [0x140043080]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r8, qword [rcx + 0x40]
xor r12d, r12d
mov r13, qword [rcx + 0x20]
mov rdi, rcx
mov rbx, qword [rcx + 0x48]
mov rsi, rdx
movsxd rcx, dword [rcx + 0xc]
mov ebp, r12d
mov rax, qword [0x140043190]
mov qword [rsp + 0x30], r13
mov rdx, qword [rbx + 0x10]
mov qword [rsp + 0x48], r8
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
cmp dword [r8 + 0x20], ebp
jne 0x1400098d9
mov qword [rsp + 0xa0], r15
test rsi, rsi
jne 0x140009077
cmp dword [rdx + 0x10], 1
ja 0x140009070
lea rax, str.D:_a_obs_deps_obs_deps_windows_build_temp_FFmpeg_fftools_ffmpeg_enc.c
mov dword [rsp + 0x28], 0xb7
lea r9, str.frame___enc__type___AVMEDIA_TYPE_VIDEO__enc__type___AVMEDIA_TYPE_AUDIO_
mov qword [rsp + 0x20], rax
lea r8, str.Assertion__s_failed_at__s:_d_n
xor edx, edx
xor ecx, ecx
call sub.avutil_58.dll_av_log
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov r15, qword [rsp + 0x48]
jmp 0x1400090b9
mov rax, qword [rsi + 0x190]
test rax, rax
jne 0x1400090b5
lea rax, str.D:_a_obs_deps_obs_deps_windows_build_temp_FFmpeg_fftools_ffmpeg_enc.c
mov dword [rsp + 0x28], 0xba
lea r9, str.frame__opaque_ref
mov qword [rsp + 0x20], rax
lea r8, str.Assertion__s_failed_at__s:_d_n
xor edx, edx
xor ecx, ecx
call sub.avutil_58.dll_av_log
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov r15, qword [rax + 8]
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
mov qword [rsp + 0xf0], r14
xor r8d, r8d
mov r14, qword [rdx]
lea rdx, str.encoder
mov rcx, qword [rcx + 0x50]
call sub.avutil_58.dll_av_dict_get
test rax, rax
jne 0x14000916e
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r14 + rax], bpl
jne 0x1400090f0
add eax, 0x10
movsxd r13, eax
mov rcx, r13
call sub.avutil_58.dll_av_mallocz
mov r12, rax
test rax, rax
je 0x140009619
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4c], ebp
jne 0x140009129
lea rdx, str.Lavc60.31.102
cmp dword [rdi + 0x78], ebp
je 0x140009130
lea rdx, str.Lavc
mov r8, r13
mov rcx, r12
call sub.avutil_58.dll_av_strlcpy
mov r8, r13
mov rdx, r14
mov rcx, r12
call sub.avutil_58.dll_av_strlcat
mov rcx, qword [rdi + 0x28]
lea rdx, str.encoder
add rcx, 0x50
mov r9d, 0x18
mov r8, r12
call sub.avutil_58.dll_av_dict_set
mov r13, qword [rsp + 0x30]
xor r12d, r12d
test r13, r13
je 0x140009177
mov rbp, qword [r13 + 0x38]
cmp dword [rdi + 8], 1
ja 0x14000919f
mov rax, qword [rsi + 0x98]
mov qword [rbx + 0x64], rax
mov rax, qword [r15 + 0x18]
mov qword [rbx + 0x2c0], rax
mov rcx, qword [rdi + 0x28]
mov rax, qword [r15 + 0x18]
mov qword [rcx + 0x58], rax
mov ecx, dword [rbx + 0xc]
test ecx, ecx
je 0x1400093cf
sub ecx, 1
je 0x140009367
cmp ecx, 2
je 0x1400091ea
lea rax, str.D:_a_obs_deps_obs_deps_windows_build_temp_FFmpeg_fftools_ffmpeg_enc.c
mov dword [rsp + 0x28], 0x11e
lea r9, [0x14002fb70]
mov qword [rsp + 0x20], rax
lea r8, str.Assertion__s_failed_at__s:_d_n
xor edx, edx
xor ecx, ecx
call sub.avutil_58.dll_av_log
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp dword [rdi + 0x38], 0
je 0x140009204
lea r8, str._enc_time_base_not_supported_for_subtitles__ignoring_n
mov edx, 0x18
mov rcx, rdi
call sub.avutil_58.dll_av_log
cmp dword [rbx + 0x74], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0xf4240
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x64], rax
jne 0x14000923f
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x28]
mov eax, dword [rcx + 0x38]
mov dword [rbx + 0x74], eax
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x28]
mov eax, dword [rcx + 0x3c]
mov dword [rbx + 0x78], eax
test rbp, rbp
je 0x140009290
cmp qword [rbp + 0x2b0], 0
je 0x140009290
mov eax, dword [rbp + 0x2b8]
inc eax
movsxd rcx, eax
call sub.avutil_58.dll_av_mallocz
mov qword [rbx + 0x2b0], rax
test rax, rax
je 0x140009619
movsxd r8, dword [rbp + 0x2b8]
mov rcx, rax
mov rdx, qword [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp + 0x2b8]
mov dword [rbx + 0x2b8], eax
mov r14, qword [rsp + 0x38]
cmp dword [rdi + 0x78], 0
je 0x1400092a2
or dword [rbx + 0x4c], 0x800000
mov rcx, qword [rdi + 0x110]
lea rdx, [0x14002e760]
xor r9d, r9d
xor r8d, r8d
call sub.avutil_58.dll_av_dict_get
test rax, rax
jne 0x1400092dd
xor r9d, r9d
lea r8, str.auto
lea rdx, [0x14002e760]
lea rcx, [rdi + 0x110]
call sub.avutil_58.dll_av_dict_set
test dword [r14 + 0x18], 0x100000
je 0x14000930f
mov r9d, 0x40
lea r8, str.copy_opaque
lea rdx, str.flags
lea rcx, [rdi + 0x110]
call sub.avutil_58.dll_av_dict_set
test eax, eax
js 0x1400096b3
mov r9d, 0x40
lea r8, str.frame_duration
lea rdx, str.flags
lea rcx, [rdi + 0x110]
call sub.avutil_58.dll_av_dict_set
test rsi, rsi
je 0x1400094ef
mov rbp, qword [rsi + 0x188]
mov rsi, r12
test rbp, rbp
je 0x1400094f2
mov rax, qword [rdi + 0x48]
mov rdx, qword [rbp + 8]
mov ecx, dword [rax + 0x88]
cmp dword [rdx + 0x44], ecx
je 0x1400094f5
jmp 0x1400094f2
mov eax, dword [rsi + 0x74]
lea rdx, [rsi + 0x1c0]
mov dword [rbx + 0x168], eax
lea rcx, [rbx + 0x390]
mov eax, dword [rsi + 0xd0]
mov dword [rbx + 0x160], eax
call sub.avutil_58.dll_av_channel_layout_copy
test eax, eax
js 0x1400096b3
mov ecx, dword [rdi + 0x7c]
test ecx, ecx
jne 0x1400093c4
mov ecx, dword [rbx + 0x168]
call sub.avutil_58.dll_av_get_bytes_per_sample
mov ecx, dword [r15 + 0x20]
shl eax, 3
cmp ecx, eax
jle 0x1400093c4
mov ecx, dword [rbx + 0x168]
call sub.avutil_58.dll_av_get_bytes_per_sample
mov ecx, eax
shl ecx, 3
mov dword [rbx + 0x274], ecx
jmp 0x140009290
mov eax, dword [rsi + 0x68]
mov dword [rbx + 0x74], eax
mov ecx, dword [rsi + 0x6c]
mov dword [rbx + 0x78], ecx
cmp dword [rdi + 0x88], 0
je 0x1400093ff
mov dword [rsp + 0x30], ecx
mov rcx, qword [rdi + 0x88]
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0x30]
call sub.avutil_58.dll_av_mul_q
jmp 0x140009406
mov rax, qword [rsi + 0x80]
mov rcx, qword [rdi + 0x28]
mov qword [rcx + 0x48], rax
mov qword [rbx + 0xd8], rax
mov eax, dword [rsi + 0x74]
mov dword [rbx + 0x88], eax
mov ecx, dword [rdi + 0x7c]
test ecx, ecx
jne 0x140009443
mov ecx, eax
call sub.avutil_58.dll_av_pix_fmt_desc_get
mov ecx, dword [r15 + 0x20]
cmp ecx, dword [rax + 0x28]
jle 0x140009443
mov ecx, dword [rbx + 0x88]
call sub.avutil_58.dll_av_pix_fmt_desc_get
mov ecx, dword [rax + 0x28]
mov dword [rbx + 0x274], ecx
test dword [rbx + 0x4c], 0x20040000
mov eax, dword [rsi + 0x140]
mov dword [rbx + 0x150], eax
mov eax, dword [rsi + 0x144]
mov dword [rbx + 0x144], eax
mov eax, dword [rsi + 0x148]
mov dword [rbx + 0x148], eax
mov eax, dword [rsi + 0x14c]
mov dword [rbx + 0x14c], eax
mov eax, dword [rsi + 0x150]
mov dword [rbx + 0x154], eax
jne 0x1400094ac
test byte [rsi + 0x13c], 8
jne 0x1400094ac
cmp dword [rdi + 0x6c], 0
jge 0x1400094ac
mov dword [rbx + 0x15c], 1
jmp 0x140009290
mov eax, dword [rdi + 0x6c]
test eax, eax
jns 0x1400094bf
mov eax, dword [rsi + 0x13c]
shr eax, 4
and eax, 1
mov r14, qword [rsp + 0x38]
cmp dword [r14 + 0x14], 7
jne 0x1400094dd
neg eax
sbb eax, eax
add eax, 3
mov dword [rbx + 0x15c], eax
jmp 0x140009295
neg eax
sbb eax, eax
add eax, 5
mov dword [rbx + 0x15c], eax
jmp 0x140009295
mov rsi, r12
mov rbp, r12
mov rcx, qword [rdi + 0x48]
xor edx, edx
mov ebx, r12d
mov rcx, qword [rcx + 0x10]
call sub.avcodec_60.dll_avcodec_get_hw_config
mov rcx, rax
test rax, rax
je 0x14000967d
test rbp, rbp
je 0x140009539
test byte [rcx + 4], 2
je 0x140009539
mov edx, dword [rcx]
cmp edx, 0xffffffff
je 0x140009623
mov rax, qword [rdi + 0x48]
cmp edx, dword [rax + 0x88]
je 0x140009623
test rsi, rsi
jne 0x14000954f
test byte [rcx + 4], 1
je 0x14000954f
mov ecx, dword [rcx + 8]
call fcn.14000faa0
mov rsi, rax
mov rcx, qword [rdi + 0x48]
inc ebx
mov edx, ebx
mov rcx, qword [rcx + 0x10]
call sub.avcodec_60.dll_avcodec_get_hw_config
mov rcx, rax
test rax, rax
jne 0x140009513
test rsi, rsi
je 0x14000967d
mov rax, qword [rdi + 0x48]
mov ecx, dword [rsi + 8]
mov rbx, qword [rax + 0x10]
call sub.avutil_58.dll_av_hwdevice_get_type_name
mov r9, qword [rsi]
lea r8, str.Using_device__s__type__s__with__s_encoder._n
mov rcx, rax
mov edx, 0x28
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x48]
call sub.avutil_58.dll_av_log
mov rcx, qword [rsi + 0x10]
call sub.avutil_58.dll_av_buffer_ref
mov rcx, rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x360], rcx
mov rax, qword [rdi + 0x48]
cmp qword [rax + 0x360], 0
jne 0x14000967d
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
mov r8d, 0x40
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea ecx, [r8 - 0x4c]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call sub.avutil_58.dll_av_strerror
lea r9, [rsp + 0x50]
mov edx, 0x10
lea r8, str.Encoding_hardware_device_setup_failed:__s_n
mov rcx, rdi
call sub.avutil_58.dll_av_log
mov eax, 0xfffffff4
jmp 0x1400096b3
mov rcx, qword [rdi + 0x48]
mov rbx, qword [rcx + 0x10]
mov ecx, dword [rcx + 0x88]
call sub.avutil_58.dll_av_get_pix_fmt_name
mov rcx, qword [rdi + 0x48]
lea r8, str.Using_input_frames_context__format__s__with__s_encoder._n
mov r9, rax
mov edx, 0x28
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call sub.avutil_58.dll_av_log
mov rcx, rbp
call sub.avutil_58.dll_av_buffer_ref
mov rcx, rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x348], rcx
mov rax, qword [rdi + 0x48]
cmp qword [rax + 0x348], 0
jmp 0x1400095cc
mov rcx, qword [rdi + 0x48]
lea r8, [rdi + 0x110]
mov rdx, r14
call sub.avcodec_60.dll_avcodec_open2
mov ebx, eax
test eax, eax
jns 0x1400096e3
cmp eax, 0xd44d5058
je 0x1400096b1
lea r8, str.Error_while_opening_encoder___maybe_incorrect_parameters_such_as_bit_rate__rate__width_or_height._n
mov edx, 0x10
mov rcx, rdi
call sub.avutil_58.dll_av_log
mov eax, ebx
mov r14, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14002b2c0
add rsp, 0xa8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbx, qword [rsp + 0x48]
mov dword [rbx + 0x20], 1
cmp dword [rdi + 0x16c], 0
jl 0x140009709
call sub.avutil_58.dll_av_frame_alloc
mov qword [rbx], rax
test rax, rax
je 0x140009619
mov rax, qword [rdi + 0x48]
mov r8d, dword [rax + 0x16c]
test r8d, r8d
je 0x14000976d
mov edx, dword [rdi + 0x16c]
test edx, edx
jns 0x140009755
lea rax, str.D:_a_obs_deps_obs_deps_windows_build_temp_FFmpeg_fftools_ffmpeg_enc.c
mov dword [rsp + 0x28], 0x147
lea r9, str.ost__sq_idx_encode___0
mov qword [rsp + 0x20], rax
lea r8, str.Assertion__s_failed_at__s:_d_n
xor edx, edx
xor ecx, ecx
call sub.avutil_58.dll_av_log
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
movsxd rcx, dword [rdi + 0xc]
mov rax, qword [0x140043190]
mov rcx, qword [rax + rcx*8]
mov rcx, qword [rcx + 0x30]
call fcn.1400211d0
mov rcx, qword [rdi + 0x110]
call fcn.140028100
test eax, eax
js 0x1400096b3
mov rax, qword [rdi + 0x48]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1400097b4
cmp rcx, 0x3e8
jge 0x1400097b4
cmp dword [rax + 0x18], 0x15043
je 0x1400097b4
lea r8, str.The_bitrate_parameter_is_set_too_low._It_takes_bits_s_as_argument__not_kbits_s_n
mov edx, 0x18
mov rcx, rdi
call sub.avutil_58.dll_av_log
mov rdx, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x18]
call sub.avcodec_60.dll_avcodec_parameters_from_context
mov ebx, eax
test eax, eax
jns 0x1400097d8
lea r8, str.Error_initializing_the_output_stream_codec_context._n
mov edx, 8
jmp 0x1400096a9
test r13, r13
je 0x140009887
mov rcx, qword [r13 + 0x10]
mov ebp, r12d
mov rax, qword [rcx + 0x10]
cmp dword [rax + 0xb8], 0
jle 0x140009887
mov rbx, r12
nop dword [rax]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax + 0xb0]
mov r8d, dword [rbx + rsi + 0x10]
cmp r8d, 0xa
je 0x14000986d
mov rcx, qword [rdi + 0x18]
mov r9, qword [rbx + rsi + 8]
mov dword [rsp + 0x20], r12d
lea rdx, [rcx + 0xb8]
add rcx, 0xb0
call sub.avcodec_60.dll_av_packet_side_data_new
mov r14, rax
test rax, rax
je 0x140009619
mov r8, qword [rbx + rsi + 8]
mov rdx, qword [rbx + rsi]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
cmp dword [r13 + 0x74], 0
je 0x14000986d
cmp dword [rbx + rsi + 0x10], 5
jne 0x14000986d
mov rcx, qword [r14]
xorps xmm1, xmm1
call sub.avutil_58.dll_av_display_rotation_set
mov rcx, qword [r13 + 0x10]
inc ebp
add rbx, 0x18
mov rax, qword [rcx + 0x10]
cmp ebp, dword [rax + 0xb8]
jl 0x140009800
mov rax, qword [rdi + 0x28]
cmp dword [rax + 0x20], 0
jle 0x140009897
cmp dword [rax + 0x24], 0
jg 0x1400098be
mov rcx, qword [rdi + 0x48]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], 1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x64]
call sub.avutil_58.dll_av_add_q
mov rdx, qword [rdi + 0x28]
mov qword [rdx + 0x20], rax
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call fcn.1400109b0
test eax, eax
cmovs r12d, eax
mov eax, r12d
jmp 0x1400096b3
xor eax, eax
jmp 0x1400096c3