Function at 0x100edf00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [0x10429d7c]
push edi
test esi, esi
je 0x100ee3fb
cmp byte [0x103b44b4], 0
je 0x100ee3fb
mov ecx, dword [0x103b4570]
mov eax, dword [0x103b456c]
cmp eax, ecx
je 0x100ee3fb
nop word [eax + eax]
cmp dword [eax], 1
je 0x100edf4c
add eax, 8
cmp eax, ecx
jne 0x100edf40
cmp eax, ecx
je 0x100ee3fb
cmp byte [0x10429d80], 0
jne 0x100edf7a
mov eax, dword [0x10541580]
cmp eax, dword [0x10541584]
je 0x100ee3fb
mov dword [0x10541584], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10541584]
sub edx, dword [0x10541580]
sar edx, 5
mov dword [esp + 0x48], edx
test edx, edx
je 0x100ee3fb
mov eax, dword [0x10548594]
mov ebx, edx
add eax, 0xffffffca
mov ecx, edx
xor eax, 0x14f7a20e
shl ebx, 5
movd xmm2, dword [eax + esi]
mov eax, dword [0x10540950]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [esp + 0x24], xmm2
sub ebx, 0x20
mov edi, ecx
dec ecx
mov dword [esp + 0x4c], ebx
add ebx, dword [0x10541580]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], ebx
je 0x100ee3eb
mov esi, dword [ebx + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10540950]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002dfe0
comiss xmm0, dword [0x103b47ac]
jbe 0x100ee077
mov edi, dword [0x10541584]
lea esi, [ebx + 0x20]
cmp esi, edi
je 0x100ee06b
lea ecx, [ebx + 0x14]
lea edx, [esi + 0x14]
nop dword [eax + eax]
mov eax, dword [esi]
lea ebx, [ebx + 0x20]
mov dword [ebx - 0x20], eax
lea ecx, [ecx + 0x20]
mov eax, dword [edx - 0x10]
lea edx, [edx + 0x20]
mov dword [ecx - 0x30], eax
add esi, 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 esi, edi
jne 0x100ee020
mov ecx, dword [esp + 0x1c]
sub dword [0x10541584], 0x20
jmp 0x100ee3eb
cmp byte [ebx + 0x1c], 0
jne 0x100ee3eb
lea eax, [edx - 1]
cmp ecx, eax
je 0x100ee099
cmp edi, edx
jae 0x100ee3eb
cmp esi, dword [ebx + 0x38]
je 0x100ee3eb
movss xmm3, dword [ebx + 0x10]
movss xmm1, dword [ebx + 4]
movss xmm0, dword [ebx + 0xc]
subss xmm1, xmm3
movss xmm2, dword [ebx]
movss xmm4, dword [ebx + 0x14]
subss xmm2, xmm0
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x30], xmm3
movss xmm3, dword [ebx + 8]
movaps xmm0, xmm1
mulss xmm0, xmm1
subss xmm3, xmm4
movss dword [esp + 0x14], xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
movss dword [esp + 0x34], xmm4
movss dword [esp + 0x10], xmm2
addss xmm0, xmm1
movss dword [esp + 0x18], xmm3
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.1002e020
addss xmm0, dword [0x101d83f4]
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm1
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [esp + 0x18]
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1002e020
movss xmm1, dword [esp + 0x28]
movss xmm2, dword [esp + 0x10]
divss xmm2, xmm1
mov cx, word [0x103b46a6]
movzx eax, cx
mov dword [esp + 0x3c], eax
mov eax, dword [0x103b46a4]
movzx ebx, ch
mov ecx, dword [0x10540928]
mov dword [esp + 0x20], eax
shr eax, 8
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push str.sprites_purplelaser1.vmt
mov dword [esp + 0x44], ebx
mov eax, dword [eax + 8]
mulss xmm2, xmm0
addss xmm2, dword [esp + 0x30]
movss dword [esp + 0x14], xmm2
movss xmm2, dword [esp + 0x18]
divss xmm2, xmm1
mulss xmm2, xmm0
addss xmm2, dword [esp + 0x34]
movss dword [esp + 0x18], xmm2
movss xmm2, dword [esp + 0x1c]
divss xmm2, xmm1
mulss xmm2, xmm0
addss xmm2, dword [esp + 0x38]
movss dword [esp + 0x1c], xmm2
call eax
mov ecx, dword [esp + 0x20]
movzx esi, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
movzx edi, cl
mov ecx, dword [0x10540980]
push 1
movzx ebx, al
call dword [0x10540ae4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100ee3e1
mov ecx, dword [0x10540950]
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc8], ecx
test edx, edx
js 0x100ee3e1
mov ecx, dword [0x10540928]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100ee381
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
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 [0x10540928]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [esp + 0x20]
movss xmm2, dword [esp + 0x10]
movss xmm1, dword [esp + 0x14]
movss xmm3, dword [esp + 0x18]
mov dword [edx + 0x15c], eax
mov eax, dword [0x10540950]
movss xmm4, dword [esp + 0x30]
movss xmm5, dword [esp + 0x34]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [0x101d8448]
movss dword [edx + 0xc4], xmm0
mov eax, dword [0x10540950]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x101d8554]
mov dword [edx + 0xd8], 0x40000000
mov dword [edx + 0x34], 0
movss dword [edx + 0x48], xmm2
movss dword [edx + 0x4c], xmm1
subss xmm1, xmm4
movss dword [edx + 0xc8], xmm0
movd xmm0, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
mov dword [edx + 0xcc], 0x40800000
mov dword [edx + 0xd0], 0x40800000
mov dword [edx + 0xd4], 0
mov dword [edx + 0xf0], 0x3e4ccccd
movss dword [edx + 0x50], xmm3
subss xmm3, xmm5
movss dword [edx + 0xec], xmm0
movss xmm0, dword [esp + 0x2c]
subss xmm2, xmm0
movss dword [edx + 0x3c], xmm0
movss dword [edx + 0x40], xmm4
movss dword [edx + 0x44], xmm5
movss dword [edx + 0xb8], xmm1
movss dword [edx + 0xbc], xmm3
movss dword [edx + 0xb4], xmm2
mov dword [edx + 0xdc], 0x40400000
mov dword [edx + 0xfc], 2
jmp 0x100ee385
mov edx, dword [esp + 0x20]
or dword [edx + 0x34], 0x8300
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, ebx
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe8], xmm0
mov ecx, dword [0x10540980]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esp + 0x44]
mov byte [eax + 0x1c], 1
movss xmm2, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
test ecx, ecx
jne 0x100edfc1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret