Function at 0x100b2330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10122c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10128b58]
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 0x100b271e
cmp byte [0x1011670c], 0
je 0x100b271e
cmp byte [0x10128b5e], 0
jne 0x100b23f1
mov eax, dword [0x1012c0a8]
cmp eax, dword [0x1012c0ac]
je 0x100b271e
mov dword [0x1012c0ac], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba7ae
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1012c0ac]
sub edx, dword [0x1012c0a8]
sar edx, 5
mov dword [ebp - 0xa4], edx
test edx, edx
je 0x100b271e
mov eax, dword [0x1012b3e0]
mov esi, edx
add eax, 0xffffffc0
xor eax, 0x29918991
shl esi, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x1012b1d8]
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 [0x1012c0a8]
je 0x100b270a
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x1012b1d8]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
andps xmm0, xmmword [0x100c91b0]
comiss xmm0, dword [0x10116958]
jbe 0x100b2502
mov eax, dword [0x1012c0ac]
lea edi, [esi + 0x20]
mov dword [ebp - 0x98], eax
cmp edi, eax
je 0x100b24f6
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 0x100b24a5
mov ecx, dword [ebp - 0x9c]
sub dword [0x1012c0ac], 0x20
jmp 0x100b270a
cmp byte [esi + 0x1c], 0
jne 0x100b270a
lea eax, [edx - 1]
cmp ecx, eax
je 0x100b2528
cmp dword [ebp - 0x98], edx
jae 0x100b270a
cmp edi, dword [esi + 0x38]
je 0x100b270a
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 [0x1012b1b4]
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 [0x10116958]
movss dword [ebp - 0x54], xmm0
movaps xmm0, xmmword [0x10100b70]
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 0x100b269c
mov eax, dword [0x1011682c]
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 [0x1011682e]
jmp 0x100b26c1
mov eax, dword [0x101168c8]
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 [0x101168ca]
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.10054a00
mov edx, eax
add esp, 4
test edx, edx
je 0x100b26fc
mov ecx, dword [0x1012b208]
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 0x100b2440
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100ba7ae
mov esp, ebp
pop ebp
ret