Function at 0x1003f84e
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 0x1003fbef
mov ecx, dword [esp + 0x44]
test ecx, 0xff000000
je 0x1003fbef
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 0x1003fb55
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.1004086e
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 0x1003f8da
mov ecx, dword [esi + 0x2c]
push edi
add ecx, 0x2c
call fcn.10046e00
mov eax, dword [esi + 0x2c]
xor edx, edx
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x34]
lea eax, [edi - 1]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ecx
shl eax, 3
movss xmm2, dword [edx + esi*8]
mov edi, esi
subss xmm2, dword [eax + edx]
shl edi, 3
mov dword [esp + 0x24], edi
lea edi, [edx + 4]
movss xmm3, dword [edi + esi*8]
subss xmm3, dword [eax + edx + 4]
movaps xmm0, xmm2
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x40]
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x100c34a8]
jbe 0x1003f98e
rsqrtss xmm1, xmm1
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
xorps xmm2, xmmword [0x100ccbe0]
inc esi
movss dword [eax + ecx], xmm3
movss dword [eax + ecx + 4], xmm2
mov eax, dword [esp + 0x24]
cmp esi, edi
jl 0x1003f93b
mov eax, dword [esp + 0x1c]
movss xmm5, dword [0x100c34b0]
movss xmm6, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, edx
mulss xmm6, xmm5
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
movss xmm0, dword [ecx + edx*8]
mov edx, dword [esp + 0x18]
addss xmm0, dword [ecx + eax*8]
movss xmm2, dword [edx + edi]
addss xmm2, dword [ecx + 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 [0x100cca80]
comiss xmm2, dword [0x100e29d0]
jbe 0x1003fa4f
movss xmm1, dword [0x100c34b4]
divss xmm1, xmm2
minss xmm1, dword [0x100ccadc]
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 dword [esp + 0x34], ecx
cmp ecx, edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
jl 0x1003f9e0
mov eax, dword [esp + 8]
movzx eax, ax
jmp 0x1003fbec
lea eax, [edi - 2]
mov ecx, esi
imul eax, eax, 3
push edi
push eax
call fcn.1004086e
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 0x1003fb6c
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 0x1003fbad
movzx eax, di
add dword [esi + 0x28], eax
pop edi
pop esi
add esp, 0x30
ret 0xc