Function at 0x100a5430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov ecx, dword [0x100c7228]
or eax, 0xffffffff
push ebx
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
or eax, eax
movss dword [esp + 0x38], xmm0
mov dword [esp + 0xc], eax
xorps xmm4, xmm4
movss dword [esp + 0x34], xmm4
mov byte [esp + 0xd0], 1
mov dword [esp + 0x58], 0
push esi
push edi
movups xmmword [esp + 0x7c], xmm0
test ecx, ecx
je 0x100a5af4
cmp byte [0x100cf610], 0
je 0x100a5af4
cmp byte [0x100c722c], 0
jne 0x100a54b4
mov eax, dword [0x10124b14]
cmp eax, dword [0x10124b18]
je 0x100a5af4
mov dword [0x10124b18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x10124b18]
sub ebx, dword [0x10124b14]
sar ebx, 5
mov dword [esp + 0x64], ebx
test ebx, ebx
je 0x100a5af4
movss xmm0, dword [esp + 0xd4]
mov edx, ebx
mov eax, dword [0x10123ff0]
movss dword [esp + 0x58], xmm0
add eax, 0xffffffbf
movss xmm0, dword [esp + 0xd0]
xor eax, 0x826fda8e
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0xcc]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0xc8]
movd xmm2, dword [eax + ecx]
mov ecx, ebx
mov eax, dword [0x10123dd4]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x88]
cvtdq2ps xmm2, xmm2
shl ecx, 5
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x84]
mulss xmm2, dword [eax + 0x20]
mov eax, dword [esp + 0xc4]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x5c], xmm2
mov dword [esp + 0x48], eax
movss dword [esp + 0x2c], xmm0
nop word [eax + eax]
mov esi, dword [0x10124b14]
sub ecx, 0x20
mov edi, edx
mov dword [esp + 0x10], ecx
dec edx
mov dword [esp + 0x18], edx
add esi, ecx
je 0x100a5aec
mov ecx, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10123dd4]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.100309d0
comiss xmm0, dword [0x100cf898]
jbe 0x100a5673
mov ebx, dword [0x10124b18]
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x100a5663
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 0x100a5618
mov edx, dword [esp + 0x18]
sub dword [0x10124b18], 0x20
mov ebx, dword [esp + 0x64]
jmp 0x100a5ae8
cmp byte [esi + 0x1c], 0
jne 0x100a5ae8
lea eax, [ebx - 1]
cmp edx, eax
je 0x100a5695
cmp edi, ebx
jae 0x100a5ae8
cmp ecx, dword [esi + 0x38]
je 0x100a5ae8
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.10022940
movaps xmm2, xmm0
movaps xmm1, xmm3
addss xmm2, dword [0x100bc4fc]
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10022940
divss xmm3, xmm2
mov eax, dword [0x100cf764]
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 0x100a57bf
mov ecx, dword [0x10123db0]
push str.sprites_purplelaser1.vmt
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x34], xmm7
mov eax, dword [ecx]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm3
movss dword [esp + 0x40], xmm4
mov eax, dword [eax + 8]
movss dword [esp + 0x44], xmm5
call eax
movss xmm0, dword [0x100cf898]
mov dx, word [0x100cf7f6]
movss dword [esp + 0x24], xmm0
movaps xmm0, xmmword [0x100bc8c0]
movzx ecx, dh
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], 0x8300
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [0x100bc578]
jmp 0x100a583e
cmp eax, 1
jne 0x100a58a3
mov ecx, dword [0x10123db0]
push str.sprites_physbeam.vmt
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x34], xmm7
mov eax, dword [ecx]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm3
movss dword [esp + 0x40], xmm4
mov eax, dword [eax + 8]
movss dword [esp + 0x44], xmm5
call eax
movss xmm0, dword [0x100cf898]
mov dx, word [0x100cf7f6]
movss dword [esp + 0x24], xmm0
movaps xmm0, xmmword [0x100bc860]
mov dword [esp + 0x14], eax
movzx eax, dh
movups xmmword [esp + 0xac], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [0x100cf954]
mov eax, dword [0x100cf7f4]
xorps xmm1, xmm1
movzx ecx, al
movss dword [esp + 0x20], xmm0
shr eax, 8
movzx eax, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov byte [esp + 0xd8], 1
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x50], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x54], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x58], xmm0
push dword [esp + 0xd8]
mov ecx, dword [0x10123e04]
call dword [0x10123ee8]
mov edi, eax
test edi, edi
je 0x100a5ade
mov ecx, dword [0x10123dd4]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x10]
mov dword [edi + 0xc8], ecx
test edx, edx
js 0x100a5ade
mov ecx, dword [0x10123db0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100a5a7e
movss xmm0, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x30], ecx
mov eax, dword [esp + 0x14]
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], 0xffffffff
movss dword [edi + 0x158], xmm0
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xf4], ecx
mov ecx, dword [0x10123db0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movss xmm1, dword [esp + 0x20]
movss xmm2, dword [esp + 0x24]
movaps xmm0, xmm1
mov dword [edi + 0x15c], eax
mov eax, dword [0x10123dd4]
movss xmm3, dword [esp + 0x40]
movss xmm5, dword [esp + 0x30]
movss xmm4, dword [esp + 0x34]
mulss xmm0, dword [eax + 0x10]
movss dword [edi + 0xc4], xmm0
movaps xmm0, xmm2
mov eax, dword [0x10123dd4]
addss xmm0, dword [eax + 0x10]
mov eax, dword [esp + 0x44]
mov dword [edi + 0x34], 0
movss dword [edi + 0xf0], xmm1
movss xmm1, dword [esp + 0x38]
movss dword [edi + 0xc8], xmm0
movss dword [edi + 0xdc], xmm2
movss xmm2, dword [esp + 0x2c]
movss dword [edi + 0x3c], xmm2
movss dword [edi + 0x48], xmm1
subss xmm1, xmm2
movss dword [edi + 0x50], xmm3
subss xmm3, xmm4
movss dword [edi + 0x40], xmm5
movss dword [edi + 0x44], xmm4
movups xmm0, xmmword [esp + 0xac]
movss dword [edi + 0xb4], xmm1
movss dword [edi + 0xbc], xmm3
movups xmmword [edi + 0xcc], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [edi + 0xec], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [edi + 0x4c], xmm0
movaps xmm2, xmm0
subss xmm2, xmm5
movss dword [edi + 0xb8], xmm2
cmp eax, 0xffffffff
jne 0x100a5a78
movss xmm0, dword [edi + 0xd8]
comiss xmm0, dword [0x100bc5c0]
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm3, xmm3
addss xmm1, xmm2
addss xmm1, xmm3
movaps xmm0, xmm1
jb 0x100a5a5b
call fcn.10022940
mulss xmm0, dword [0x100bc58c]
addss xmm0, dword [0x100bc68c]
cvttss2si eax, xmm0
jmp 0x100a5a78
call fcn.10022940
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x100bc618]
addsd xmm0, qword [0x100bc660]
cvttsd2si eax, xmm0
mov dword [edi + 0xfc], eax
movd xmm0, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
or dword [edi + 0x34], eax
cvtdq2ps xmm0, xmm0
push edi
movss dword [edi + 0xf8], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [edi + 0xf4], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [edi + 0xe0], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [edi + 0xe4], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [edi + 0xe8], xmm0
mov ecx, dword [0x10123e04]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [esi + 0x1c], 1
mov edx, dword [esp + 0x18]
movss xmm2, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
test edx, edx
jne 0x100a55c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret