Function at 0x1009ed70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov ecx, dword [0x100be2a8]
or eax, 0xffffffff
xorps xmm0, xmm0
mov dword [esp + 0x40], eax
or eax, eax
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 0x64], 0
push esi
push edi
movups xmmword [esp + 0x84], xmm0
test ecx, ecx
je 0x1009f479
cmp byte [0x100c6308], 0
je 0x1009f479
cmp byte [0x100be2ac], 0
jne 0x1009edf0
mov eax, dword [0x100ff25c]
cmp eax, dword [0x100ff260]
je 0x1009f479
mov dword [0x100ff260], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x100ff260]
sub edi, dword [0x100ff25c]
sar edi, 5
mov dword [esp + 0x1c], edi
test edi, edi
je 0x1009f479
movups xmm0, xmmword [0x100b4330]
mov eax, dword [0x100fe7dc]
mov edx, edi
movss xmm1, dword [esp + 0xc8]
add eax, 0xffffffc2
movaps xmmword [esp + 0x100], xmm0
xor eax, 0x9f3a95a7
movups xmm0, xmmword [0x100b42c0]
movss xmm5, dword [0x100b3f8c]
movd xmm2, dword [eax + ecx]
mov ecx, edi
mov eax, dword [0x100fe5dc]
movaps xmmword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0xdc]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0xd8]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0xd0]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xac]
cvtdq2ps xmm2, xmm2
shl ecx, 5
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x8c]
mulss xmm2, dword [eax + 0x20]
mov eax, dword [esp + 0xcc]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x88]
movss dword [esp + 0x24], xmm1
movss xmm1, dword [esp + 0x90]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x84]
movss dword [esp + 0x60], xmm2
mov dword [esp + 0x4c], eax
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x30], xmm0
nop dword [eax]
mov esi, dword [0x100ff25c]
sub ecx, 0x20
mov dword [esp + 0x64], edx
dec edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
add esi, ecx
je 0x1009f471
mov ecx, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x100fe5dc]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10035640
comiss xmm0, dword [0x100c6590]
jbe 0x1009efd9
mov eax, dword [0x100ff260]
lea edi, [esi + 0x20]
mov dword [esp + 0x64], eax
cmp edi, eax
je 0x1009efcd
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
nop dword [eax]
mov eax, dword [edi]
lea esi, [esi + 0x20]
mov dword [esi - 0x20], eax
lea ecx, [ecx + 0x20]
mov eax, dword [edx - 0x10]
lea edx, [edx + 0x20]
mov dword [ecx - 0x30], eax
add edi, 0x20
mov eax, dword [edx - 0x2c]
mov dword [ecx - 0x2c], eax
mov eax, dword [edx - 0x28]
mov dword [ecx - 0x28], eax
mov eax, dword [edx - 0x24]
mov dword [ecx - 0x24], eax
mov eax, dword [edx - 0x20]
mov dword [ecx - 0x20], eax
mov eax, dword [edx - 0x1c]
mov dword [ecx - 0x1c], eax
movzx eax, byte [edx - 0x18]
mov byte [ecx - 0x18], al
movzx eax, byte [edx - 0x17]
mov byte [ecx - 0x17], al
cmp edi, dword [esp + 0x64]
jne 0x1009ef80
mov edx, dword [esp + 0x18]
sub dword [0x100ff260], 0x20
jmp 0x1009f469
cmp byte [esi + 0x1c], 0
jne 0x1009f46d
lea eax, [edi - 1]
cmp edx, eax
je 0x1009effd
cmp dword [esp + 0x64], edi
jae 0x1009f46d
cmp ecx, dword [esi + 0x38]
je 0x1009f46d
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm2, xmm6
movss xmm4, dword [esi + 8]
subss xmm3, xmm7
subss xmm4, dword [esi + 0x14]
movaps xmm1, xmm2
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.1001ff90
addss xmm0, xmm5
movaps xmm1, xmm2
movss xmm5, dword [0x100b407c]
mulss xmm1, xmm2
divss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.1001ff90
mov ecx, dword [0x100c645c]
movaps xmm1, xmm5
mulss xmm1, xmm2
movaps xmm2, xmm5
mulss xmm2, xmm3
mulss xmm5, xmm4
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm5, xmm0
addss xmm1, xmm6
movss xmm0, dword [esi + 0x14]
addss xmm2, xmm7
addss xmm5, xmm0
test ecx, ecx
jne 0x1009f134
mov ecx, dword [0x100fe5b8]
push str.sprites_purplelaser1.vmt
movss dword [esp + 0x34], xmm6
movss dword [esp + 0x38], xmm7
mov eax, dword [ecx]
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x44], xmm2
mov eax, dword [eax + 8]
movss dword [esp + 0x48], xmm5
call eax
movss xmm1, dword [0x100c6590]
movzx ecx, byte [0x100c64ef]
movss dword [esp + 0x28], xmm1
movaps xmm1, xmmword [esp + 0x100]
movups xmmword [esp + 0xb4], xmm1
mov dword [esp + 0x14], eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x6c], 0x8300
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [0x100b3ffc]
jmp 0x1009f1b9
mov byte [esp + 0xe0], 1
cmp ecx, 1
jne 0x1009f225
mov ecx, dword [0x100fe5b8]
push str.sprites_physbeam.vmt
movss dword [esp + 0x34], xmm6
movss dword [esp + 0x38], xmm7
mov eax, dword [ecx]
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x44], xmm2
mov eax, dword [eax + 8]
movss dword [esp + 0x48], xmm5
call eax
movss xmm1, dword [0x100c6590]
movss dword [esp + 0x28], xmm1
movaps xmm1, xmmword [esp + 0x110]
mov dword [esp + 0x14], eax
movzx eax, byte [0x100c64ef]
movups xmmword [esp + 0xb4], xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [0x100c664c]
mov eax, dword [0x100c64ec]
movss xmm0, dword [esp + 0x68]
movzx ecx, al
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x50], xmm0
shr eax, 8
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx eax, al
mov byte [esp + 0xe0], 1
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x54], xmm0
movd xmm0, eax
movzx eax, byte [0x100c64ee]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x58], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x5c], xmm0
push dword [esp + 0xe0]
mov ecx, dword [0x100fe60c]
call dword [0x100fe6f0]
mov edi, eax
test edi, edi
je 0x1009f457
mov ecx, dword [0x100fe5dc]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x10]
mov dword [edi + 0xc8], ecx
test edx, edx
js 0x1009f457
mov ecx, dword [0x100fe5b8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x1009f3f5
movss xmm0, dword [esp + 0x20]
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x30], ecx
mov eax, dword [esp + 0x14]
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], 0xffffffff
movss dword [edi + 0x158], xmm0
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xf4], ecx
mov ecx, dword [0x100fe5b8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movss xmm1, dword [esp + 0x24]
movss xmm2, dword [esp + 0x28]
movaps xmm0, xmm1
mov dword [edi + 0x15c], eax
mov eax, dword [0x100fe5dc]
movss xmm5, dword [esp + 0x30]
movss xmm4, dword [esp + 0x34]
movss xmm3, dword [esp + 0x38]
mulss xmm0, dword [eax + 0x10]
movss dword [edi + 0xc4], xmm0
movaps xmm0, xmm2
mov eax, dword [0x100fe5dc]
addss xmm0, dword [eax + 0x10]
mov eax, dword [esp + 0x48]
mov dword [edi + 0x34], 0
movss dword [edi + 0xf0], xmm1
movss xmm1, dword [esp + 0x40]
movss dword [edi + 0xc8], xmm0
movss dword [edi + 0xdc], xmm2
movss xmm2, dword [esp + 0x44]
movss dword [edi + 0x4c], xmm1
subss xmm1, xmm4
movss dword [edi + 0x50], xmm2
subss xmm2, xmm3
movss dword [edi + 0x3c], xmm5
movss dword [edi + 0x40], xmm4
movss dword [edi + 0x44], xmm3
movss dword [edi + 0xb8], xmm1
movss dword [edi + 0xbc], xmm2
movups xmm0, xmmword [esp + 0xb4]
movups xmmword [edi + 0xcc], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [edi + 0xec], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [edi + 0x48], xmm0
subss xmm0, xmm5
movss dword [edi + 0xb4], xmm0
cmp eax, 0xffffffff
jne 0x1009f3ef
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.1001ff90
movss xmm1, dword [edi + 0xd8]
comiss xmm1, dword [0x100b4044]
jb 0x1009f3d7
mulss xmm0, dword [0x100b4010]
addss xmm0, dword [0x100b4108]
cvttss2si eax, xmm0
jmp 0x1009f3ef
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x100b4090]
addsd xmm0, qword [0x100b40d8]
cvttsd2si eax, xmm0
mov dword [edi + 0xfc], eax
movd xmm0, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
or dword [edi + 0x34], eax
cvtdq2ps xmm0, xmm0
push edi
movss dword [edi + 0xf8], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [edi + 0xf4], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [edi + 0xe0], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [edi + 0xe4], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [edi + 0xe8], xmm0
mov ecx, dword [0x100fe60c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esi + 0x1c], 1
mov edx, dword [esp + 0x18]
movss xmm5, dword [0x100b3f8c]
movss xmm2, dword [esp + 0x60]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
test edx, edx
jne 0x1009ef20
pop edi
pop esi
mov esp, ebp
pop ebp
ret