Function at 0x100a48e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x100cc380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100cc404], 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 0x100a4e91
push 0
push dword [0x100d34d0]
push dword [0x100d34cc]
call fcn.100aae50
cmp eax, dword [0x100d34d0]
je 0x100a4e91
cmp byte [0x100cc408], 0
jne 0x100a49ea
mov eax, dword [0x1010f628]
cmp eax, dword [0x1010f62c]
je 0x100a4e91
mov dword [0x1010f62c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab05e
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x1010f62c]
mov edx, ebx
sub edx, dword [0x1010f628]
sar edx, 5
mov dword [ebp - 0xcc], edx
test edx, edx
je 0x100a4e91
mov ecx, dword [0x1010eba4]
mov esi, edx
mov eax, dword [0x100cc404]
add ecx, 0xffffffbe
movss xmm2, dword [0x100d370c]
xor ecx, 0x4a7e049
shl esi, 5
movd xmm3, dword [ecx + eax]
mov ecx, edx
mov eax, dword [0x1010e994]
cvtdq2ps xmm3, xmm3
mulss xmm3, dword [eax + 0x20]
movss dword [ebp - 0xc8], xmm3
sub esi, 0x20
mov dword [ebp - 0xb4], ecx
dec ecx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xb8], ecx
add esi, dword [0x1010f628]
je 0x100a4e7d
mov edi, dword [esi + 0x18]
movaps xmm0, xmm3
mov eax, dword [0x1010e994]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002b3a0
comiss xmm0, xmm2
jbe 0x100a4b09
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x100a4afb
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, ebx
jne 0x100a4aa0
mov ebx, dword [0x1010f62c]
movss xmm2, dword [0x100d370c]
mov ecx, dword [ebp - 0xb8]
sub ebx, 0x20
mov dword [0x1010f62c], ebx
jmp 0x100a4e7d
cmp byte [esi + 0x1c], 0
jne 0x100a4e7d
lea eax, [edx - 1]
cmp ecx, eax
je 0x100a4b2f
cmp dword [ebp - 0xb4], edx
jae 0x100a4e7d
cmp edi, dword [esi + 0x38]
je 0x100a4e7d
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 xmm5, dword [esi]
movss xmm3, dword [esi + 4]
movaps xmm4, xmm5
subss xmm4, xmm2
movss dword [ebp - 0xbc], xmm2
movaps xmm7, xmm3
movss dword [ebp - 0xc4], xmm0
subss xmm7, xmm1
movss dword [ebp - 0xc0], xmm1
subss xmm5, xmm2
movss xmm2, dword [esi + 8]
movaps xmm6, xmm2
subss xmm3, xmm1
subss xmm6, xmm0
movss dword [ebp - 0xb4], xmm4
subss xmm2, xmm0
movaps xmm1, xmm4
movaps xmm0, xmm7
mulss xmm1, xmm4
mulss xmm0, xmm7
addss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, xmm6
addss xmm0, xmm1
call fcn.1001eba0
addss xmm0, dword [0x100c12a8]
movss xmm4, dword [0x100c13a8]
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm2, xmm2
addss xmm3, xmm5
divss xmm4, xmm0
addss xmm3, xmm2
movaps xmm0, xmm3
call fcn.1001eba0
movss xmm5, dword [ebp - 0xbc]
movaps xmm2, xmm4
mulss xmm2, dword [ebp - 0xb4]
movaps xmm1, xmm4
mov edx, dword [0x100d3574]
movss xmm3, dword [ebp - 0xc0]
mulss xmm1, xmm7
mulss xmm4, xmm6
mulss xmm2, xmm0
mulss xmm1, xmm0
mulss xmm4, xmm0
addss xmm2, xmm5
movss xmm0, dword [ebp - 0xc4]
addss xmm1, xmm3
movss dword [ebp - 0x90], xmm5
movss dword [ebp - 0x8c], xmm3
addss xmm4, xmm0
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x9c], xmm2
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 0x98], xmm1
movss dword [ebp - 8], xmm4
movss dword [ebp - 0x94], xmm4
movss dword [ebp - 0x88], xmm0
test edx, edx
jne 0x100a4cd2
mov ecx, dword [0x1010e970]
push str.sprites_white.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x100c15f0]
movss xmm2, dword [0x100d370c]
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 0x100a4d8d
cmp edx, 1
jne 0x100a4d2f
movss xmm0, dword [0x100d370c]
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 0x100a4d99
mov ecx, dword [0x1010e970]
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 [0x100d370c]
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 [0x100d3574]
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 0x100a4df3
mov eax, dword [0x100d3604]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm2, eax
movzx eax, byte [0x100d3606]
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 0x100a4e02
movss xmm3, dword [ebp - 0x44]
movss xmm2, dword [ebp - 0x48]
movss xmm1, dword [ebp - 0x4c]
cmp edx, 3
je 0x100a4e31
mov ecx, dword [0x1010e9c4]
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, eax
test edx, edx
je 0x100a4e5d
mov ecx, dword [0x1010e9c4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
jmp 0x100a4e5d
mov ecx, dword [0x1010e974]
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 - 0xc8]
mov ecx, dword [ebp - 0xb8]
mov byte [esi + 0x1c], 1
mov ebx, dword [0x1010f62c]
movss xmm2, dword [0x100d370c]
mov edx, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd0]
test ecx, ecx
jne 0x100a4a46
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ab05e
mov esp, ebp
pop ebp
ret