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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1f0], ecx
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x50]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0xb0]
mov dword [ebp - 0x20c], eax
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x1a0], esi
movsd qword [ebp - 0x200], xmm0
movsd qword [ebp - 0x1d0], xmm0
mov edx, dword [eax]
mov dword [ebp - 0x1ec], 0
test ecx, ecx
js 0x10020240
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x1c4], ecx
push edx
call dword [sym.imp.avfilter_7.dll_av_buffersink_get_frame_rate]
movsd xmm4, qword [0x100a6598]
add esp, 4
movsd qword [ebp - 0x218], xmm4
test eax, eax
jle 0x100202a1
test edx, edx
jle 0x100202a1
movd xmm2, dword [esi + 0x4c]
movaps xmm3, xmm4
movd xmm0, dword [esi + 0x50]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
movd xmm1, eax
divsd xmm2, xmm0
movd xmm0, edx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
mulsd xmm2, xmm1
divsd xmm3, xmm2
movsd qword [ebp - 0x1d0], xmm3
jmp 0x100202a9
movsd xmm3, qword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1c4]
test ecx, ecx
je 0x10020344
mov eax, dword [ecx + 4]
cmp dword [eax + 0x18], 0
jne 0x100202c9
cmp dword [eax + 0x1c], 0x80000000
je 0x10020344
cmp dword [eax + 0xc0], 0
jne 0x100202de
cmp dword [eax + 0xc4], 0x80000000
je 0x10020344
cmp dword [edi + 0x84], 0
je 0x10020344
mov eax, dword [esi + 0x4c]
xorps xmm2, xmm2
mov ecx, dword [edi + 0x84]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x50]
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e8], eax
xorps xmm1, xmm1
cvtsi2sd xmm2, eax
cvtsi2sd xmm1, ecx
mov ecx, dword [ebp - 0x1c4]
divsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [edi + 0x88]
divsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm2, xmm1
divsd xmm0, xmm2
comisd xmm3, xmm0
jbe 0x10020344
movsd qword [ebp - 0x1d0], xmm0
cmp dword [edi + 0x114], 0
mov eax, dword [sym.imp.avutil_56.dll_av_log]
mov dword [ebp - 0x198], eax
jne 0x100204e3
cmp dword [edi + 0x110], 0
jne 0x100204e3
mov eax, dword [ebp - 0x19c]
cmp dword [eax + 0x84], 0
je 0x1002038a
mov eax, dword [eax + 0x80]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x100204e3
cmp dword [ebp - 0x1ac], 0
je 0x100204f0
test ecx, ecx
je 0x1002045f
mov eax, dword [ecx + 4]
mov esi, dword [esi + 0x4c]
mov ecx, dword [eax + 0x10]
movd xmm0, dword [eax + 0x14]
cvtdq2pd xmm0, xmm0
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e8], esi
mov edx, dword [eax + 0x154]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
mov ecx, dword [eax + 0x150]
divsd xmm1, xmm0
movsd qword [ebp - 0x1d8], xmm1
call fcn.10089aa0
mov eax, dword [ebp - 0x1a0]
movsd xmm2, qword [ebp - 0x1d8]
mulsd xmm2, xmm0
push ecx
movd xmm0, dword [eax + 0x50]
movd xmm1, esi
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
divsd xmm2, xmm1
cvtpd2ps xmm0, xmm2
movss dword [ebp - 0x1a4], xmm0
fld dword [ebp - 0x1a4]
fstp dword [esp]
movss dword [ebp - 0x1bc], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_lrintf
add esp, 4
test eax, eax
jle 0x1002045f
fld dword [ebp - 0x1bc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_lrintf
add esp, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x1d0], xmm0
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
call fcn.10089aa0
movsd xmm1, qword [ebx + 0x10]
mov esi, dword [0x100b404c]
subsd xmm1, xmm0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x194], 1
movsd qword [ebp - 0x1f8], xmm1
movaps xmm0, xmm1
addsd xmm0, qword [ebp - 0x1d0]
movsd qword [ebp - 0x1d8], xmm0
cmp esi, 0xffffffff
jne 0x100205ff
mov eax, dword [ebp - 0x1f0]
mov ecx, 0x100985e4
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [esi]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002053b
test dl, dl
je 0x100204df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002053b
add eax, 2
add ecx, 2
test dl, dl
jne 0x100204c3
xor eax, eax
jmp 0x10020540
cmp dword [ebp - 0x1ac], 0
jne 0x1002045f
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x194], edx
cmp ecx, edx
jle 0x1002051f
cmp eax, edx
jle 0x10020530
cmp eax, ecx
mov edx, eax
cmovg edx, ecx
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x1a8], edx
jmp 0x1002081f
cmp edx, eax
jle 0x10020530
cmp eax, ecx
mov edx, ecx
cmovg edx, eax
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x1a8], edx
jmp 0x1002081f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10020549
lea esi, [eax + 2]
jmp 0x100205a0
mov esi, dword [esi + 0x1c]
test esi, 0x400
je 0x10020561
shr esi, 6
not esi
and esi, 2
jmp 0x10020604
mov ecx, dword [ebp - 0x1c4]
mov esi, 1
test ecx, ecx
je 0x1002058d
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
cmp dword [eax + 0x18], esi
jne 0x1002058d
mov eax, dword [ecx + 0x28]
or eax, dword [ecx + 0x2c]
je 0x10020596
cmp dword [0x100b63d4], 0
je 0x1002059b
mov esi, 0xfe
mov eax, 1
movsd xmm2, qword [ebp - 0x200]
comisd xmm2, xmm1
mov dword [edi + 0x8c], eax
jbe 0x10020652
comisd xmm0, xmm2
jbe 0x10020652
test esi, esi
je 0x10020659
cmp esi, 0xff
je 0x10020694
movsd xmm2, qword [str.333333]
sub esp, 8
comisd xmm2, xmm1
movaps xmm0, xmm1
xorps xmm0, xmmword [0x100a6790]
movsd qword [esp], xmm0
jbe 0x10020610
push str.Past_duration__f_too_large_n
push 0x28
jmp 0x10020617
cmp esi, 1
je 0x1002059b
cmp esi, 0xfe
je 0x1002059b
xor eax, eax
jmp 0x100205a0
push str.Clipping_frame_in_rate_conversion_by__f_n
push 0x30
push 0
call dword [ebp - 0x198]
mov edx, dword [edi + 0x24]
add esp, 0x14
mov ecx, dword [edi + 0x20]
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x200]
movsd qword [ebx + 0x10], xmm0
movsd xmm0, qword [ebp - 0x1d8]
movsd qword [ebp - 0x1d0], xmm0
movsd qword [ebp - 0x1f8], xmm1
cmp esi, 2
jg 0x100206b1
je 0x10020669
sub esi, 0
je 0x10020694
sub esi, 1
je 0x1002075e
jmp 0x100206be
movsd xmm1, qword [str.333333]
comisd xmm1, xmm0
jb 0x10020686
mov dword [ebp - 0x194], 0
jmp 0x1002081f
comisd xmm0, xmmword [0x100a6580]
jbe 0x1002081f
fld qword [ebx + 0x10]
sub esp, 8
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_lrint
cdq
add esp, 8
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
jmp 0x1002081f
sub esi, 0xfe
je 0x100206e5
sub esi, 1
je 0x10020694
push 0x4c7
push str.D:Sources_avc_src_avctranscode_ffmpeg.c
push 0x10096120
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call dword [ebp - 0x198]
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
cmp dword [edi + 0x14], 0
jne 0x1002075e
comisd xmm1, xmmword [0x100a6578]
jb 0x1002075e
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
push ecx
movss dword [ebp - 0x1a4], xmm0
fld dword [ebp - 0x1a4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_lrintf
add esp, 4
push eax
push str.Not_duplicating__d_initial_frames_n
push 0x30
push 0
call dword [ebp - 0x198]
movsd xmm0, qword [ebp - 0x1d0]
add esp, 8
fld qword [ebx + 0x10]
movsd qword [ebp - 0x1d8], xmm0
movsd xmm0, qword [ebp - 0x200]
fstp qword [esp]
movsd qword [ebp - 0x1f8], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_lrint
cdq
add esp, 8
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
movss xmm0, dword [0x100b63fc]
ucomiss xmm0, dword [0x100a64e4]
movsd xmm1, qword [ebp - 0x1d8]
lahf
test ah, 0x44
jnp 0x10020799
cvtps2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x10020799
cmp dword [edi + 0x14], 0
je 0x10020799
mov dword [ebp - 0x194], 0
jmp 0x1002081f
movsd xmm0, qword [0x100a66c8]
comisd xmm0, xmm1
jbe 0x100207b3
mov dword [ebp - 0x194], 0
jmp 0x1002081f
comisd xmm1, xmmword [0x100a65a8]
jbe 0x1002081f
cvtpd2ps xmm0, xmm1
push ecx
movss dword [ebp - 0x1a4], xmm0
fld dword [ebp - 0x1a4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_lrintf
movsd xmm0, qword [ebp - 0x1f8]
add esp, 4
comisd xmm0, xmmword [0x100a65a8]
mov dword [ebp - 0x194], eax
jbe 0x1002081f
subsd xmm0, qword [0x100a6580]
push ecx
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x1a4], xmm0
fld dword [ebp - 0x1a4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_lrintf
add esp, 4
mov dword [ebp - 0x1a8], eax
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
cdq
sub esi, eax
mov eax, dword [ebp - 0x194]
sbb ecx, edx
cdq
cmp edx, ecx
jl 0x1002084c
jg 0x1002083e
cmp eax, esi
jbe 0x1002084c
mov eax, dword [edi + 0x60]
sub eax, dword [edi + 0x14]
mov dword [ebp - 0x194], eax
jmp 0x10020852
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x1a8]
lea esi, [edi + 0x74]
cmp ecx, eax
push 8
cmovg ecx, eax
lea eax, [edi + 0x78]
push esi
push eax
mov dword [ebp - 0x1a8], ecx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x1a8]
add esp, 0xc
mov dword [esi], edx
mov eax, dword [edi + 0x70]
test edx, edx
jne 0x10020924
test eax, eax
je 0x100208bd
mov eax, dword [ebp - 0x19c]
inc dword [eax + 0x20]
mov eax, dword [edi + 0x6c]
push dword [eax + 0x6c]
push dword [eax + 0x68]
mov eax, dword [edi + 0xc]
push dword [eax]
push dword [edi + 0x14]
push str._dropping_frame__d_from_stream__d_at_ts__lld_n
push 0x28
push edx
call dword [ebp - 0x198]
mov edx, dword [ebp - 0x1a8]
add esp, 0x1c
xor eax, eax
mov esi, dword [ebp - 0x194]
xor ecx, ecx
cmp esi, edx
setg cl
add eax, ecx
cmp esi, eax
jle 0x1002099d
movss xmm0, dword [0x100b4038]
mulss xmm0, dword [0x100a6680]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1002092f
lea eax, [esi - 1]
push eax
push str._d_frame_duplication_too_large__skipping_n
push 0x10
push 0
call dword [ebp - 0x198]
mov eax, dword [ebp - 0x19c]
add esp, 0x10
inc dword [eax + 0x20]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test eax, eax
je 0x100208bd
mov eax, 1
jmp 0x100208bf
test edx, edx
je 0x10020940
cmp dword [edi + 0x70], 0
je 0x10020940
mov edx, 1
jmp 0x10020942
xor edx, edx
mov eax, esi
mov esi, dword [ebp - 0x19c]
sub eax, ecx
sub eax, edx
add dword [esi + 0x18], eax
mov eax, dword [ebp - 0x194]
dec eax
push eax
push str.__d_dup__n
push 0x28
push 0
call dword [ebp - 0x198]
mov eax, dword [esi + 0x1c]
add esp, 0x10
cmp dword [esi + 0x18], eax
jbe 0x10020991
push eax
push str.More_than__d_frames_duplicated_n
push 0x18
push 0
call dword [ebp - 0x198]
mov eax, dword [esi + 0x1c]
add esp, 0x10
lea eax, [eax + eax*4]
add eax, eax
mov dword [esi + 0x1c], eax
mov edx, dword [ebp - 0x1a8]
mov esi, dword [ebp - 0x194]
cmp esi, edx
jne 0x100209b1
cmp dword [ebp - 0x1ac], 0
je 0x100209b1
mov eax, 1
jmp 0x100209b3
xor eax, eax
mov dword [edi + 0x70], eax
mov dword [ebp - 0x1bc], 0
test esi, esi
jle 0x10021364
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
movsd xmm0, qword [0x100a66a8]
mov ecx, dword [sym.imp.avcodec_58.dll_av_init_packet]
mov dword [ebp - 0x208], eax
mov eax, dword [sym.imp.avcodec_58.dll_avcodec_send_frame]
mov dword [ebp - 0x204], eax
mov eax, dword [sym.imp.avutil_56.dll_av_frame_remove_side_data]
mov dword [ebp - 0x1f4], eax
mov eax, dword [sym.imp.avcodec_58.dll_avcodec_receive_packet]
mov dword [ebp - 0x1a4], eax
mov eax, dword [sym.imp.avcodec_58.dll_av_packet_rescale_ts]
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1d4], eax
movsd qword [ebp - 0x1e8], xmm0
nop dword [eax + eax]
lea eax, [ebp - 0x190]
mov dword [ebp - 0x1b4], 0
push eax
call ecx
mov eax, dword [ebp - 0x1a8]
add esp, 4
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
cmp dword [ebp - 0x1bc], eax
jge 0x10020a5f
mov esi, dword [edi + 0x6c]
test esi, esi
jne 0x10020a6d
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x100213f7
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x19c]
mov dword [esi + 0x6c], ecx
mov ecx, edi
mov dword [esi + 0x68], eax
call fcn.1001f8e0
test eax, eax
je 0x100213f7
mov edx, dword [ebp - 0x1a0]
test dword [edx + 0x3c], 0x20040000
je 0x10020ab4
mov ecx, dword [edi + 0x94]
test ecx, ecx
js 0x10020ab4
xor eax, eax
test ecx, ecx
setne al
mov dword [esi + 0xd8], eax
cmp dword [esi + 0xd4], 0
je 0x10020ade
mov eax, dword [edx + 0xc]
mov ecx, dword [esi + 0xd8]
cmp dword [eax + 0xc], 7
jne 0x10020ad5
neg ecx
sbb ecx, ecx
add ecx, 3
jmp 0x10020ae3
neg ecx
sbb ecx, ecx
add ecx, 5
jmp 0x10020ae3
mov ecx, 1
mov eax, dword [ebp - 0x20c]
mov dword [eax + 0x40], ecx
mov eax, dword [edx + 0x34]
mov dword [esi + 0x88], eax
mov dword [esi + 0x58], 0
mov ecx, dword [edi + 0xb0]
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x1c4], ecx
test ecx, ecx
jne 0x10020b58
cmp eax, 0x80000000
jne 0x10020b58
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1dc], 0x80000000
test ecx, ecx
jne 0x10020b3e
cmp eax, 0x80000000
je 0x10020b52
mov dword [edi + 0xb0], ecx
mov dword [edi + 0xb4], eax
mov dword [ebp - 0x1c4], ecx
jmp 0x10020b58
mov eax, dword [ebp - 0x1dc]
cmp dword [esi + 0x68], 0
mov ecx, dword [esi + 0x6c]
jne 0x10020b73
cmp ecx, 0x80000000
jne 0x10020b73
movsd xmm1, qword [ebp - 0x1e8]
jmp 0x10020bb3
movd xmm1, dword [edx + 0x4c]
movd xmm0, dword [edx + 0x50]
cvtdq2pd xmm1, xmm1
mov ecx, dword [esi + 0x68]
sub ecx, dword [ebp - 0x1c4]
mov edx, dword [esi + 0x6c]
sbb edx, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1e0], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1e0]
mov ecx, dword [esi + 0x6c]
mulsd xmm1, xmm0
mov eax, dword [edi + 0xc0]
movsd qword [ebp - 0x1e0], xmm1
cmp eax, dword [edi + 0xbc]
jge 0x10020beb
mov edx, dword [edi + 0xb8]
cmp ecx, dword [edx + eax*8 + 4]
jl 0x10020beb
jg 0x10020bdf
mov ecx, dword [esi + 0x68]
cmp ecx, dword [edx + eax*8]
jb 0x10020beb
inc eax
mov dword [edi + 0xc0], eax
jmp 0x10020cb0
mov ecx, dword [edi + 0xc8]
test ecx, ecx
je 0x10020c8b
lea eax, [edi + 0xd0]
movsd qword [edi + 0xf0], xmm1
push 0
push eax
push ecx
call dword [sym.imp.avutil_56.dll_av_expr_eval]
movsd xmm1, qword [edi + 0xd0]
add esp, 0xc
fstp qword [ebp - 0x1c8]
movsd xmm0, qword [ebp - 0x1c8]
ucomisd xmm0, qword [ebp - 0x200]
lahf
test ah, 0x44
jnp 0x10020c6f
movsd xmm0, qword [edi + 0xf0]
mov eax, 1
movsd qword [edi + 0xe8], xmm0
movsd xmm0, qword [edi + 0xd8]
addsd xmm0, qword [ebp - 0x218]
movsd qword [edi + 0xe0], xmm1
movsd qword [edi + 0xd8], xmm0
jmp 0x10020c75
mov eax, dword [ebp - 0x1b4]
addsd xmm1, qword [ebp - 0x218]
movsd qword [edi + 0xd0], xmm1
test eax, eax
je 0x10020cd9
jmp 0x10020cb0
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x10020cd9
push 6
push str.source
push eax
call dword [ebp - 0x208]
add esp, 0xc
test eax, eax
jne 0x10020cd9
cmp dword [esi + 0x54], 1
jne 0x10020cd9
movsd xmm1, qword [ebp - 0x1e0]
sub esp, 8
mov dword [esi + 0x58], 1
movsd qword [esp], xmm1
push str.Forced_keyframe_at_time__f_n
push 0x30
push 0
call dword [ebp - 0x198]
add esp, 0x14
push 0
push dword [ebp - 0x19c]
call fcn.1001ebe0
add esp, 8
cmp dword [0x100b63f4], 0
je 0x10020dfc
mov ecx, dword [esi + 0x68]
xorps xmm0, xmm0
mov edx, dword [esi + 0x6c]
movups xmmword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
movups xmmword [ebp - 0x74], xmm0
test ecx, ecx
jne 0x10020d3c
cmp edx, 0x80000000
jne 0x10020d3c
push str.NOPTS
lea eax, [ebp - 0xa4]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10020d8f
mov eax, dword [ebp - 0x1a0]
movd xmm1, dword [eax + 0x4c]
movd xmm0, dword [eax + 0x50]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1b8], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1b8]
lea eax, [ebp - 0xa4]
sub esp, 8
mulsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.6g
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
test ecx, ecx
jne 0x10020db8
cmp eax, 0x80000000
jne 0x10020db8
push str.NOPTS
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10020dd0
push eax
push ecx
push 0x1009806c
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov eax, dword [ebp - 0x1a0]
push dword [eax + 0x50]
push dword [eax + 0x4c]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x84]
push eax
push str.encoder____type:video_frame_pts:_s_frame_pts_time:_s_time_base:_d__d_n
push 0x20
push 0
call dword [ebp - 0x198]
add esp, 0x1c
add dword [edi + 0x168], 1
mov eax, dword [ebp - 0x1a0]
adc dword [edi + 0x16c], 0
push esi
push eax
call dword [ebp - 0x204]
add esp, 8
test eax, eax
js 0x100213b1
push 1
push esi
call dword [ebp - 0x1f4]
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1a0]
call dword [ebp - 0x1a4]
push dword [edi + 4]
mov esi, eax
push dword [edi]
push str.encode_video__d._d
push dword [ebp - 0x19c]
call fcn.1001ebe0
add esp, 0x20
cmp esi, 0xfffffff5
je 0x10021314
test esi, esi
js 0x100213b1
cmp dword [0x100b63f4], 0
je 0x10021047
mov ecx, dword [ebp - 0x180]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x17c]
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
test ecx, ecx
jne 0x10020ed3
cmp edx, 0x80000000
jne 0x10020ed3
push str.NOPTS
lea eax, [ebp - 0x64]
push 0x20
push eax
call fcn.10019630
mov esi, dword [ebp - 0x1a0]
add esp, 0xc
jmp 0x10020f23
mov esi, dword [ebp - 0x1a0]
movd xmm1, dword [esi + 0x4c]
movd xmm0, dword [esi + 0x50]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1b8], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1b8]
lea eax, [ebp - 0x64]
sub esp, 8
mulsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.6g
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x17c]
test ecx, ecx
jne 0x10020f4f
cmp eax, 0x80000000
jne 0x10020f4f
push str.NOPTS
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10020f64
push eax
push ecx
push 0x1009806c
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x184]
test ecx, ecx
jne 0x10020f91
cmp edx, 0x80000000
jne 0x10020f91
push str.NOPTS
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10020fdb
movd xmm1, dword [esi + 0x4c]
movd xmm0, dword [esi + 0x50]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1b8], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1b8]
lea eax, [ebp - 0x24]
sub esp, 8
mulsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.6g
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x184]
test ecx, ecx
jne 0x1002100a
cmp eax, 0x80000000
jne 0x1002100a
push str.NOPTS
lea eax, [ebp - 0x144]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10021022
push eax
push ecx
push 0x1009806c
lea eax, [ebp - 0x144]
push 0x20
push eax
call fcn.10019630
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x144]
push eax
push str.encoder____type:video_pkt_pts:_s_pkt_pts_time:_s_pkt_dts:_s_pkt_dts_time:_s_n
push 0x20
push 0
call dword [ebp - 0x198]
add esp, 0x1c
cmp dword [ebp - 0x188], 0
mov esi, dword [ebp - 0x1a0]
jne 0x1002107d
cmp dword [ebp - 0x184], 0x80000000
jne 0x1002107d
mov eax, dword [esi + 0xc]
test byte [eax + 0x10], 0x20
jne 0x1002107d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], ecx
push dword [edi + 0x3c]
lea eax, [ebp - 0x190]
push dword [edi + 0x38]
push dword [esi + 0x50]
push dword [esi + 0x4c]
push eax
call dword [ebp - 0x1d4]
add esp, 0x14
cmp dword [0x100b63f4], 0
je 0x10021297
mov ecx, dword [ebp - 0x180]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x17c]
movups xmmword [ebp - 0x124], xmm0
movups xmmword [ebp - 0x114], xmm0
movups xmmword [ebp - 0x104], xmm0
movups xmmword [ebp - 0xf4], xmm0
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd4], xmm0
movups xmmword [ebp - 0xc4], xmm0
movups xmmword [ebp - 0xb4], xmm0
test ecx, ecx
jne 0x10021111
cmp edx, 0x80000000
jne 0x10021111
push str.NOPTS
lea eax, [ebp - 0x124]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x1002115e
movd xmm1, dword [edi + 0x38]
movd xmm0, dword [edi + 0x3c]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1b8], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1b8]
lea eax, [ebp - 0x124]
sub esp, 8
mulsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.6g
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x17c]
test ecx, ecx
jne 0x1002118d
cmp eax, 0x80000000
jne 0x1002118d
push str.NOPTS
lea eax, [ebp - 0x104]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x100211a5
push eax
push ecx
push 0x1009806c
lea eax, [ebp - 0x104]
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x184]
test ecx, ecx
jne 0x100211d5
cmp edx, 0x80000000
jne 0x100211d5
push str.NOPTS
lea eax, [ebp - 0xe4]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10021222
movd xmm1, dword [edi + 0x38]
movd xmm0, dword [edi + 0x3c]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [ebp - 0x1b8], xmm1
call fcn.10089aa0
movsd xmm1, qword [ebp - 0x1b8]
lea eax, [ebp - 0xe4]
sub esp, 8
mulsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.6g
push 0x20
push eax
call fcn.10019630
add esp, 0x14
mov ecx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x184]
test ecx, ecx
jne 0x10021251
cmp eax, 0x80000000
jne 0x10021251
push str.NOPTS
lea eax, [ebp - 0xc4]
push 0x20
push eax
call fcn.10019630
add esp, 0xc
jmp 0x10021269
push eax
push ecx
push 0x1009806c
lea eax, [ebp - 0xc4]
push 0x20
push eax
call fcn.10019630
add esp, 0x14
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xc4]
push eax
push str.encoder____type:video_pkt_pts:_s_pkt_pts_time:_s_pkt_dts:_s_pkt_dts_time:_s_n
push 0x20
push 0
call dword [ebp - 0x198]
add esp, 0x1c
push dword [ebp - 0x19c]
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x190]
mov ecx, dword [ebp - 0x1f0]
push 0
push edi
mov dword [ebp - 0x1ec], eax
call fcn.1001f790
mov ecx, dword [edi + 0x104]
add esp, 0xc
test ecx, ecx
je 0x100212e3
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x100212e3
push eax
push 0x100966b8
push ecx
call fcn.100195e0
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
push esi
call dword [ebp - 0x1a4]
push dword [edi + 4]
mov esi, eax
push dword [edi]
push str.encode_video__d._d
push dword [ebp - 0x19c]
call fcn.1001ebe0
add esp, 0x18
cmp esi, 0xfffffff5
jne 0x10020e62
add dword [edi + 0x20], 1
mov esi, dword [ebp - 0x19c]
adc dword [edi + 0x24], 0
inc dword [edi + 0x14]
cmp dword [esi + 0x88], 0
je 0x10021345
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x10021345
push esi
mov edx, eax
mov ecx, edi
call fcn.10021410
add esp, 4
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1cc]
inc eax
mov dword [ebp - 0x1bc], eax
cmp eax, dword [ebp - 0x194]
jl 0x10020a20
mov eax, dword [edi + 0x6c]
lea esi, [edi + 0x6c]
test eax, eax
jne 0x10021379
call dword [sym.imp.avutil_56.dll_av_frame_alloc]
mov dword [esi], eax
mov eax, dword [edi + 0x6c]
push eax
call dword [sym.imp.avutil_56.dll_av_frame_unref]
mov ecx, dword [ebp - 0x1ac]
add esp, 4
test ecx, ecx
je 0x100213ed
mov eax, dword [esi]
test eax, eax
je 0x100213ed
push ecx
push eax
call dword [sym.imp.avutil_56.dll_av_frame_ref]
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Video_encoding_failed_n
push 8
push 0
call dword [ebp - 0x198]
mov eax, dword [0x100b64d4]
add esp, 0xc
test eax, eax
je 0x100213d9
push dword [ebp - 0x19c]
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
mov dword [0x100b64d4], 0
jmp 0x100213f4
push esi
call dword [sym.imp.avutil_56.dll_av_frame_free]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret