Function at 0x1009a8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [0x100c4520], 0
push ebx
push esi
push edi
je 0x1009ada0
push 0
push dword [0x100cb100]
push dword [0x100cb0fc]
call fcn.1009bec0
mov ecx, dword [0x100cb100]
cmp eax, ecx
jne 0x1009a91d
push 1
push ecx
push dword [0x100cb0fc]
call fcn.1009bec0
cmp eax, dword [0x100cb100]
je 0x1009ada0
cmp byte [0x100c4524], 0
jne 0x1009a943
mov eax, dword [0x100fba7c]
cmp eax, dword [0x100fba80]
je 0x1009ada0
mov dword [0x100fba80], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x100fba80]
mov eax, 0x38e38e39
sub ecx, dword [0x100fba7c]
imul ecx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x1009ada0
mov ecx, dword [0x100fb000]
mov eax, dword [0x100c4520]
add ecx, 0xffffffbd
xor ecx, 0x61d6df44
movd xmm2, dword [ecx + eax]
lea ecx, [ebx + ebx*8]
mov eax, dword [0x100fae08]
cvtdq2ps xmm2, xmm2
shl ecx, 2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 8], xmm2
dec ebx
sub ecx, 0x24
mov dword [ebp - 0x3c], ebx
mov ebx, dword [0x100fba7c]
mov dword [ebp - 0x40], ecx
add ebx, ecx
je 0x1009ad92
movd xmm1, dword [ebx + 0x1c]
movaps xmm0, xmm2
mov eax, dword [0x100fae08]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10023320
comiss xmm0, dword [0x100cb29c]
jbe 0x1009aa49
mov edi, dword [0x100fba80]
lea esi, [ebx + 0x24]
cmp esi, edi
je 0x1009aa3d
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x30]
nop dword [eax]
mov eax, dword [esi]
lea ebx, [ebx + 0x24]
mov dword [ebx - 0x24], eax
lea ecx, [ecx + 0x24]
mov eax, dword [edx - 8]
lea edx, [edx + 0x24]
mov dword [ecx - 0x2c], eax
add esi, 0x24
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
mov eax, dword [edx - 0x18]
mov dword [ecx - 0x18], eax
mov eax, dword [edx - 0x14]
mov dword [ecx - 0x14], eax
movzx eax, byte [edx - 0x10]
mov byte [ecx - 0x10], al
movzx eax, byte [edx - 0xf]
mov byte [ecx - 0xf], al
cmp esi, edi
jne 0x1009a9f0
sub dword [0x100fba80], 0x24
jmp 0x1009ad92
cmp byte [ebx + 0x20], 0
jne 0x1009ad92
movss xmm6, dword [ebx + 0x10]
movss xmm7, dword [ebx + 0x14]
movss xmm3, dword [ebx + 4]
movss xmm4, dword [ebx + 8]
subss xmm3, xmm6
movss xmm0, dword [ebx + 0x18]
subss xmm4, xmm7
movss xmm5, dword [ebx + 0xc]
subss xmm5, xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x1c], xmm6
movaps xmm0, xmm3
movss dword [ebp - 0x20], xmm7
movaps xmm1, xmm4
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10016ed0
movaps xmm2, xmm0
movaps xmm1, xmm4
addss xmm2, dword [0x100af490]
movaps xmm0, xmm3
mulss xmm1, xmm4
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10016ed0
divss xmm3, xmm2
mov ecx, dword [0x100fade0]
push str.sprites_purplelaser1.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
divss xmm4, xmm2
divss xmm5, xmm2
mulss xmm3, xmm0
mulss xmm4, xmm0
mulss xmm5, xmm0
movaps xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0x34], xmm4
movss dword [ebp - 0x38], xmm5
movss dword [ebp - 0x24], xmm0
movaps xmm0, xmm7
addss xmm0, xmm4
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x10]
addss xmm0, xmm5
movss dword [ebp - 0x2c], xmm0
call eax
movss xmm0, dword [0x100cb29c]
mov ecx, dword [ebx]
mov dword [ebp - 0xc], eax
movss dword [ebp - 0x18], xmm0
cmp ecx, dword [0x100c4520]
jne 0x1009ab62
movzx edx, word [0x100cb196]
mov eax, dword [0x100cb194]
jmp 0x1009ab6e
movzx edx, word [0x100cb226]
mov eax, dword [0x100cb224]
mov ecx, eax
movzx edi, dl
shr ecx, 8
movzx eax, al
movzx esi, cl
mov ecx, dword [0x100fae38]
push 1
mov dword [ebp - 0x14], eax
call dword [0x100faf18]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1009ad8d
mov ecx, dword [0x100fae08]
mov ecx, dword [ecx + 0x10]
mov dword [edx + 0xc8], ecx
mov edx, dword [ebp - 0xc]
test edx, edx
js 0x1009ad8d
mov ecx, dword [0x100fade0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x1009ad00
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push edx
mov dword [eax + 0x30], 0
mov dword [eax + 0x150], ecx
mov dword [eax + 0x154], 0xffffffff
mov dword [eax + 0x158], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xf4], 0
mov ecx, dword [0x100fade0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [ebp - 4]
movss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm1
mov dword [ecx + 0x15c], eax
mov eax, dword [0x100fae08]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0xc4], eax
mov eax, dword [0x100fae08]
addss xmm0, dword [eax + 0x10]
mov dword [ecx + 0xd8], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0xcc], 0x3f800000
mov dword [ecx + 0xd0], 0x3f800000
movss dword [ecx + 0xc8], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ecx + 0x3c], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ecx + 0x40], xmm0
movss xmm0, dword [ebp - 0x10]
movss dword [ecx + 0x44], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [ecx + 0x48], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [ecx + 0x4c], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ecx + 0x50], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [ecx + 0xb4], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [ecx + 0xb8], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [ecx + 0xbc], xmm0
mov dword [ecx + 0xd4], 0
mov dword [ecx + 0xec], 0x437f0000
mov dword [ecx + 0xf0], 0x3f800000
movss dword [ecx + 0xdc], xmm1
mov dword [ecx + 0xfc], 2
jmp 0x1009ad03
mov ecx, dword [ebp - 4]
movd xmm0, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push 0
mov dword [ecx + 0xf8], 0
mov dword [ecx + 0xf4], 0
movss dword [ecx + 0xe0], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0xe4], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0xe8], xmm0
push dword [0x100cb100]
push dword [0x100cb0fc]
call fcn.1009bec0
mov ecx, dword [0x100cb100]
cmp eax, ecx
jne 0x1009ad78
push 1
push ecx
push dword [0x100cb0fc]
call fcn.1009bec0
cmp eax, dword [0x100cb100]
je 0x1009ad8d
mov ecx, dword [0x100fae38]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [ebx + 0x20], 1
movss xmm2, dword [ebp - 8]
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
test ebx, ebx
jne 0x1009a997
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret