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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rdx + 0x20]
mov r13, rcx
mov rax, qword [0x140043180]
mov rdi, rdx
mov rsi, qword [rdx + 0x18]
mov rbx, qword [rdx + 0x50]
movsxd r8, dword [r15 + 8]
mov qword [rsp + 0x98], rbx
mov r14d, dword [rsi + 8]
mov rcx, qword [rax + r8*8]
mov qword [rsp + 0x30], rcx
xor ecx, ecx
mov qword [rsp + 0x38], 0
call sub.avcodec_60.dll_avcodec_alloc_context3
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x14001c422
mov eax, 0xfffffff4
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [r15 + 0x28]
mov rcx, rax
mov qword [rsp + 0x80], r12
call sub.avcodec_60.dll_avcodec_parameters_to_context
mov ebp, eax
test eax, eax
js 0x14001c796
mov rcx, qword [rsp + 0x90]
lea rdx, [rdi + 0x110]
call sub.avutil_58.dll_av_opt_set_dict
mov ebp, eax
test eax, eax
js 0x14001c796
mov rdx, qword [rsp + 0x90]
mov rcx, rsi
call sub.avcodec_60.dll_avcodec_parameters_from_context
mov ebp, eax
test eax, eax
jns 0x14001c480
lea r8, str.Error_getting_reference_codec_parameters._n
jmp 0x14001c79d
test r14d, r14d
jne 0x14001c4c5
mov rax, qword [r13 + 0x70]
mov rcx, qword [rax + 0x10]
mov rbp, qword [rcx + 0x30]
test rbp, rbp
je 0x14001c4c1
mov edx, dword [rsi + 8]
mov rcx, rbp
mov r12d, dword [rsi + 4]
call sub.avformat_60.dll_av_codec_get_id
cmp eax, r12d
je 0x14001c4c1
lea r8, [rsp + 0x88]
mov edx, r12d
mov rcx, rbp
call sub.avformat_60.dll_av_codec_get_tag2
test eax, eax
jne 0x14001c4c5
mov r14d, dword [rsi + 8]
mov dword [rsi + 8], r14d
test ebx, ebx
jne 0x14001c4dd
mov rbx, qword [r15 + 0x68]
mov qword [rsp + 0x98], rbx
test ebx, ebx
je 0x14001c4e7
mov rax, qword [rdi + 0x28]
mov qword [rax + 0x58], rbx
jmp 0x14001c4f7
mov rax, qword [r15 + 0x10]
mov rcx, qword [rdi + 0x28]
mov rax, qword [rax + 0x58]
mov qword [rcx + 0x58], rax
mov rcx, qword [r13 + 0x70]
mov r9d, dword [0x140043014]
mov r8, qword [r15 + 0x10]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rcx + 0x10]
call sub.avformat_60.dll_avformat_transfer_internal_stream_timing_info
mov ebp, eax
test eax, eax
js 0x14001c7aa
mov rcx, qword [rdi + 0x28]
cmp dword [rcx + 0x20], 0
jle 0x14001c52d
cmp dword [rcx + 0x24], 0
jg 0x14001c583
test ebx, ebx
je 0x14001c550
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], ebx
mov rax, qword [rsp + 0x88]
jmp 0x14001c57f
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 1
call sub.avformat_60.dll_av_stream_get_codec_timebase
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call sub.avutil_58.dll_av_add_q
mov rcx, qword [rdi + 0x28]
mov qword [rcx + 0x20], rax
cmp dword [rdi + 0x25c], 0
jne 0x14001c5d9
mov rax, qword [r13 + 0x40]
movabs r8, 0x8000000000000000
xor r13d, r13d
cmp rax, r8
mov edx, r13d
cmovne rdx, rax
mov qword [rdi + 0x228], rdx
cmp dword [0x140043130], r13d
je 0x14001c5dc
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x40]
cmp rcx, r8
je 0x14001c5dc
add rcx, qword [rax + 0x38]
cmp rdx, rcx
cmovg rcx, rdx
mov qword [rdi + 0x228], rcx
jmp 0x14001c5dc
xor r13d, r13d
mov rcx, qword [r15 + 0x10]
mov r12d, r13d
mov rax, qword [rcx + 0x10]
cmp dword [rax + 0xb8], 0
jle 0x14001c667
mov rbx, r13
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + 0x10]
mov dword [rsp + 0x20], r13d
mov r14, qword [rax + 0xb0]
mov rax, qword [rdi + 0x28]
mov r9, qword [rbx + r14 + 8]
mov rcx, qword [rax + 0x10]
mov r8d, dword [rbx + r14 + 0x10]
lea rdx, [rcx + 0xb8]
add rcx, 0xb0
call sub.avcodec_60.dll_av_packet_side_data_new
test rax, rax
je 0x14001c6fa
mov r8, qword [rbx + r14 + 8]
mov rdx, qword [rbx + r14]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r15 + 0x10]
inc r12d
add rbx, 0x18
mov rax, qword [rcx + 0x10]
cmp r12d, dword [rax + 0xb8]
jl 0x14001c600
cmp dword [rdi + 0x70], 0
je 0x14001c6b3
mov rax, qword [rdi + 0x28]
mov r9d, 0x24
mov dword [rsp + 0x20], r13d
mov rcx, qword [rax + 0x10]
lea r8d, [r9 - 0x1f]
lea rdx, [rcx + 0xb8]
add rcx, 0xb0
call sub.avcodec_60.dll_av_packet_side_data_new
test rax, rax
je 0x14001c6b3
movsd xmm1, qword [rdi + 0x80]
xorps xmm1, xmmword [0x14002f9e0]
mov rcx, qword [rax]
call sub.avutil_58.dll_av_display_rotation_set
mov ecx, dword [rsi]
test ecx, ecx
je 0x14001c704
cmp ecx, 1
jne 0x14001c7aa
mov eax, dword [rsi + 0x78]
cmp eax, ecx
je 0x14001c6d7
cmp eax, 0x480
je 0x14001c6d7
cmp eax, 0x240
jne 0x14001c6e4
cmp dword [rsi + 4], 0x15001
jne 0x14001c6e4
mov dword [rsi + 0x78], r13d
cmp dword [rsi + 4], 0x15003
jne 0x14001c7aa
mov dword [rsi + 0x78], r13d
jmp 0x14001c7aa
mov ebp, 0xfffffff4
jmp 0x14001c7aa
cmp dword [rdi + 0x88], 0
je 0x14001c74e
mov eax, dword [rsi + 0x3c]
mov rcx, qword [rdi + 0x88]
mov dword [rsp + 0x88], eax
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x8c], eax
mov rdx, qword [rsp + 0x88]
call sub.avutil_58.dll_av_mul_q
lea r8, str.Overriding_aspect_ratio_with_stream_copy_may_produce_invalid_files_n
mov edx, 0x18
mov rcx, rdi
mov rbx, rax
call sub.avutil_58.dll_av_log
jmp 0x14001c762
mov rbx, qword [r15 + 0x10]
cmp dword [rbx + 0x48], 0
je 0x14001c75e
mov rbx, qword [rbx + 0x48]
jmp 0x14001c762
mov rbx, qword [rsi + 0x40]
mov qword [rsi + 0x40], rbx
mov rax, qword [rdi + 0x28]
mov qword [rax + 0x48], rbx
mov rax, qword [r15 + 0x10]
mov rcx, qword [rdi + 0x28]
mov rax, qword [rax + 0x58]
mov qword [rcx + 0x58], rax
mov rax, qword [r15 + 0x10]
mov rcx, qword [rdi + 0x28]
mov rax, qword [rax + 0xd8]
mov qword [rcx + 0xd8], rax
jmp 0x14001c7aa
lea r8, str.Error_setting_up_codec_context_options._n
mov edx, 8
mov rcx, rdi
call sub.avutil_58.dll_av_log
lea rcx, [rsp + 0x90]
call sub.avcodec_60.dll_avcodec_free_context
lea rcx, [rsp + 0x38]
call sub.avutil_58.dll_av_dict_free
mov r12, qword [rsp + 0x80]
mov eax, ebp
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret