Function at 0x100a6cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
or eax, 0xffffffff
mov dword [ebp - 0x58], 0
or ecx, eax
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x100c92b0]
movss dword [ebp - 0x54], xmm0
movss dword [ebp - 0x38], xmm0
movss dword [ebp - 0x3c], xmm0
push esi
push edi
movups xmmword [ebp - 0xd8], xmm0
test ecx, ecx
je 0x100a737c
cmp byte [0x100d48dc], 0
je 0x100a737c
cmp byte [0x100c92b4], 0
jne 0x100a6d46
mov eax, dword [0x10138910]
cmp eax, dword [0x10138914]
je 0x100a737c
mov dword [0x10138914], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x10138914]
sub edi, dword [0x10138910]
sar edi, 5
mov dword [ebp - 0x14], edi
test edi, edi
je 0x100a737c
movss xmm0, dword [ebp - 0x8c]
mov edx, edi
mov eax, dword [0x10137ddc]
movss xmm1, dword [ebp - 0xcc]
add eax, 0xffffffc2
movss xmm3, dword [0x100bec00]
xor eax, 0xcdb53a9a
movss xmm5, dword [0x100be7b8]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x94]
movd xmm2, dword [eax + ecx]
mov ecx, edi
mov eax, dword [0x10137bb8]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0xac]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0xb0]
cvtdq2ps xmm2, xmm2
shl ecx, 5
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0xd0]
mulss xmm2, dword [eax + 0x20]
mov eax, dword [ebp - 0x90]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0xd4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0xd8]
movss dword [ebp - 0x50], xmm2
mov dword [ebp - 0x48], eax
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x28], xmm0
nop dword [eax]
mov esi, dword [0x10138910]
sub ecx, 0x20
mov dword [ebp - 8], edx
dec edx
add esi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x5c], esi
je 0x100a7374
mov ecx, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10137bb8]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
andps xmm0, xmm3
comiss xmm0, dword [0x100d4650]
jbe 0x100a6ed7
mov eax, dword [0x10138914]
lea edi, [esi + 0x20]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x100a6ecb
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
nop word [eax + eax]
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 - 8]
jne 0x100a6e80
mov edx, dword [ebp - 0x10]
sub dword [0x10138914], 0x20
jmp 0x100a736e
cmp byte [esi + 0x1c], 0
jne 0x100a7371
lea eax, [edi - 1]
cmp edx, eax
je 0x100a6efa
cmp dword [ebp - 8], edi
jae 0x100a7371
cmp ecx, dword [esi + 0x38]
je 0x100a7371
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm2, xmm6
movss xmm4, dword [esi + 8]
subss xmm3, xmm7
subss xmm4, dword [esi + 0x14]
mov eax, dword [0x100d4990]
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm5
movss xmm5, dword [0x100be8c4]
divss xmm5, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm2
movaps xmm2, xmm5
mulss xmm2, xmm3
mulss xmm5, xmm4
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm5, xmm0
addss xmm1, xmm6
movss xmm0, dword [esi + 0x14]
addss xmm2, xmm7
addss xmm5, xmm0
test eax, eax
jne 0x100a7056
mov ecx, dword [0x10137b90]
push str.sprites_purplelaser1.vmt
movss dword [ebp - 0x28], xmm6
movss dword [ebp - 0x2c], xmm7
mov eax, dword [ecx]
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x38], xmm2
mov eax, dword [eax + 8]
movss dword [ebp - 0x3c], xmm5
call eax
movss xmm0, dword [0x100d4650]
movzx ecx, byte [0x100d44f3]
movss xmm1, dword [ebp - 0x54]
movzx edx, word [0x100d44f2]
movss dword [ebp - 0x20], xmm0
movaps xmm0, xmmword [0x100bebc0]
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0xc], eax
mov eax, dword [0x100d44f0]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x58], 0x8300
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x100be844]
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x4c], xmm1
jmp 0x100a7104
cmp eax, 1
jne 0x100a70f8
mov ecx, dword [0x10137b90]
push str.sprites_physbeam.vmt
movss dword [ebp - 0x28], xmm6
movss dword [ebp - 0x2c], xmm7
mov eax, dword [ecx]
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x38], xmm2
mov eax, dword [eax + 8]
movss dword [ebp - 0x3c], xmm5
call eax
movss xmm0, dword [0x100d4650]
movss xmm1, dword [ebp - 0x54]
movzx edx, word [0x100d44f2]
mov dword [ebp - 0xc], eax
movzx eax, byte [0x100d44f3]
movss dword [ebp - 0x20], xmm0
movaps xmm0, xmmword [0x100beb40]
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x48], 0
movd xmm0, eax
mov eax, dword [0x100d44f0]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x40], 2
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x100d4a08]
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x4c], xmm1
jmp 0x100a7104
movzx edx, word [0x100d45ae]
mov eax, dword [0x100d45ac]
mov ecx, eax
mov byte [ebp - 0x7c], 1
push dword [ebp - 0x7c]
shr ecx, 8
movzx eax, al
movzx esi, cl
mov ecx, dword [0x10137be8]
mov dword [ebp - 8], eax
movzx edi, dl
call dword [0x10137ce8]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100a7356
mov ecx, dword [0x10137bb8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc0], ecx
test edx, edx
js 0x100a7356
mov ecx, dword [0x10137b90]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100a72ef
mov eax, dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
push edx
mov dword [eax + 0x2c], 0
mov dword [eax + 0x148], ecx
mov dword [eax + 0x14c], 0xffffffff
movss dword [eax + 0x150], xmm0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xec], 0
mov ecx, dword [0x10137b90]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
movaps xmm0, xmm1
movss xmm5, dword [ebp - 0x28]
mov dword [edx + 0x154], eax
mov eax, dword [0x10137bb8]
movss xmm4, dword [ebp - 0x2c]
movss xmm3, dword [ebp - 0x30]
mulss xmm0, dword [eax + 0x10]
movss dword [edx + 0xbc], xmm0
movaps xmm0, xmm2
mov eax, dword [0x10137bb8]
addss xmm0, dword [eax + 0x10]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x30], 0
movss dword [edx + 0xe8], xmm1
movss xmm1, dword [ebp - 0x38]
movss dword [edx + 0xc0], xmm0
movss dword [edx + 0xd4], xmm2
movss xmm2, dword [ebp - 0x3c]
movss dword [edx + 0x44], xmm1
subss xmm1, xmm4
movss dword [edx + 0x48], xmm2
subss xmm2, xmm3
movss dword [edx + 0x34], xmm5
movss dword [edx + 0x38], xmm4
movss dword [edx + 0x3c], xmm3
movss dword [edx + 0xb0], xmm1
movss dword [edx + 0xb4], xmm2
movups xmm0, xmmword [ebp - 0xa8]
movups xmmword [edx + 0xc4], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [edx + 0xe4], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [edx + 0x40], xmm0
subss xmm0, xmm5
movss dword [edx + 0xac], xmm0
cmp eax, 0xffffffff
jne 0x100a72e7
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, xmm2
sqrtss xmm1, xmm0
movss xmm0, dword [edx + 0xd0]
comiss xmm0, dword [0x100be87c]
jb 0x100a72d0
mulss xmm1, dword [0x100be854]
addss xmm1, dword [0x100be91c]
cvttss2si eax, xmm1
mov dword [edx + 0xf4], eax
jmp 0x100a72f2
cvtps2pd xmm0, xmm1
mulsd xmm0, qword [0x100be8d0]
addsd xmm0, qword [0x100be908]
cvttsd2si eax, xmm0
mov dword [edx + 0xf4], eax
jmp 0x100a72f2
mov edx, dword [ebp - 0x44]
movd xmm0, dword [ebp - 0x48]
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x58]
or dword [edx + 0x30], eax
push edx
movss dword [edx + 0xf0], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [edx + 0xec], xmm0
movd xmm0, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xd8], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xdc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe0], xmm0
mov ecx, dword [0x10137be8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x1c], 1
mov edx, dword [ebp - 0x10]
movss xmm5, dword [0x100be7b8]
movss xmm3, dword [0x100bec00]
movss xmm2, dword [ebp - 0x50]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
test edx, edx
jne 0x100a6e20
pop edi
pop esi
mov esp, ebp
pop ebp
ret