Function at 0x10013062
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
cmp esi, 3
jl 0x10013391
test byte [edi + 0x24], 4
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, edi
mov dword [ebp - 0x18], eax
je 0x10013303
mov eax, dword [ebp + 0x10]
movss xmm0, dword [edi + 0x8c]
and eax, 0xffffff
mov dword [ebp - 0x28], eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x30], eax
imul eax, esi, 9
movss dword [ebp - 0x20], xmm0
sub eax, 6
push eax
call fcn.100178bb
mov eax, dword [edi + 0x28]
push 2
pop edx
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x2c], 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 - 0x10]
mov dword [ebp - 0xc], edx
cmp edx, esi
jl 0x100130d2
mov eax, esi
shl eax, 3
call fcn.10037950
movss xmm5, dword [0x10062c24]
lea ecx, [esi - 1]
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edx, eax
mov eax, ecx
mov edi, esp
mov ecx, dword [ebp + 8]
shl eax, 3
movss xmm2, dword [ecx + edx*8]
mov esi, edx
subss xmm2, dword [eax + ecx]
shl esi, 3
mov dword [ebp - 0x1c], esi
lea esi, [ecx + 4]
movss xmm3, dword [esi + edx*8]
subss xmm3, dword [eax + ecx + 4]
movaps xmm0, xmm2
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0xc]
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x10062bd0]
jbe 0x10013184
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movaps xmm1, xmm5
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
xorps xmm2, xmmword [0x10062d00]
inc edx
movss dword [eax + edi], xmm3
movss dword [eax + edi + 4], xmm2
mov eax, dword [ebp - 0x1c]
cmp edx, esi
jl 0x1001312a
movss xmm6, dword [0x10062bf0]
mov eax, edi
movss xmm7, dword [ebp - 0x20]
mov edx, eax
mov edi, dword [ebp - 0x24]
sub edx, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c], edx
movss xmm3, dword [eax + esi*8]
movaps xmm2, xmm5
movss xmm4, dword [edx + ecx]
mov esi, dword [ebp - 4]
mov edx, esi
addss xmm3, dword [eax + esi*8]
addss xmm4, dword [eax + edx*8 + 4]
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
movaps xmm0, xmm3
mulss xmm0, xmm3
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm6
mulss xmm1, xmm6
maxss xmm1, dword [0x10062bfc]
divss xmm2, xmm1
mulss xmm3, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm6
mulss xmm4, xmm0
movss xmm0, dword [ecx - 4]
subss xmm0, xmm3
movss dword [eax], xmm0
movss xmm0, dword [ecx]
mov eax, dword [edi + 0x34]
subss xmm0, xmm4
mov ecx, dword [ebp - 0x14]
movss dword [eax + 4], xmm0
mov eax, dword [edi + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
addss xmm3, dword [eax - 4]
mov eax, dword [edi + 0x34]
movss dword [eax + 0x14], xmm3
mov eax, dword [ebp + 8]
addss xmm4, dword [eax]
mov eax, dword [edi + 0x34]
movss dword [eax + 0x18], xmm4
mov eax, dword [edi + 0x34]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x20], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x10]
add dword [edi + 0x34], 0x28
movzx ecx, ax
mov eax, dword [edi + 0x38]
lea esi, [ecx + esi*2]
mov word [eax], si
mov eax, dword [ebp - 4]
lea ecx, [ecx + eax*2]
mov eax, dword [edi + 0x38]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x2c]
movzx edx, ax
mov eax, dword [ebp - 4]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x38]
mov word [eax + 4], cx
mov eax, dword [edi + 0x38]
mov word [eax + 6], cx
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x38]
mov word [eax + 8], cx
mov eax, dword [edi + 0x38]
mov word [eax + 0xa], si
mov esi, dword [ebp - 8]
add dword [edi + 0x38], 0xc
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
inc esi
mov edx, dword [ebp - 0x1c]
add ecx, 8
mov eax, esp
mov dword [ebp - 8], esi
mov dword [ebp + 8], ecx
cmp esi, dword [ebp + 0xc]
jl 0x100131bc
mov eax, dword [ebp - 0x30]
movzx eax, ax
jmp 0x1001338e
lea eax, [esi - 2]
imul eax, eax, 3
push esi
push eax
call fcn.100178bb
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 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 - 0x14]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
add dword [edi + 0x34], 0x14
sub dword [ebp - 0x10], 1
jne 0x10013316
mov esi, dword [ebp + 0xc]
push 2
pop edx
mov dword [ebp + 0x10], 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 + 0x10]
mov word [eax + 4], cx
add dword [edi + 0x38], 6
inc edx
mov dword [ebp + 0x10], edx
cmp edx, esi
jl 0x10013351
movzx eax, si
add dword [edi + 0x28], eax
lea esp, [ebp - 0x38]
pop edi
pop esi
leave
ret 0xc