Function at 0x41dbfa
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, 0x38
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
cmp esi, 3
jl 0x41df55
mov ecx, dword [ebx + 0x10]
test ecx, 0xff000000
je 0x41df55
test byte [edi + 0x24], 4
mov eax, dword [edi + 0x2c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
je 0x41dec5
movss xmm0, dword [edi + 0xa0]
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x34], eax
and ecx, 0xffffff
imul eax, esi, 9
mov dword [ebp - 0x28], ecx
mov ecx, edi
movss dword [ebp - 0x20], xmm0
sub eax, 6
push eax
call fcn.0041cc95
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 - 0x2c], ecx
movzx ecx, ax
mov eax, dword [edi + 0x34]
lea edx, [ecx + edx*2]
mov word [eax], cx
lea ecx, [edx - 2]
mov eax, dword [edi + 0x34]
mov word [eax + 2], cx
mov eax, dword [edi + 0x34]
mov word [eax + 4], dx
mov edx, dword [ebp - 0xc]
add dword [edi + 0x34], 6
inc edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
cmp edx, esi
jl 0x41dc89
mov ecx, dword [edi + 0x2c]
push esi
add ecx, 0x34
call fcn.0042234b
mov eax, dword [edi + 0x2c]
lea ecx, [esi - 1]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], edx
mov edx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
shl ecx, 3
movss xmm2, dword [edx + edi*8]
mov esi, edi
subss xmm2, dword [ecx + edx]
shl esi, 3
mov dword [ebp - 0x1c], esi
lea esi, [edx + 4]
movss xmm3, dword [esi + edi*8]
subss xmm3, dword [ecx + edx + 4]
movaps xmm0, xmm2
mov dword [ebp - 4], esi
mov esi, dword [ebx + 0xc]
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x4382f8]
jbe 0x41dd34
rsqrtss xmm1, xmm1
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
xorps xmm2, xmmword [0x438980]
inc edi
movss dword [ecx + eax], xmm3
movss dword [ecx + eax + 4], xmm2
mov ecx, dword [ebp - 0x1c]
cmp edi, esi
jl 0x41dce4
movss xmm5, dword [ebp - 0x20]
mov ecx, eax
movss xmm4, dword [0x43835c]
sub ecx, edx
mov edi, dword [ebp - 0x24]
xor esi, esi
mov edx, dword [ebp - 0xc]
mulss xmm5, xmm4
mov dword [ebp - 0x20], ecx
movss xmm2, dword [eax + esi*8]
mov esi, dword [ebp - 4]
addss xmm2, dword [eax + edx*8]
movss xmm3, dword [ecx + esi]
addss xmm3, dword [eax + edx*8 + 4]
mov esi, dword [ebp - 8]
mulss xmm2, xmm4
mulss xmm3, xmm4
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x438308]
jbe 0x41ddcf
movss xmm0, dword [0x438398]
divss xmm0, xmm1
movss xmm1, dword [0x438410]
minss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
mov eax, dword [edi + 0x30]
movaps xmm1, xmm5
mov ecx, dword [ebp - 4]
mulss xmm1, xmm2
movaps xmm2, xmm5
mulss xmm2, xmm3
movss xmm0, dword [ecx - 4]
subss xmm0, xmm1
movss dword [eax], xmm0
movss xmm0, dword [ecx]
mov eax, dword [edi + 0x30]
subss xmm0, xmm2
mov ecx, dword [ebp - 0x10]
movss dword [eax + 4], xmm0
mov eax, dword [edi + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
addss xmm1, dword [ecx - 4]
movss dword [eax + 0x14], xmm1
addss xmm2, dword [ecx]
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x10]
movss dword [eax + 0x18], xmm2
mov eax, dword [edi + 0x30]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x18]
add dword [edi + 0x30], 0x28
movzx ecx, ax
mov eax, dword [edi + 0x34]
lea esi, [ecx + esi*2]
mov word [eax], si
lea ecx, [ecx + edx*2]
mov eax, dword [edi + 0x34]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [edi + 0x34]
lea ecx, [edx + ecx*2]
mov word [eax + 4], cx
mov eax, dword [edi + 0x34]
mov word [eax + 6], cx
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x34]
mov word [eax + 8], cx
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0x20]
mov word [eax + 0xa], si
mov esi, dword [ebp - 8]
mov edx, esi
add dword [edi + 0x34], 0xc
inc esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp esi, dword [ebx + 0xc]
jl 0x41dd6e
mov eax, dword [ebp - 0x34]
movzx eax, ax
jmp 0x41df52
lea eax, [esi - 2]
mov ecx, edi
imul eax, eax, 3
push esi
push eax
call fcn.0041cc95
mov dword [ebp - 0x18], esi
mov esi, dword [ebx + 8]
mov eax, dword [edi + 0x30]
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 + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
add dword [edi + 0x30], 0x14
sub dword [ebp - 0x18], 1
jne 0x41deda
mov esi, dword [ebx + 0xc]
push 2
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0x34]
mov ax, word [edi + 0x28]
movzx edx, dx
mov word [ecx], ax
mov cx, word [edi + 0x28]
mov eax, dword [edi + 0x34]
dec cx
add cx, dx
mov word [eax + 2], cx
mov eax, dword [edi + 0x34]
mov cx, word [edi + 0x28]
add cx, dx
mov edx, dword [ebp - 0x18]
mov word [eax + 4], cx
add dword [edi + 0x34], 6
inc edx
mov dword [ebp - 0x18], edx
cmp edx, esi
jl 0x41df15
movzx eax, si
add dword [edi + 0x28], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc