Function at 0x100ad3e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1011dc04]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10123b18]
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x60], 0xffffffff
mov byte [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
push esi
push edi
movups xmmword [ebp - 0x80], xmm0
test ecx, ecx
je 0x100ad7bb
cmp byte [0x1011170c], 0
je 0x100ad7bb
cmp byte [0x10123b1e], 0
jne 0x100ad4a1
mov eax, dword [0x10127068]
cmp eax, dword [0x1012706c]
je 0x100ad7bb
mov dword [0x1012706c], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b5aae
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1012706c]
sub edx, dword [0x10127068]
sar edx, 5
mov dword [ebp - 0xa4], edx
test edx, edx
je 0x100ad7bb
mov eax, dword [0x101263a0]
mov esi, edx
add eax, 0xffffffc0
xor eax, 0xdb67b5d0
shl esi, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x10126198]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 0xa0], xmm2
nop dword [eax]
sub esi, 0x20
mov dword [ebp - 0x98], ecx
dec ecx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x9c], ecx
add esi, dword [0x10127068]
je 0x100ad7a7
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10126198]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
andps xmm0, xmmword [0x100c4230]
comiss xmm0, dword [0x10111958]
jbe 0x100ad5b2
mov eax, dword [0x1012706c]
lea edi, [esi + 0x20]
mov dword [ebp - 0x98], eax
cmp edi, eax
je 0x100ad5a6
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, dword [ebp - 0x98]
jne 0x100ad555
mov ecx, dword [ebp - 0x9c]
sub dword [0x1012706c], 0x20
jmp 0x100ad7a7
cmp byte [esi + 0x1c], 0
jne 0x100ad7a7
lea eax, [edx - 1]
cmp ecx, eax
je 0x100ad5d8
cmp dword [ebp - 0x98], edx
jae 0x100ad7a7
cmp edi, dword [esi + 0x38]
je 0x100ad7a7
movss xmm3, dword [esi]
xorps xmm2, xmm2
movss xmm4, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm3, xmm6
movss xmm0, dword [esi + 0x14]
subss xmm4, xmm7
movss xmm5, dword [esi + 8]
subss xmm5, xmm0
movss dword [ebp - 0x98], xmm0
mov ecx, dword [0x10126174]
movaps xmm0, xmm3
movss dword [ebp - 0x80], xmm6
mulss xmm0, xmm3
movaps xmm1, xmm4
push str.sprites_purplelaser1.vmt
mulss xmm1, xmm4
movss dword [ebp - 0x7c], xmm7
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
sqrtss xmm2, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm2, dword [0x100c36ec]
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
divss xmm3, xmm2
addss xmm1, xmm0
xorps xmm0, xmm0
divss xmm4, xmm2
sqrtss xmm0, xmm1
divss xmm5, xmm2
movss xmm1, dword [ebp - 0x98]
mulss xmm3, xmm0
mulss xmm4, xmm0
mulss xmm5, xmm0
addss xmm3, xmm6
addss xmm4, xmm7
movss dword [ebp - 0x78], xmm1
addss xmm5, xmm1
movss dword [ebp - 0x74], xmm3
movss dword [ebp - 0x70], xmm4
movss dword [ebp - 0x6c], xmm5
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movss xmm0, dword [0x10111958]
movss dword [ebp - 0x54], xmm0
movaps xmm0, xmmword [0x100fbc20]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], str.sprites_purplelaser1.vmt
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x437f0000
mov dword [ebp - 0x3c], 0x3f000000
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 2
mov byte [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
cmp byte [esi + 0x1d], 0
jne 0x100ad739
mov eax, dword [0x1011182c]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x30], xmm0
movd xmm0, eax
movzx eax, byte [0x1011182e]
jmp 0x100ad75e
mov eax, dword [0x101118c8]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x30], xmm0
movd xmm0, eax
movzx eax, byte [0x101118ca]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
lea eax, [ebp - 0x94]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp - 0x28], xmm0
call fcn.1004fc70
mov edx, eax
add esp, 4
test edx, edx
je 0x100ad799
mov ecx, dword [0x101261c8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esi + 0x1c], 1
mov ecx, dword [ebp - 0x9c]
movss xmm2, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
test ecx, ecx
jne 0x100ad4f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100b5aae
mov esp, ebp
pop ebp
ret