Function at 0x1005afd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x100f5008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xorps xmm0, xmm0
mov ecx, dword [0x100f5310]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x6c], 0xffffffff
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], eax
movups xmmword [ebp - 0x8c], xmm0
test ecx, ecx
je 0x1005b479
cmp byte [0x1010baec], 0
je 0x1005b479
cmp byte [0x100f5314], 0
jne 0x1005b0bc
mov eax, dword [0x100fbf0c]
cmp eax, dword [0x100fbf10]
je 0x1005b479
mov dword [0x100fbf10], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d283c
mov esp, ebp
pop ebp
ret
mov edx, dword [0x100fbf10]
sub edx, dword [0x100fbf0c]
sar edx, 5
mov dword [ebp - 0xbc], edx
test edx, edx
je 0x1005b479
mov eax, dword [0x101f704c]
mov ebx, edx
add eax, 0xffffffc6
xor eax, 0xfef7a57
shl ebx, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x101f6e8c]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 0xb4], xmm2
nop word [eax + eax]
mov esi, dword [0x100fbf0c]
sub ebx, 0x20
mov dword [ebp - 0xa4], ecx
dec ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xac], ebx
add esi, ebx
je 0x1005b46b
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x101f6e8c]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002c260
comiss xmm0, dword [0x1010bcc8]
jbe 0x1005b1cf
mov ebx, dword [0x100fbf10]
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x1005b1bd
lea ecx, [esi + 0x14]
lea edx, [esi + 0x34]
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, ebx
jne 0x1005b170
mov ecx, dword [ebp - 0xa8]
sub dword [0x100fbf10], 0x20
mov ebx, dword [ebp - 0xac]
jmp 0x1005b46b
cmp byte [esi + 0x1c], 0
jne 0x1005b46b
lea eax, [edx - 1]
cmp ecx, eax
je 0x1005b1f5
cmp dword [ebp - 0xa4], edx
jae 0x1005b46b
cmp edi, dword [esi + 0x38]
je 0x1005b46b
movss xmm0, dword [esi + 0xc]
movss xmm5, dword [esi]
movss xmm4, dword [esi + 4]
subss xmm5, xmm0
movss xmm7, dword [esi + 0x10]
movss xmm3, dword [esi + 8]
subss xmm4, xmm7
movss xmm6, dword [esi + 0x14]
movss dword [ebp - 0xa4], xmm0
subss xmm3, xmm6
movaps xmm1, xmm5
mulss xmm1, xmm5
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.1002c290
movaps xmm2, xmm0
movaps xmm1, xmm5
addss xmm2, dword [0x100e89d8]
movaps xmm0, xmm4
mulss xmm1, xmm5
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.1002c290
divss xmm5, xmm2
mov ecx, dword [0x101f6e68]
push str.sprites_purplelaser1.vmt
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x70], str.sprites_purplelaser1.vmt
divss xmm4, xmm2
divss xmm3, xmm2
movss xmm1, dword [ebp - 0xa4]
mulss xmm5, xmm0
mulss xmm4, xmm0
mulss xmm3, xmm0
addss xmm5, xmm1
addss xmm4, xmm7
movss dword [ebp - 0x8c], xmm1
movss dword [ebp - 0x88], xmm7
addss xmm3, xmm6
movss dword [ebp - 0x84], xmm6
movss dword [ebp - 0x10], xmm5
movss dword [ebp - 0x80], xmm5
movss dword [ebp - 0xc], xmm4
movss dword [ebp - 0x7c], xmm4
movss dword [ebp - 8], xmm3
mov eax, dword [ecx]
movss dword [ebp - 0x78], xmm3
mov eax, dword [eax + 8]
call eax
movss xmm0, dword [0x1010bcc8]
movss dword [ebp - 0x60], xmm0
movaps xmm0, xmmword [0x100e8d30]
mov dword [ebp - 0x74], eax
movzx eax, byte [ebp - 0xad]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x48], 0x3e4ccccd
movd xmm0, eax
mov eax, dword [ebp - 0xb8]
cvtdq2ps xmm0, xmm0
movzx edi, al
movzx eax, ah
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
movss dword [ebp - 0x4c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x3c], xmm0
movd xmm0, eax
movzx eax, byte [ebp - 0xae]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0xa4], eax
movss dword [ebp - 0x38], xmm0
movd xmm0, eax
lea ecx, [ebp - 0xa0]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x2c], 2
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x28], 0x8300
movss dword [ebp - 0x34], xmm0
call fcn.100cfc40
mov edx, eax
test edx, edx
je 0x1005b45d
mov ecx, dword [0x101f6ebc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esi + 0x1c], 1
lea edx, [ebp - 0xc8]
mov ecx, dword [0x101f6e6c]
movss xmm0, dword [0x1010bcc8]
push ecx
movss dword [esp], xmm0
push 0x7f
push dword [ebp - 0xa4]
mov dword [ebp - 0xc8], 0
push dword [ebp - 0xac]
mov dword [ebp - 0xc4], 0
push edi
push edx
lea edx, [ebp - 0xd4]
mov dword [ebp - 0xc0], 0
push edx
mov dword [ebp - 0xd4], 0x40000000
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xd0], 0x40000000
mov dword [ebp - 0xcc], 0x40000000
mov dword [ebp - 0xe0], 0xc0000000
mov dword [ebp - 0xdc], 0xc0000000
mov dword [ebp - 0xd8], 0xc0000000
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0xa8]
movss xmm2, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xbc]
test ecx, ecx
jne 0x1005b110
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d283c
mov esp, ebp
pop ebp
ret