Function at 0x100aaf00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x101733b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
jne 0x100ab49a
mov esi, dword [0x101e0948]
test esi, esi
je 0x100ab49a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101e14f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101e26f4]
mov dword [ebp - 0x18], ecx
cmp eax, dword [ecx + 4]
jle 0x100aaf94
push 0x101e26f4
call fcn.100b5535
add esp, 4
cmp dword [0x101e26f4], 0xffffffff
jne 0x100aaf91
mov eax, dword [0x101e26fc]
push 0x101e26f4
mov dword [0x101e26f8], eax
call fcn.100b54eb
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x101e26f8]
cmp dword [eax + esi], 0
jne 0x100ab49a
mov eax, dword [0x101e26ec]
cmp eax, dword [ecx + 4]
jle 0x100aafdd
push 0x101e26ec
call fcn.100b5535
add esp, 4
cmp dword [0x101e26ec], 0xffffffff
jne 0x100aafdd
mov eax, dword [0x101e2700]
push 0x101e26ec
mov dword [0x101e26f0], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e26f0]
cmp dword [eax + esi], 0
jle 0x100ab49a
cmp byte [0x101dd688], 0
mov eax, dword [0x101e0948]
movss xmm1, dword [0x1016d758]
mov dword [ebp - 0x14], eax
je 0x100ab13d
movss xmm0, dword [0x101dd6a8]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x101dd69c]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x101dd6a0]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [0x101dd6a4]
mulss xmm0, xmm1
mov dword [ebp - 0x1c], esi
movd xmm1, dword [0x101dd6ac]
mov esi, dword [eax + 0xba90]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1016d4b8]
movss dword [ebp - 0x20], xmm1
cmp esi, dword [edi]
jle 0x100ab12f
movzx eax, cl
lea edi, [esi + esi*4]
cvttss2si ecx, xmm0
mov dword [ebp - 0x24], eax
shl edi, 2
movaps xmm2, xmm1
xorps xmm2, xmmword [0x1016ddc0]
movzx eax, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
movzx eax, cl
mov dword [ebp - 0x1c], eax
movzx eax, dl
movss dword [ebp - 0x10], xmm2
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x101e1d48]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x24]
mov eax, dword [ecx]
push dword [ebp - 0x28]
mov dword [ebp - 0x4c], 0
push dword [ebp - 0x1c]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x64]
movss dword [ebp - 0x58], xmm1
push eax
mov eax, dword [ebp - 0x14]
movss dword [ebp - 0x54], xmm1
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x64], xmm2
mov eax, dword [eax + 0xba84]
add eax, 0xffffffec
movss dword [ebp - 0x60], xmm2
add eax, edi
movss dword [ebp - 0x5c], xmm2
push eax
call edx
mov eax, dword [ebp - 8]
dec esi
movss xmm1, dword [ebp - 0x20]
add edi, 0xffffffec
movss xmm2, dword [ebp - 0x10]
cmp esi, dword [eax]
jg 0x100ab0a2
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xba90], 0
xor eax, eax
jmp 0x100ab143
mov eax, dword [eax + 0xba90]
cmp eax, dword [edi]
je 0x100ab149
mov dword [edi], eax
cmp dword [0x101dd6b0], 0
je 0x100ab49a
xor esi, esi
add edi, 8
mov dword [ebp - 8], esi
nop
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi - 4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100ab48a
mov ecx, dword [0x101e1d1c]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100ab485
mov esi, dword [0x101e0948]
cmp eax, esi
sete byte [ebp - 9]
je 0x100ab24a
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x101e29d4]
cmp ecx, dword [eax + 4]
jle 0x100ab1f3
push 0x101e29d4
call fcn.100b5535
mov ecx, dword [0x101e29d4]
add esp, 4
cmp ecx, 0xffffffff
jne 0x100ab1ed
mov eax, dword [0x101e28cc]
push 0x101e29d4
mov dword [0x101e29bc], eax
call fcn.100b54eb
mov ecx, dword [0x101e29d4]
add esp, 4
mov esi, dword [0x101e0948]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x101e29bc]
mov eax, dword [eax + edx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp ecx, dword [eax + 4]
jle 0x100ab239
push 0x101e29d4
call fcn.100b5535
add esp, 4
cmp dword [0x101e29d4], 0xffffffff
jne 0x100ab239
mov eax, dword [0x101e28cc]
push 0x101e29d4
mov dword [0x101e29bc], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e29bc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [esi + eax]
je 0x100ab24a
mov al, 1
jmp 0x100ab24c
xor al, al
cmp byte [ebp - 9], 0
je 0x100ab25b
movups xmm0, xmmword [0x101dd6d8]
jmp 0x100ab26f
test al, al
jne 0x100ab268
movups xmm0, xmmword [0x101dd6c8]
jmp 0x100ab26f
movups xmm0, xmmword [0x101dd6b8]
movss xmm1, dword [0x1016d758]
movups xmmword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0x34]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x40]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x3c]
mulss xmm0, xmm1
mov dword [ebp - 0x10], ecx
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [0x101dd6b4]
sub eax, 0
je 0x100ab304
sub eax, 1
jne 0x100ab482
mov ecx, dword [0x101e1d48]
mov edx, dword [edi]
push ecx
mov dword [esp], 0x40400000
push eax
mov esi, dword [ecx]
cvttss2si eax, xmm0
movzx eax, al
push eax
mov eax, dword [ebp - 0x14]
movzx eax, al
push eax
mov eax, dword [ebp - 0x10]
movzx eax, al
push eax
lea eax, [edx - 0xc]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
jmp 0x100ab482
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
movzx eax, al
movzx edx, dl
shl edx, 8
or edx, eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x14]
movzx eax, al
shl edx, 8
or edx, eax
mov dword [ebp - 0xc0], 0
movzx eax, cl
mov ecx, dword [edi]
shl edx, 8
or edx, eax
mov dword [ebp - 0xc4], 0xffffffff
movups xmmword [ebp - 0xf4], xmm0
mov eax, dword [ecx - 0x10]
mov dword [ebp - 0xdc], eax
mov eax, dword [ecx - 4]
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0xd0], eax
mov eax, edx
movq xmm0, qword [ecx - 0x18]
movq qword [ebp - 0xe4], xmm0
movq xmm0, qword [ecx - 0xc]
shr eax, 0x18
movq qword [ebp - 0xd8], xmm0
mov ecx, dword [0x101e1d4c]
mov dword [ebp - 0xf8], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
mov dword [ebp - 0xc8], str.sprites_purplelaser1.vmt
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xb8], 0x40400000
mov dword [ebp - 0xac], 0x3dcccccd
movss dword [ebp - 0xa4], xmm0
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
shr eax, 8
movzx eax, al
shr edx, 0x10
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa8], 0x3f800000
movss dword [ebp - 0x94], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
lea edx, [ebp - 0xf8]
push edx
mov dword [ebp - 0x84], 2
mov byte [ebp - 0x88], 1
mov dword [ebp - 0xa0], 0x3f800000
movss dword [ebp - 0x90], xmm0
movd xmm0, eax
mov eax, dword [ecx]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xb4], 0x40400000
mov dword [ebp - 0xb0], 0x40400000
movss dword [ebp - 0x8c], xmm0
mov dword [ebp - 0x80], 0x304
call eax
test eax, eax
je 0x100ab482
mov ecx, dword [0x101e1d4c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, dword [ebp - 8]
mov eax, dword [edi - 4]
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x100ab160
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100b5418
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4