Function at 0x1003f1ad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x40]
mov esi, ecx
mov dword [esp + 0x14], esi
cmp edi, 3
jl 0x1003f551
mov ecx, dword [esp + 0x44]
test ecx, 0xff000000
je 0x1003f551
test byte [esi + 0x24], 4
mov eax, dword [esi + 0x2c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
je 0x1003f4b7
movss xmm0, dword [esi + 0x8c]
lea eax, [edi + edi]
push eax
mov dword [esp + 0xc], eax
and ecx, 0xffffff
imul eax, edi, 9
mov dword [esp + 0x14], ecx
mov ecx, esi
movss dword [esp + 0x24], xmm0
sub eax, 6
push eax
call fcn.100401c8
mov eax, dword [esi + 0x28]
push 2
movzx edx, ax
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
pop ecx
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x38]
mov word [eax], dx
lea edx, [edx + ecx*2]
mov eax, dword [esi + 0x38]
lea ecx, [edx - 2]
mov word [eax + 2], cx
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x30]
mov word [eax + 4], dx
add dword [esi + 0x38], 6
inc ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
cmp ecx, edi
jl 0x1003f239
mov ecx, dword [esi + 0x2c]
push edi
add ecx, 0x2c
call fcn.100467fb
mov eax, dword [esi + 0x2c]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x34]
lea eax, [edi - 1]
mov ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
shl ecx, 3
movss xmm2, dword [eax + esi*8]
mov edi, esi
movss xmm3, dword [eax + esi*8 + 4]
subss xmm2, dword [ecx + eax]
subss xmm3, dword [ecx + eax + 4]
shl edi, 3
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x40]
movaps xmm0, xmm2
movaps xmm1, xmm3
mulss xmm0, xmm2
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x100c2498]
jbe 0x1003f2e9
rsqrtss xmm1, xmm1
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
xorps xmm2, xmmword [0x100cbb50]
inc esi
movss dword [ecx + edx], xmm3
movss dword [ecx + edx + 4], xmm2
mov ecx, dword [esp + 0x3c]
cmp esi, edi
jl 0x1003f29c
mov ecx, dword [esp + 0x1c]
movss xmm5, dword [0x100c24a0]
movss xmm6, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
movzx ecx, cx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
mov dword [esp + 0x24], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, edx
sub ecx, eax
mulss xmm6, xmm5
mov dword [esp + 0x18], ecx
lea eax, [edi - 1]
mov edi, dword [esp + 0x34]
movss xmm0, dword [edx + edi*8]
mov edi, dword [esp + 0x3c]
addss xmm0, dword [edx + eax*8]
movss xmm2, dword [edi + ecx]
addss xmm2, dword [edx + eax*8 + 4]
mov edi, dword [esp + 0x40]
movaps xmm3, xmm0
mulss xmm0, xmm0
mulss xmm3, xmm5
movaps xmm4, xmm2
mulss xmm2, xmm2
mulss xmm4, xmm5
addss xmm2, xmm0
mulss xmm2, dword [0x100cb9f8]
comiss xmm2, dword [0x100e1898]
jbe 0x1003f3ad
movss xmm1, dword [0x100c24a4]
divss xmm1, xmm2
minss xmm1, dword [0x100cba54]
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm3, xmm0
mov eax, dword [esi + 0x34]
movaps xmm1, xmm6
mov edx, dword [esp + 0x3c]
movaps xmm2, xmm6
mov ecx, dword [esp + 0x2c]
mulss xmm1, xmm3
add dword [esp + 0x3c], 8
movss xmm0, dword [edx - 4]
mulss xmm2, xmm4
subss xmm0, xmm1
movss dword [eax], xmm0
movss xmm0, dword [edx]
mov eax, dword [esi + 0x34]
subss xmm0, xmm2
movss dword [eax + 4], xmm0
mov eax, dword [esi + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
addss xmm1, dword [edx - 4]
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x2c]
movss dword [eax + 0x14], xmm1
addss xmm2, dword [edx]
mov eax, dword [esi + 0x34]
movss dword [eax + 0x18], xmm2
mov eax, dword [esi + 0x34]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add dword [esi + 0x34], 0x28
lea edx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax], dx
mov eax, dword [esp + 0x30]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 2], cx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 4], cx
mov eax, dword [esi + 0x38]
mov word [eax + 6], cx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 8], cx
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x34]
mov word [eax + 0xa], dx
mov eax, ecx
add dword [esi + 0x38], 0xc
inc ecx
mov edx, dword [esp + 0xc]
cmp ecx, edi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jl 0x1003f342
mov eax, dword [esp + 8]
movzx eax, ax
jmp 0x1003f54e
lea eax, [edi - 2]
mov ecx, esi
imul eax, eax, 3
push edi
push eax
call fcn.100401c8
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x34]
mov ecx, dword [edi]
lea edi, [edi + 8]
mov edx, dword [edi - 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
sub dword [esp + 0x24], 1
jne 0x1003f4ce
mov edi, dword [esp + 0x40]
push 2
pop edx
mov dword [esp + 0x44], edx
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x28]
movzx edx, dx
mov word [ecx], ax
mov cx, word [esi + 0x28]
mov eax, dword [esi + 0x38]
dec cx
add cx, dx
mov word [eax + 2], cx
mov eax, dword [esi + 0x38]
mov cx, word [esi + 0x28]
add cx, dx
mov edx, dword [esp + 0x44]
mov word [eax + 4], cx
add dword [esi + 0x38], 6
inc edx
mov dword [esp + 0x44], edx
cmp edx, edi
jl 0x1003f50f
movzx eax, di
add dword [esi + 0x28], eax
pop edi
pop esi
add esp, 0x30
ret 0xc