Function at 0x100a36a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100c9380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100c9400], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x7c], 0xffffffff
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x38], 0
je 0x100a3c36
push 0
push dword [0x100d0244]
push dword [0x100d0240]
call fcn.100a9b20
cmp eax, dword [0x100d0244]
je 0x100a3c36
cmp byte [0x100c9404], 0
jne 0x100a37aa
mov eax, dword [0x100f5274]
cmp eax, dword [0x100f5278]
je 0x100a3c36
mov dword [0x100f5278], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9d26
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x100f5278]
mov edx, ebx
sub edx, dword [0x100f5274]
sar edx, 5
mov dword [ebp - 0xc8], edx
test edx, edx
je 0x100a3c36
mov ecx, dword [0x100f483c]
mov esi, edx
mov eax, dword [0x100c9400]
add ecx, 0xffffffbe
movss xmm2, dword [0x100d0480]
xor ecx, 0x911388d0
shl esi, 5
movd xmm3, dword [ecx + eax]
mov ecx, edx
mov eax, dword [0x100f463c]
cvtdq2ps xmm3, xmm3
mulss xmm3, dword [eax + 0x20]
movss dword [ebp - 0xc4], xmm3
sub esi, 0x20
mov dword [ebp - 0xb4], ecx
dec ecx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xb8], ecx
add esi, dword [0x100f5274]
je 0x100a3c22
mov edi, dword [esi + 0x18]
movaps xmm0, xmm3
mov eax, dword [0x100f463c]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002b240
comiss xmm0, xmm2
jbe 0x100a38c9
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x100a38bb
lea ecx, [esi + 0x14]
lea edx, [esi + 0x34]
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, ebx
jne 0x100a3860
mov ebx, dword [0x100f5278]
movss xmm2, dword [0x100d0480]
mov ecx, dword [ebp - 0xb8]
sub ebx, 0x20
mov dword [0x100f5278], ebx
jmp 0x100a3c22
cmp byte [esi + 0x1c], 0
jne 0x100a3c22
lea eax, [edx - 1]
cmp ecx, eax
je 0x100a38ef
cmp dword [ebp - 0xb4], edx
jae 0x100a3c22
cmp edi, dword [esi + 0x38]
je 0x100a3c22
movss xmm2, dword [esi + 0xc]
movss dword [ebp - 0x1c], xmm2
movss xmm1, dword [esi + 0x10]
movss dword [ebp - 0x18], xmm1
movss xmm0, dword [esi + 0x14]
movss dword [ebp - 0x14], xmm0
movss xmm4, dword [esi]
movss xmm3, dword [esi + 4]
movaps xmm7, xmm4
movaps xmm6, xmm3
movss dword [ebp - 0xb4], xmm2
subss xmm6, xmm1
movss dword [ebp - 0xc0], xmm0
subss xmm7, xmm2
movss dword [ebp - 0xbc], xmm1
subss xmm4, xmm2
movss xmm2, dword [esi + 8]
movaps xmm5, xmm2
subss xmm3, xmm1
subss xmm5, xmm0
subss xmm2, xmm0
movaps xmm0, xmm6
movaps xmm1, xmm7
mulss xmm0, xmm6
mulss xmm1, xmm7
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.1001e330
mulss xmm3, xmm3
movaps xmm1, xmm0
addss xmm1, dword [0x100bf198]
mulss xmm4, xmm4
mulss xmm2, xmm2
addss xmm3, xmm4
addss xmm3, xmm2
movaps xmm0, xmm3
call fcn.1001e330
divss xmm7, xmm1
mov edx, dword [0x100d02e8]
movss xmm3, dword [ebp - 0xb4]
movss xmm2, dword [ebp - 0xbc]
mulss xmm7, xmm0
movss dword [ebp - 0x90], xmm3
movss dword [ebp - 0x8c], xmm2
addss xmm7, xmm3
divss xmm6, xmm1
movss dword [ebp - 0x10], xmm7
mulss xmm6, xmm0
movss dword [ebp - 0x9c], xmm7
divss xmm5, xmm1
addss xmm6, xmm2
mulss xmm5, xmm0
movss xmm0, dword [ebp - 0xc0]
movss dword [ebp - 0x88], xmm0
movss dword [ebp - 0xc], xmm6
addss xmm5, xmm0
movss dword [ebp - 0x98], xmm6
movss dword [ebp - 8], xmm5
movss dword [ebp - 0x94], xmm5
test edx, edx
jne 0x100a3a77
mov ecx, dword [0x100f4618]
push str.sprites_white.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x100bf4e0]
movss xmm2, dword [0x100d0480]
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x80], str.sprites_purplelaser1.vmt
movss dword [ebp - 0x70], xmm2
movaps xmm0, xmm2
mov dword [ebp - 0x5c], 0x437f0000
mov dword [ebp - 0x58], 0x3f000000
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], 0
jmp 0x100a3b32
cmp edx, 1
jne 0x100a3ad4
movss xmm0, dword [0x100d0480]
mov dword [ebp - 0x80], str.sprites_physbeam.vmt
mov dword [ebp - 0x84], 0xffffffff
movss dword [ebp - 0x70], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x437f0000
mov dword [ebp - 0x58], 0x3e4ccccd
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x6c], 0x40000000
mov dword [ebp - 0x68], 0x40000000
mov dword [ebp - 0x38], 0
jmp 0x100a3b3e
mov ecx, dword [0x100f4618]
mov dword [ebp - 0x80], str.sprites_purplelaser1.vmt
push str.sprites_purplelaser1.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movss xmm0, dword [0x100d0480]
movss dword [ebp - 0x70], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x43340000
mov dword [ebp - 0x58], 0x3e4ccccd
mov dword [ebp - 0x50], 0x3f800000
mov dword [ebp - 0x6c], 0x40c00000
mov dword [ebp - 0x68], 0x40c00000
mov dword [ebp - 0x38], 0x8300
mov edx, dword [0x100d02e8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x3c], 2
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x54], 0
cmp byte [esi + 0x1d], 0
jne 0x100a3b98
mov eax, dword [0x100d0378]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm2, eax
movzx eax, byte [0x100d037a]
cvtdq2ps xmm2, xmm2
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x48], xmm2
movss dword [ebp - 0x44], xmm3
jmp 0x100a3ba7
movss xmm3, dword [ebp - 0x44]
movss xmm2, dword [ebp - 0x48]
movss xmm1, dword [ebp - 0x4c]
cmp edx, 3
je 0x100a3bd6
mov ecx, dword [0x100f466c]
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, eax
test edx, edx
je 0x100a3c02
mov ecx, dword [0x100f466c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
jmp 0x100a3c02
mov ecx, dword [0x100f461c]
push ecx
cvttss2si eax, xmm3
mov edx, dword [ecx]
movss dword [esp], xmm0
push 0
push eax
cvttss2si eax, xmm2
push eax
cvttss2si eax, xmm1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edx + 0x14]
call eax
movss xmm3, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xb8]
mov byte [esi + 0x1c], 1
mov ebx, dword [0x100f5278]
movss xmm2, dword [0x100d0480]
mov edx, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xcc]
test ecx, ecx
jne 0x100a3806
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9d26
mov esp, ebp
pop ebp
ret