Function at 0x449020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
movss xmm4, dword [0x52d818]
xorps xmm2, xmm2
movss xmm6, dword [0x52d6c8]
movss xmm5, dword [0x52d648]
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 0x449252
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 0x4490bb
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 0x4490a1
movzx eax, word [edi]
sub dword [esp + 0x10], 1
addss xmm3, xmm1
movzx ecx, ax
jne 0x449070
mulss xmm3, dword [0x52d5c4]
movaps xmm5, xmm6
mov eax, dword [ebp + 0x28]
movss xmm4, dword [0x52db00]
andps xmm3, xmm4
minss xmm5, xmm3
movaps xmm3, xmm5
cmp eax, 8
jle 0x449162
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 0x44914e
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 0x449134
movzx eax, word [edi]
sub dword [esp + 0x10], 1
andps xmm1, xmm4
minss xmm1, xmm3
movzx ecx, ax
movaps xmm3, xmm1
jne 0x449103
movaps xmm0, xmm6
mulss xmm5, xmm5
andps xmm3, xmm4
minss xmm0, xmm3
movss dword [esp + 0x10], xmm0
movss xmm0, dword [0x52d6d4]
subss xmm0, xmm5
cvtps2pd xmm0, xmm0
call fcn.004d7450
mulsd xmm0, qword [0x52d7a8]
xorps xmm2, xmm2
mov esi, dword [ebp + 0x20]
movss xmm1, dword [0x52d964]
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm2, dword [0x52d648]
mulss xmm0, dword [0x52d680]
movss dword [esp + 8], xmm2
maxss xmm1, xmm0
movss xmm0, dword [0x52d818]
addss xmm0, xmm1
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [0x52d5f0]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [0x52d6d4]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.004d7450
mulsd xmm0, qword [0x52d7a8]
xorps xmm2, xmm2
mov edi, dword [esp + 0xc]
movss xmm1, dword [esp + 8]
movss xmm5, dword [0x52d648]
movss xmm4, dword [esp + 0x18]
movss xmm6, dword [0x52d6c8]
mov ecx, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
maxss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm1, xmm5
xorps xmm1, xmmword [0x52db30]
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 0x449303
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 0x4492a0
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 8]
lea esi, [eax - 1]
cmp edi, esi
jl 0x44930e
jmp 0x449351
movaps xmm2, xmm0
cmp dword [esp + 0x18], esi
jge 0x449354
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 0x449330
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 0x449260
imul esi, ecx
movss xmm3, dword [0x52d7b0]
movss xmm1, dword [0x52d950]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm2, xmm6
divss xmm2, dword [0x52d828]
minss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x44939e
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 0x4493dd
movss xmm0, dword [eax + 8]
addss xmm0, dword [0x52d5a4]
addss xmm0, xmm0
minss xmm3, xmm0
comiss xmm1, xmm3
ja 0x4493d9
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.004d8500
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