Function at 0x442990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
movss xmm4, dword [0x4a7a20]
xorps xmm2, xmm2
movss xmm6, dword [0x4a77b4]
movss xmm5, dword [0x4a7714]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], edi
cmp ecx, 2
jne 0x442bc2
mov eax, dword [edi + 0x20]
xorps xmm3, xmm3
mov edi, eax
mov dword [esp + 0x10], 8
movzx ecx, word [eax]
nop
lea eax, [edi + 2]
movsx esi, cx
mov ecx, dword [ebp + 0x10]
lea edi, [eax]
movzx eax, word [eax]
movaps xmm1, xmm2
movsx edx, ax
sub edx, esi
shl edx, cl
test edx, edx
jle 0x442a2b
mov eax, dword [esp + 8]
shl esi, cl
lea ecx, [eax + esi*4]
mov eax, dword [ebp + 0x18]
add eax, esi
mov esi, dword [esp + 8]
lea eax, [esi + eax*4]
movss xmm0, dword [eax]
add eax, 4
mulss xmm0, dword [ecx]
add ecx, 4
addss xmm1, xmm0
sub edx, 1
jne 0x442a11
movzx eax, word [edi]
sub dword [esp + 0x10], 1
addss xmm3, xmm1
movzx ecx, ax
jne 0x4429e0
mulss xmm3, dword [0x4a769c]
movaps xmm5, xmm6
mov eax, dword [ebp + 0x28]
movss xmm4, dword [0x4a7df0]
andps xmm3, xmm4
minss xmm5, xmm3
movaps xmm3, xmm5
cmp eax, 8
jle 0x442ad2
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + 0x20]
movzx ecx, word [edi + 0x10]
add edi, 0x10
add eax, 0xfffffff8
mov dword [esp + 0x10], eax
lea eax, [edi + 2]
movsx esi, cx
mov ecx, dword [ebp + 0x10]
lea edi, [eax]
movzx eax, word [eax]
movaps xmm1, xmm2
movsx edx, ax
sub edx, esi
shl edx, cl
test edx, edx
jle 0x442abe
mov eax, dword [esp + 8]
shl esi, cl
lea ecx, [eax + esi*4]
mov eax, dword [ebp + 0x18]
add eax, esi
mov esi, dword [esp + 8]
lea eax, [esi + eax*4]
movss xmm0, dword [eax]
add eax, 4
mulss xmm0, dword [ecx]
add ecx, 4
addss xmm1, xmm0
sub edx, 1
jne 0x442aa4
movzx eax, word [edi]
sub dword [esp + 0x10], 1
andps xmm1, xmm4
minss xmm1, xmm3
movzx ecx, ax
movaps xmm3, xmm1
jne 0x442a73
movaps xmm0, xmm6
mulss xmm5, xmm5
andps xmm3, xmm4
minss xmm0, xmm3
movss dword [esp + 0x10], xmm0
movss xmm0, dword [0x4a77bc]
subss xmm0, xmm5
cvtps2pd xmm0, xmm0
call fcn.00484cf0
mulsd xmm0, qword [0x4a7950]
xorps xmm2, xmm2
mov esi, dword [ebp + 0x20]
movss xmm1, dword [0x4a7bc0]
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm2, dword [0x4a7714]
mulss xmm0, dword [0x4a7754]
movss dword [esp + 8], xmm2
maxss xmm1, xmm0
movss xmm0, dword [0x4a7a20]
addss xmm0, xmm1
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [0x4a76c8]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [0x4a77bc]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.00484cf0
mulsd xmm0, qword [0x4a7950]
xorps xmm2, xmm2
mov edi, dword [esp + 0xc]
movss xmm1, dword [esp + 8]
movss xmm5, dword [0x4a7714]
movss xmm4, dword [esp + 0x18]
movss xmm6, dword [0x4a77b4]
mov ecx, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
maxss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm1, xmm5
xorps xmm1, xmmword [0x4a7e20]
minss xmm0, xmm1
movss dword [esi], xmm0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 8], edx
lea esi, [eax - 1]
nop
mov dword [esp + 0x18], 0
movaps xmm0, xmm2
cmp esi, 4
jl 0x442c73
mov ecx, 4
add esi, 0xfffffffc
sub ecx, eax
shr esi, 2
mov eax, dword [edi + 8]
imul eax, edx
mov edx, dword [ebp + 8]
lea edx, [edx + eax*4]
add edx, 8
inc esi
lea edi, [esi*4]
nop dword [eax + eax]
lea eax, [ecx - 2]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm1, eax
lea eax, [ecx + 2]
cvtsi2ss xmm0, ecx
mulss xmm1, dword [edx - 8]
mulss xmm0, dword [edx - 4]
addss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
lea eax, [ecx + 4]
add ecx, 8
mulss xmm0, dword [edx]
addss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mulss xmm0, dword [edx + 4]
add edx, 0x10
addss xmm2, xmm0
sub esi, 1
jne 0x442c10
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 8]
lea esi, [eax - 1]
cmp edi, esi
jl 0x442c7e
jmp 0x442cc1
movaps xmm2, xmm0
cmp dword [esp + 0x18], esi
jge 0x442cc4
xor edi, edi
lea ecx, [edi*2 + 2]
sub ecx, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
imul eax, edx
mov edx, dword [ebp + 8]
add eax, edi
lea eax, [edx + eax*4]
mov edx, esi
sub edx, edi
nop dword [eax]
movd xmm0, ecx
add ecx, 2
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
add eax, 4
addss xmm2, xmm0
sub edx, 1
jne 0x442ca0
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0xc]
inc edx
mov dword [esp + 8], edx
cmp edx, ecx
jl 0x442bd0
imul esi, ecx
movss xmm3, dword [0x4a7960]
movss xmm1, dword [0x4a7ba8]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm2, xmm6
divss xmm2, dword [0x4a7a30]
minss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x442d0e
movaps xmm0, xmm1
mov eax, dword [ebp + 0x1c]
subss xmm4, xmm0
movss xmm0, dword [ebp + 0x24]
addss xmm0, xmm0
cmp dword [eax], 0
subss xmm4, dword [ebp + 0x2c]
subss xmm4, xmm0
je 0x442d4d
movss xmm0, dword [eax + 8]
addss xmm0, dword [0x4a767c]
addss xmm0, xmm0
minss xmm3, xmm0
comiss xmm1, xmm3
ja 0x442d49
movaps xmm1, xmm3
subss xmm4, xmm1
addss xmm4, xmm5
xorps xmm0, xmm0
sub esp, 8
cvtss2sd xmm0, xmm4
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.00485bd0
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
add esp, 8
mov ecx, 0xa
pop edi
pop esi
cmp eax, ecx
cmovg eax, ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov esp, ebp
pop ebp
ret