Function at 0x417ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x38], edi
cmp esi, 3
jl 0x417e49
test byte [edi + 0x24], 4
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov ecx, edi
mov dword [ebp - 0x20], eax
je 0x417dbb
mov eax, dword [ebx + 0x10]
movss xmm0, dword [edi + 0x8c]
and eax, 0xffffff
mov dword [ebp - 0x3c], eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x44], eax
imul eax, esi, 9
movss dword [ebp - 0x34], xmm0
sub eax, 6
push eax
call fcn.00416ae5
mov eax, dword [edi + 0x28]
push 2
pop edx
mov dword [ebp - 0x18], eax
lea ecx, [eax + 1]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x40], ecx
movzx ecx, ax
mov eax, dword [edi + 0x38]
lea edx, [ecx + edx*2]
mov word [eax], cx
lea ecx, [edx - 2]
mov eax, dword [edi + 0x38]
mov word [eax + 2], cx
mov eax, dword [edi + 0x38]
mov word [eax + 4], dx
mov edx, dword [ebp - 0xc]
add dword [edi + 0x38], 6
inc edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
cmp edx, esi
jl 0x417b42
mov ecx, dword [edi + 0x2c]
push esi
add ecx, 0x2c
call fcn.0041c1c1
mov eax, dword [edi + 0x2c]
lea ecx, [esi - 1]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov edi, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
shl ecx, 3
mov dword [ebp - 4], edx
mov edx, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
movss xmm2, dword [edx + edi*8]
mov esi, edi
subss xmm2, dword [ecx + edx]
shl esi, 3
mov dword [ebp - 0x30], esi
lea esi, [edx + 4]
movss xmm1, dword [esi + edi*8]
subss xmm1, dword [ecx + edx + 4]
movaps xmm0, xmm2
mov dword [ebp - 0xc], esi
mov esi, dword [ebx + 0xc]
mulss xmm0, xmm2
movaps xmm3, xmm1
movss dword [ebp - 0x28], xmm2
mulss xmm3, xmm1
movss dword [ebp - 0x2c], xmm1
addss xmm3, xmm0
comiss xmm3, dword [0x490400]
jbe 0x417c22
cvtps2pd xmm0, xmm3
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.00458980
fld1
fdivrp st(1)
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
movss xmm2, dword [ebp - 0x28]
fstp dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x24]
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x2c]
mulss xmm2, xmm0
xorps xmm2, xmmword [0x490ad0]
inc edi
movss dword [ecx + eax], xmm1
movss dword [ecx + eax + 4], xmm2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
cmp edi, esi
jl 0x417ba0
movss xmm6, dword [ebp - 0x34]
mov ecx, eax
movss xmm5, dword [0x4904ac]
sub ecx, edx
mov edi, dword [ebp - 0x38]
xor esi, esi
mov edx, dword [ebp - 8]
mulss xmm6, xmm5
mov dword [ebp - 0x34], ecx
movss xmm0, dword [eax + esi*8]
mov esi, dword [ebp - 0xc]
addss xmm0, dword [eax + edx*8]
movss xmm2, dword [ecx + esi]
addss xmm2, dword [eax + edx*8 + 4]
movaps xmm3, xmm0
mulss xmm0, xmm0
mulss xmm3, xmm5
movaps xmm4, xmm2
mulss xmm2, xmm2
mulss xmm4, xmm5
addss xmm2, xmm0
mulss xmm2, dword [0x490470]
comiss xmm2, dword [0x490404]
jbe 0x417cc5
movss xmm1, dword [0x490510]
divss xmm1, xmm2
minss xmm1, dword [0x4905fc]
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm3, xmm0
mov eax, dword [edi + 0x34]
movaps xmm1, xmm6
mov ecx, dword [ebp - 0xc]
movaps xmm2, xmm6
mov edx, dword [ebp - 0x10]
mulss xmm1, xmm3
mov esi, dword [ebx + 0x10]
movss xmm0, dword [ecx - 4]
mulss xmm2, xmm4
add dword [ebp - 0xc], 8
subss xmm0, xmm1
movss dword [eax], xmm0
movss xmm0, dword [ecx]
mov eax, dword [edi + 0x34]
subss xmm0, xmm2
movss dword [eax + 4], xmm0
mov eax, dword [edi + 0x34]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], esi
addss xmm1, dword [ecx - 4]
mov eax, dword [edi + 0x34]
mov esi, dword [ebp - 4]
movss dword [eax + 0x14], xmm1
addss xmm2, dword [ecx]
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0x10]
movss dword [eax + 0x18], xmm2
mov eax, dword [edi + 0x34]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x20], edx
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 8]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x18]
add dword [edi + 0x34], 0x28
movzx ecx, ax
mov eax, dword [edi + 0x38]
lea esi, [ecx + esi*2]
mov word [eax], si
lea ecx, [ecx + edx*2]
mov eax, dword [edi + 0x38]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
movzx edx, ax
mov eax, dword [edi + 0x38]
lea ecx, [edx + ecx*2]
mov word [eax + 4], cx
mov eax, dword [edi + 0x38]
mov word [eax + 6], cx
mov eax, dword [ebp - 4]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x38]
mov word [eax + 8], cx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x34]
mov word [eax + 0xa], si
mov esi, dword [ebp - 4]
mov edx, esi
add dword [edi + 0x38], 0xc
inc esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
cmp esi, dword [ebx + 0xc]
jl 0x417c63
mov eax, dword [ebp - 0x44]
movzx eax, ax
jmp 0x417e46
lea eax, [esi - 2]
imul eax, eax, 3
push esi
push eax
call fcn.00416ae5
mov dword [ebp - 0x1c], esi
mov esi, dword [ebx + 8]
mov eax, dword [edi + 0x34]
mov ecx, dword [esi]
lea esi, [esi + 8]
mov edx, dword [esi - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
add dword [edi + 0x34], 0x14
sub dword [ebp - 0x1c], 1
jne 0x417dce
mov esi, dword [ebx + 0xc]
push 2
pop edx
mov dword [ebp - 0x20], edx
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
movzx edx, dx
mov word [ecx], ax
mov cx, word [edi + 0x28]
mov eax, dword [edi + 0x38]
dec cx
add cx, dx
mov word [eax + 2], cx
mov eax, dword [edi + 0x38]
mov cx, word [edi + 0x28]
add cx, dx
mov edx, dword [ebp - 0x20]
mov word [eax + 4], cx
add dword [edi + 0x38], 6
inc edx
mov dword [ebp - 0x20], edx
cmp edx, esi
jl 0x417e09
movzx eax, si
add dword [edi + 0x28], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc