Function at 0x10020de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0
jle 0x10020e29
nop word cs:[eax + eax]
nop
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + 1]
mov dword [esi + 0x1c], edx
mov edx, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, byte [edx + ecx]
lea edi, [ebx + 1]
mov dword [esi + 4], edi
mov byte [edx + ebx], cl
mov ecx, dword [esi + 0x18]
lea edx, [ecx - 1]
mov dword [esi + 0x18], edx
cmp ecx, 1
jg 0x10020e00
mov edi, eax
mov ecx, dword [eax]
mov eax, 0xffffffea
mov ebx, dword [ebp + 0xc]
cmp ecx, ebx
jl 0x1002109b
mov edx, ebx
xor edx, 0xffffff9c
or edx, ecx
mov edx, 0
cmovne edx, ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
cmp edx, 0xffffff9c
jne 0x10020e9c
mov ecx, dword [edi]
add eax, ecx
add eax, 0x40
lea ecx, [esi + 0xc]
push eax
push ecx
push dword [esi]
call fcn.10070df0
add esp, 0xc
test eax, eax
je 0x10020efb
mov dword [esi], eax
add eax, dword [esi + 4]
push dword [edi]
push dword [ebx]
push eax
call fcn.101053c0
add esp, 0xc
mov ecx, dword [esi + 4]
add ecx, dword [edi]
mov eax, 0xffffffff
mov dword [esi + 4], ecx
jmp 0x1002109b
test edx, edx
jns 0x10020ea9
cmp dword [esi], 0
je 0x100210a3
add eax, edx
mov dword [esi + 0x1c], eax
mov dword [edi], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10020f5f
lea edi, [edx + 0x40]
add eax, edx
add eax, 0x40
lea ecx, [esi + 0xc]
push eax
push ecx
push dword [esi]
mov ebx, edx
call fcn.10070df0
add esp, 0xc
test eax, eax
je 0x10020f26
mov dword [esi], eax
cmp ebx, 0xffffffc1
mov edx, ebx
jl 0x10020f53
add eax, dword [esi + 4]
push edi
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push eax
mov edi, edx
call fcn.101053c0
mov edx, edi
add esp, 0xc
mov eax, dword [esi]
jmp 0x10020f56
mov eax, dword [edi]
mov ecx, dword [esi + 4]
add eax, ecx
add eax, 0x40
push eax
push str.Failed_to_reallocate_parser_buffer_to__d_n
push 0x10
push 0
call fcn.1006fc50
add esp, 0x10
mov eax, 0xfffffff4
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x1002109b
add edi, dword [esi + 4]
push edi
push str.Failed_to_reallocate_parser_buffer_to__d_n
push 0x10
push 0
call fcn.1006fc50
add esp, 0x10
mov dword [esi + 4], 0
mov dword [esi + 0x1c], 0
mov eax, 0xfffffff4
jmp 0x1002109b
mov ebx, dword [ebp + 0x10]
mov dword [esi + 4], 0
mov dword [ebx], eax
cmp edx, 0xfffffff7
jg 0x10020f76
mov eax, dword [esi + 0x18]
sub eax, edx
add eax, 0xfffffff8
mov dword [esi + 0x18], eax
mov edx, 0xfffffff8
jmp 0x10020f80
xor eax, eax
test edx, edx
jns 0x1002109b
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], eax
test dl, 1
jne 0x10020fae
mov dword [ebp - 0x10], ecx
mov eax, edx
cmp edx, 0xffffffff
jne 0x10020fff
jmp 0x10021099
shl edi, 8
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx edx, byte [eax + edx]
or edi, edx
mov dword [esi + 0x10], edi
shld ecx, ebx, 8
shl ebx, 8
mov edx, dword [ebp - 0x10]
movzx edx, byte [eax + edx]
or ebx, edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], ebx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x18], eax
lea eax, [edx + 1]
cmp edx, 0xffffffff
je 0x10021099
add dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, edx
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
nop word cs:[eax + eax]
nop
mov dword [ebp - 0x14], eax
shl edi, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ecx + eax - 1]
or eax, edi
mov dword [esi + 0x10], eax
shld edx, ebx, 8
mov dword [ebp - 0x10], edx
shl ebx, 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx - 1]
or edx, ebx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], edx
mov ecx, dword [ebp - 0x1c]
lea edi, [ecx - 1]
mov dword [esi + 0x18], edi
shl eax, 8
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
movzx edi, byte [ebx + edi]
or edi, eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], edi
shld dword [ebp - 0x10], edx, 8
shl edx, 8
movzx ebx, byte [ebx + eax]
or ebx, edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ecx
add ecx, 2
mov dword [ebp - 0x1c], ecx
add eax, 2
jne 0x10021020
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x112
push str..._.._third_party_ffmpeg_libavcodec_parser.c
push str.next___0__pc__buffer
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call fcn.1006fc50
add esp, 0x18
call fcn.10112c55
int3