Function at 0x4d2798
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x100]
mov ecx, dword [eax]
and ecx, 0xfffff
cmp ecx, 4
push esi
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
jne 0x4d2a00
cmp dword [eax + 4], ecx
jne 0x4d2a00
mov esi, dword [eax + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x100]
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], edi
je 0x4d2924
inc dword [ebp - 4]
add dword [ebp - 8], 4
cmp dword [ebp - 4], 3
jb 0x4d27ed
mov edx, dword [edx + 0x48]
or dword [ebp - 0x1c], 0xffffffff
cmp edx, 0xffffffff
mov dword [ebp - 0x28], edx
je 0x4d2856
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edx*4]
mov edx, dword [eax]
and edx, 0xfff00000
cmp edx, 0x10000000
jne 0x4d2856
and dword [ebp - 4], 0
cmp dword [eax + 0xc], 0
jbe 0x4d2856
mov edx, dword [ebp - 4]
mov edi, dword [eax + 0x10]
shl edx, 2
cmp ecx, dword [edi + edx]
jne 0x4d284b
mov edi, dword [eax + 8]
mov edx, dword [edx + edi]
mov dword [ebp - 0x1c], edx
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [eax + 0xc]
jb 0x4d2834
xor ecx, ecx
mov eax, esi
mov edx, dword [eax]
cmp edx, dword [ebp - 0x1c]
je 0x4d2924
inc ecx
add eax, 4
cmp ecx, 3
jb 0x4d285a
and dword [ebp - 0x1c], 0
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0x48]
cmp edx, 0xffffffff
je 0x4d29a3
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x28]
mov edi, dword [eax + ecx*4]
mov esi, dword [eax + edx*4]
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, edx
xor ecx, eax
test ecx, 0xfff00000
jne 0x4d29a3
mov ecx, 0xfffff
and edx, ecx
and eax, ecx
test edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
je 0x4d29a3
test eax, eax
je 0x4d29a3
mov eax, dword [edi + 4]
xor edx, edx
div dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
div dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x4d29a3
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0xc]
jne 0x4d29a3
mov edx, dword [esi + 0xc]
cmp dword [ebp - 0x10], edx
jne 0x4d29a3
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 4], 0
test edx, edx
jbe 0x4d2938
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x4d2932
inc dword [ebp - 4]
add ecx, 4
cmp dword [ebp - 4], edx
jb 0x4d290e
jmp 0x4d2938
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x11000003
jmp 0x4d29fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
test edx, edx
jbe 0x4d29a3
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x2c]
je 0x4d2953
inc eax
add ecx, 4
cmp eax, dword [esi + 0xc]
jb 0x4d2941
jmp 0x4d29a3
cmp eax, 0xffffffff
je 0x4d29a3
cmp dword [ebp - 0x14], 0xffffffff
je 0x4d29a3
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
jbe 0x4d29db
mov edx, dword [edi + 8]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [edx + eax*4]
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x14]
shl ebx, 2
lea eax, [eax + esi*4]
mov esi, dword [ebp - 0x18]
shl ecx, 2
mov edi, dword [edx]
cmp edi, dword [eax]
je 0x4d2993
and dword [ebp - 4], 0
add eax, ecx
add edx, ebx
dec esi
jne 0x4d2989
cmp dword [ebp - 4], 0
mov ebx, dword [ebp - 0x24]
jne 0x4d29db
inc dword [ebp - 0x1c]
add dword [ebp - 8], 4
cmp dword [ebp - 0x1c], 3
jb 0x4d2875
mov eax, dword [ebx + 0xc8]
and eax, 0xff
push eax
mov eax, dword [ebp - 0x20]
push str.Clip_must_be_from_a_3_vector_in_ps_1__i
push 0x11c0
push dword [eax + 0x3c]
push ebx
call fcn.004bc320
add esp, 0x14
jmp 0x4d2a16
mov eax, dword [ebx + 0x100]
mov dword [eax], 0x11000003
mov ecx, dword [ebx + 0x100]
push 3
pop eax
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x100]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x4d2a1b
push str.internal_error:_malformed_clip_found
push 0x12d4
push dword [eax + 0x3c]
push ebx
call fcn.004bc320
add esp, 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret