Function at 0x100c5450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x100e800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x101ae588]
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x20], 0
push ebx
push esi
push edi
movups xmmword [ebp - 0x84], xmm0
test ecx, ecx
je 0x100c588f
cmp byte [0x10123d6d], 0
je 0x100c588f
cmp byte [0x101ae597], 0
jne 0x100c5516
mov eax, dword [0x1014156c]
cmp eax, dword [0x10141570]
je 0x100c588f
mov dword [0x10141570], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c8fa5
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10141570]
sub edx, dword [0x1014156c]
sar edx, 5
mov dword [ebp - 0xac], edx
test edx, edx
je 0x100c588f
mov eax, dword [0x101a9cc0]
mov ebx, edx
add eax, 0xffffffbd
xor eax, 0x976fd352
shl ebx, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x101a9aa4]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 0xa0], xmm2
mov esi, dword [0x1014156c]
sub ebx, 0x20
mov dword [ebp - 0xa8], ecx
dec ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ebx
add esi, ebx
je 0x100c5881
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x101a9aa4]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10035c10
comiss xmm0, dword [0x10123ff4]
jbe 0x100c5620
mov ebx, dword [0x10141570]
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x100c560e
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, ebx
jne 0x100c55c1
mov ecx, dword [ebp - 0x9c]
sub dword [0x10141570], 0x20
mov ebx, dword [ebp - 0xa4]
jmp 0x100c5881
cmp byte [esi + 0x1c], 0
jne 0x100c5881
lea eax, [edx - 1]
cmp ecx, eax
je 0x100c5646
cmp dword [ebp - 0xa8], edx
jae 0x100c5881
cmp edi, dword [esi + 0x38]
je 0x100c5881
movss xmm3, dword [esi]
movss xmm4, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm3, xmm6
movss xmm5, dword [esi + 8]
subss xmm4, xmm7
subss xmm5, dword [esi + 0x14]
movaps xmm1, xmm3
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10035c40
movaps xmm2, xmm0
movaps xmm1, xmm3
addss xmm2, dword [0x100dcbb8]
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10035c40
divss xmm3, xmm2
mov eax, dword [0x10123ec0]
divss xmm4, xmm2
mulss xmm3, xmm0
mulss xmm4, xmm0
addss xmm3, xmm6
divss xmm5, xmm2
addss xmm4, xmm7
mulss xmm5, xmm0
movss xmm0, dword [esi + 0x14]
addss xmm5, xmm0
test eax, eax
jne 0x100c5774
mov ecx, dword [0x101a9a7c]
mov dword [ebp - 0x98], eax
push str.sprites_purplelaser1.vmt
movss dword [ebp - 0x84], xmm6
mov eax, dword [ecx]
movss dword [ebp - 0x80], xmm7
movss dword [ebp - 0x7c], xmm0
movss dword [ebp - 0x78], xmm3
mov eax, dword [eax + 8]
movss dword [ebp - 0x74], xmm4
movss dword [ebp - 0x70], xmm5
mov dword [ebp - 0x68], str.sprites_purplelaser1.vmt
call eax
movss xmm0, dword [0x10123ff4]
mov dx, word [0x10123f52]
mov dword [ebp - 0x6c], eax
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x100dcf90]
movzx eax, dh
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0x3e4ccccd
mov dword [ebp - 0x20], 0x8300
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
jmp 0x100c57ff
cmp eax, 1
jne 0x100c5854
mov ecx, dword [0x101a9a7c]
push str.sprites_physbeam.vmt
movss dword [ebp - 0x84], xmm6
movss dword [ebp - 0x80], xmm7
mov eax, dword [ecx]
movss dword [ebp - 0x7c], xmm0
movss dword [ebp - 0x78], xmm3
movss dword [ebp - 0x74], xmm4
mov eax, dword [eax + 8]
movss dword [ebp - 0x70], xmm5
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x68], str.sprites_physbeam.vmt
call eax
movss xmm0, dword [0x10123ff4]
mov dx, word [0x10123f52]
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x100dcf70]
mov dword [ebp - 0x6c], eax
movzx eax, dh
movups xmmword [ebp - 0x54], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [0x101240b0]
movss dword [ebp - 0x40], xmm0
mov eax, dword [0x10123f50]
movzx ecx, al
shr eax, 8
movzx eax, al
mov byte [ebp - 0x28], 1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x5c], 0
movss dword [ebp - 0x34], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
movss dword [ebp - 0x30], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x2c], xmm0
lea ecx, [ebp - 0x98]
call fcn.1008e500
test eax, eax
je 0x100c5873
mov ecx, dword [0x101a9ad4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov byte [esi + 0x1c], 1
mov ecx, dword [ebp - 0x9c]
movss xmm2, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xac]
test ecx, ecx
jne 0x100c5561
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c8fa5
mov esp, ebp
pop ebp
ret