Function at 0x100bc070
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
sub esp, 0xf0
mov ecx, dword [0x1013aadc]
or eax, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
or eax, eax
movss dword [ebp - 0x38], xmm0
mov dword [ebp - 8], eax
xorps xmm2, xmm2
movss dword [ebp - 0x34], xmm2
mov dword [ebp - 0x5c], 0
push esi
push edi
movups xmmword [ebp - 0xdc], xmm0
test ecx, ecx
je 0x100bc707
cmp byte [0x1014b624], 0
je 0x100bc707
cmp byte [0x1013aae0], 0
jne 0x100bc0fa
mov eax, dword [0x10226e04]
cmp eax, dword [0x10226e08]
je 0x100bc707
mov dword [0x10226e08], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [0x10226e08]
sub edi, dword [0x10226e04]
sar edi, 5
mov dword [ebp - 0x10], edi
test edi, edi
je 0x100bc707
movss xmm0, dword [ebp - 0x84]
mov edx, edi
mov eax, dword [0x1022622c]
movss dword [ebp - 0x50], xmm0
add eax, 0xffffffc4
movss xmm0, dword [ebp - 0x88]
xor eax, 0xe4f8a357
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x8c]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ebp - 0x90]
movd xmm2, dword [eax + ecx]
mov ecx, edi
mov eax, dword [0x10226008]
movss xmm5, dword [0x1012ce40]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x9c]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0xb4]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0xd0]
cvtdq2ps xmm2, xmm2
shl ecx, 5
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0xd4]
mulss xmm2, dword [eax + 0x20]
mov eax, dword [ebp - 0x94]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0xd8]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0xdc]
movss dword [ebp - 0x54], xmm2
mov dword [ebp - 0x40], eax
movss dword [ebp - 0x24], xmm0
nop dword [eax]
mov esi, dword [0x10226e04]
sub ecx, 0x20
mov dword [ebp - 0x58], edx
dec edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
add esi, ecx
je 0x100bc6ff
mov ecx, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10226008]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10025910
comiss xmm0, dword [0x1014b8ac]
jbe 0x100bc2a7
mov eax, dword [0x10226e08]
lea edi, [esi + 0x20]
mov dword [ebp - 0x58], eax
cmp edi, eax
je 0x100bc29b
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 - 0x58]
jne 0x100bc250
mov edx, dword [ebp - 0xc]
sub dword [0x10226e08], 0x20
jmp 0x100bc6f9
cmp byte [esi + 0x1c], 0
jne 0x100bc6fc
lea eax, [edi - 1]
cmp edx, eax
je 0x100bc2ca
cmp dword [ebp - 0x58], edi
jae 0x100bc6fc
cmp ecx, dword [esi + 0x38]
je 0x100bc6fc
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm2, xmm6
movss xmm4, dword [esi + 8]
subss xmm3, xmm7
subss xmm4, dword [esi + 0x14]
movaps xmm1, xmm2
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.10025940
addss xmm0, xmm5
movaps xmm1, xmm2
movss xmm5, dword [0x1012cf78]
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.10025940
mov ecx, dword [0x1014b778]
movaps xmm1, xmm5
mulss xmm1, xmm2
movaps xmm2, xmm5
mulss xmm2, xmm3
mulss xmm5, xmm4
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm5, xmm0
addss xmm1, xmm6
movss xmm0, dword [esi + 0x14]
addss xmm2, xmm7
addss xmm5, xmm0
test ecx, ecx
jne 0x100bc3f1
mov ecx, dword [0x10225fdc]
push str.sprites_purplelaser1.vmt
movss dword [ebp - 0x24], xmm6
movss dword [ebp - 0x28], xmm7
mov eax, dword [ecx]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x34], xmm2
mov eax, dword [eax + 8]
movss dword [ebp - 0x38], xmm5
call eax
movss xmm0, dword [0x1014b8ac]
mov dx, word [0x1014b80a]
movss dword [ebp - 0x1c], xmm0
movaps xmm0, xmmword [0x1012d240]
movzx ecx, dh
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 8], eax
mov dword [ebp - 0x5c], 0x8300
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x1012cee0]
jmp 0x100bc46a
mov byte [ebp - 0x80], 1
cmp ecx, 1
jne 0x100bc4c3
mov ecx, dword [0x10225fdc]
push str.sprites_physbeam.vmt
movss dword [ebp - 0x24], xmm6
movss dword [ebp - 0x28], xmm7
mov eax, dword [ecx]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x34], xmm2
mov eax, dword [eax + 8]
movss dword [ebp - 0x38], xmm5
call eax
movss xmm0, dword [0x1014b8ac]
mov dx, word [0x1014b80a]
movss dword [ebp - 0x1c], xmm0
movaps xmm0, xmmword [0x1012d210]
mov dword [ebp - 8], eax
movzx eax, dh
movups xmmword [ebp - 0xac], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x1014b968]
mov eax, dword [0x1014b808]
xorps xmm1, xmm1
movzx ecx, al
movss dword [ebp - 0x18], xmm0
shr eax, 8
movzx eax, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov byte [ebp - 0x80], 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x40], 0
movss dword [ebp - 0x14], xmm1
movss dword [ebp - 0x48], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x4c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x50], xmm0
push dword [ebp - 0x80]
mov ecx, dword [0x1022603c]
call dword [0x10226140]
mov edi, eax
test edi, edi
je 0x100bc6e9
mov ecx, dword [0x10226008]
mov edx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov dword [edi + 0xc8], ecx
test edx, edx
js 0x100bc6e9
mov ecx, dword [0x10225fdc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100bc68f
movss xmm0, dword [ebp - 0x14]
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x30], ecx
mov eax, dword [ebp - 8]
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], 0xffffffff
movss dword [edi + 0x158], xmm0
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xf4], ecx
mov ecx, dword [0x10225fdc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movss xmm1, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x1c]
movaps xmm0, xmm1
mov dword [edi + 0x15c], eax
mov eax, dword [0x10226008]
movss xmm3, dword [ebp - 0x38]
movss xmm6, dword [ebp - 0x24]
movss xmm5, dword [ebp - 0x28]
mulss xmm0, dword [eax + 0x10]
movss xmm4, dword [ebp - 0x2c]
movss dword [edi + 0xc4], xmm0
movaps xmm0, xmm2
mov eax, dword [0x10226008]
addss xmm0, dword [eax + 0x10]
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x34], 0
movss dword [edi + 0xf0], xmm1
movss xmm1, dword [ebp - 0x30]
movss dword [edi + 0xc8], xmm0
movss dword [edi + 0xdc], xmm2
movaps xmm2, xmm1
movss dword [edi + 0x48], xmm1
subss xmm2, xmm6
movss dword [edi + 0x50], xmm3
subss xmm3, xmm4
movss dword [edi + 0x3c], xmm6
movss dword [edi + 0x40], xmm5
movss dword [edi + 0x44], xmm4
movss dword [edi + 0xb4], xmm2
movss dword [edi + 0xbc], xmm3
movups xmm0, xmmword [ebp - 0xac]
movups xmmword [edi + 0xcc], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [edi + 0xec], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [edi + 0x4c], xmm0
movaps xmm1, xmm0
subss xmm1, xmm5
movss dword [edi + 0xb8], xmm1
cmp eax, 0xffffffff
jne 0x100bc689
movss xmm0, dword [edi + 0xd8]
comiss xmm0, dword [0x1012cf34]
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm3, xmm3
addss xmm1, xmm2
addss xmm1, xmm3
movaps xmm0, xmm1
jb 0x100bc66c
call fcn.10025940
mulss xmm0, dword [0x1012cef4]
addss xmm0, dword [0x1012d030]
cvttss2si eax, xmm0
jmp 0x100bc689
call fcn.10025940
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x1012cf88]
addsd xmm0, qword [0x1012cfe8]
cvttsd2si eax, xmm0
mov dword [edi + 0xfc], eax
movd xmm0, dword [ebp - 0x40]
mov eax, dword [ebp - 0x5c]
or dword [edi + 0x34], eax
cvtdq2ps xmm0, xmm0
push edi
movss dword [edi + 0xf8], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [edi + 0xf4], xmm0
movss xmm0, dword [ebp - 0x48]
movss dword [edi + 0xe0], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [edi + 0xe4], xmm0
movss xmm0, dword [ebp - 0x50]
movss dword [edi + 0xe8], xmm0
mov ecx, dword [0x1022603c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [esi + 0x1c], 1
mov edx, dword [ebp - 0xc]
movss xmm5, dword [0x1012ce40]
movss xmm2, dword [ebp - 0x54]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
test edx, edx
jne 0x100bc1f0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret