Function at 0x100b2450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10123cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10129c18]
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 0x100b283e
cmp byte [0x10117794], 0
je 0x100b283e
cmp byte [0x10129c1e], 0
jne 0x100b2511
mov eax, dword [0x1012d168]
cmp eax, dword [0x1012d16c]
je 0x100b283e
mov dword [0x1012d16c], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba85e
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1012d16c]
sub edx, dword [0x1012d168]
sar edx, 5
mov dword [ebp - 0xa4], edx
test edx, edx
je 0x100b283e
mov eax, dword [0x1012c4a0]
mov esi, edx
add eax, 0xffffffc0
xor eax, 0x56cb7b7f
shl esi, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x1012c298]
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 [0x1012d168]
je 0x100b282a
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x1012c298]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
andps xmm0, xmmword [0x100c91d0]
comiss xmm0, dword [0x101179e0]
jbe 0x100b2622
mov eax, dword [0x1012d16c]
lea edi, [esi + 0x20]
mov dword [ebp - 0x98], eax
cmp edi, eax
je 0x100b2616
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
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 0x100b25c5
mov ecx, dword [ebp - 0x9c]
sub dword [0x1012d16c], 0x20
jmp 0x100b282a
cmp byte [esi + 0x1c], 0
jne 0x100b282a
lea eax, [edx - 1]
cmp ecx, eax
je 0x100b2648
cmp dword [ebp - 0x98], edx
jae 0x100b282a
cmp edi, dword [esi + 0x38]
je 0x100b282a
movss xmm3, dword [esi]
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]
movss dword [ebp - 0x98], xmm0
subss xmm5, xmm0
movss xmm2, dword [0x100c8708]
movaps xmm0, xmm3
mov ecx, dword [0x1012c274]
mulss xmm0, xmm3
movaps xmm1, xmm4
push str.sprites_purplelaser1.vmt
mulss xmm1, xmm4
movss dword [ebp - 0x80], xmm6
movss dword [ebp - 0x7c], xmm7
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, dword [0x100c86ec]
divss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0x78], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm3
sqrtss xmm1, xmm1
mulss xmm0, xmm1
addss xmm0, xmm6
movss dword [ebp - 0x74], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm4
mulss xmm2, xmm5
mulss xmm0, xmm1
mulss xmm2, xmm1
addss xmm0, xmm7
addss xmm2, dword [ebp - 0x98]
movss dword [ebp - 0x70], xmm0
movss dword [ebp - 0x6c], xmm2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movss xmm0, dword [0x101179e0]
movss dword [ebp - 0x54], xmm0
movaps xmm0, xmmword [0x10100d40]
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 0x100b27bc
mov eax, dword [0x101178b4]
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 [0x101178b6]
jmp 0x100b27e1
mov eax, dword [0x10117950]
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 [0x10117952]
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.10054ab0
mov edx, eax
add esp, 4
test edx, edx
je 0x100b281c
mov ecx, dword [0x1012c2c8]
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 0x100b2560
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100ba85e
mov esp, ebp
pop ebp
ret