Function at 0x100e8170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov ecx, dword [0x101a3d60]
sub esp, 0x48
push esi
push edi
test ecx, ecx
je 0x100e861a
cmp byte [0x101b05d4], 0
je 0x100e861a
cmp byte [0x101a3d64], 0
jne 0x100e81ce
mov eax, dword [0x101d5154]
cmp eax, dword [0x101d5158]
je 0x100e861a
mov dword [0x101d5158], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [0x101d5158]
sub edx, dword [0x101d5154]
sar edx, 5
mov dword [ebp - 0x44], edx
test edx, edx
je 0x100e861a
mov eax, dword [0x101d46fc]
mov esi, edx
add eax, 0xffffffc2
xor eax, 0xe58789c
shl esi, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x101d4498]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 0xc], xmm2
sub esi, 0x20
mov dword [ebp - 0x14], ecx
dec ecx
mov dword [ebp - 0x48], esi
add esi, dword [0x101d5154]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x40], esi
je 0x100e860c
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x101d4498]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002dfa0
comiss xmm0, dword [0x101b0788]
jbe 0x100e82c7
mov eax, dword [0x101d5158]
lea edi, [esi + 0x20]
mov dword [ebp - 0x14], eax
cmp edi, eax
je 0x100e82bb
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
nop dword [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, dword [ebp - 0x14]
jne 0x100e8270
mov ecx, dword [ebp - 4]
sub dword [0x101d5158], 0x20
jmp 0x100e860c
cmp byte [esi + 0x1c], 0
jne 0x100e860c
lea eax, [edx - 1]
cmp ecx, eax
je 0x100e82ea
cmp dword [ebp - 0x14], edx
jae 0x100e860c
cmp edi, dword [esi + 0x38]
je 0x100e860c
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
subss xmm2, xmm6
movss xmm0, dword [esi + 0x14]
subss xmm3, xmm7
movss xmm4, dword [esi + 8]
subss xmm4, xmm0
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x1c], xmm6
movaps xmm1, xmm2
movss dword [ebp - 0x20], xmm7
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.10027330
addss xmm0, dword [0x101922a0]
movss xmm5, dword [0x1019243c]
movaps xmm1, xmm2
mulss xmm1, xmm2
divss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.10027330
mov ecx, dword [0x101d446c]
movaps xmm1, xmm5
mulss xmm1, xmm2
movaps xmm2, xmm5
push str.sprites_purplelaser1.vmt
mulss xmm2, xmm3
mov eax, dword [ecx]
mulss xmm1, xmm0
mulss xmm2, xmm0
mov eax, dword [eax + 8]
mulss xmm5, xmm4
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x34], xmm2
mulss xmm5, xmm0
movaps xmm0, xmm1
addss xmm0, xmm6
movss dword [ebp - 0x38], xmm5
movss dword [ebp - 0x24], xmm0
movaps xmm0, xmm2
addss xmm0, xmm7
movss dword [ebp - 0x28], xmm0
movaps xmm0, xmm5
addss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x2c], xmm0
call eax
cmp byte [esi + 0x1d], 0
movss xmm0, dword [0x101b0788]
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x18], xmm0
jne 0x100e8402
movzx edx, word [0x101b0682]
mov eax, dword [0x101b0680]
jmp 0x100e840e
movzx edx, word [0x101b0712]
mov eax, dword [0x101b0710]
mov ecx, eax
movzx esi, al
shr ecx, 8
movzx edi, cl
mov ecx, dword [0x101d44d4]
movzx eax, dl
push 1
mov dword [ebp - 0x3c], eax
call dword [0x101d45fc]
mov dword [ebp - 8], eax
test eax, eax
je 0x100e8604
mov ecx, dword [0x101d4498]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc8], ecx
test edx, edx
js 0x100e8604
mov ecx, dword [0x101d446c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100e85aa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
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 [0x101d446c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [ebp - 8]
movss xmm1, dword [ebp - 0x18]
mov dword [edx + 0x15c], eax
mov eax, dword [0x101d4498]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [0x101923bc]
movss dword [edx + 0xc4], xmm0
movaps xmm0, xmm1
mov eax, dword [0x101d4498]
addss xmm0, dword [eax + 0x10]
mov dword [edx + 0xd8], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0xcc], 0x40000000
mov dword [edx + 0xd0], 0x40000000
movss dword [edx + 0xc8], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [edx + 0x3c], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [edx + 0x40], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [edx + 0x44], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [edx + 0x48], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [edx + 0x4c], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [edx + 0x50], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [edx + 0xb4], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [edx + 0xb8], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [edx + 0xbc], xmm0
mov dword [edx + 0xd4], 0
mov dword [edx + 0xec], 0x437f0000
mov dword [edx + 0xf0], 0x3f000000
movss dword [edx + 0xdc], xmm1
mov dword [edx + 0xfc], 2
jmp 0x100e85ad
mov edx, dword [ebp - 8]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [edx + 0xf8], 0
mov dword [edx + 0xf4], 0
push edx
movss dword [edx + 0xe0], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe4], xmm0
movd xmm0, dword [ebp - 0x3c]
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe8], xmm0
mov ecx, dword [0x101d44d4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 0x40]
mov byte [eax + 0x1c], 1
movss xmm2, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
test ecx, ecx
jne 0x100e8213
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret