Function at 0x100bf080
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x100e7008]
xor eax, esp
mov dword [esp + 0xa8], eax
mov edx, dword [0x101afb28]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov byte [esp + 0x84], 1
mov dword [esp + 0x8c], 0
push ebx
push esi
push edi
movups xmmword [esp + 0x34], xmm0
test edx, edx
je 0x100bf490
cmp byte [0x101bc090], 0
je 0x100bf490
mov eax, dword [0x101bc144]
mov ecx, dword [0x101bc148]
cmp eax, ecx
je 0x100bf490
nop word [eax + eax]
cmp dword [eax], 1
je 0x100bf171
add eax, 4
cmp eax, ecx
jne 0x100bf150
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100c4f7f
mov esp, ebp
pop ebp
ret
cmp eax, ecx
je 0x100bf490
cmp byte [0x101afb2c], 0
jne 0x100bf1ad
mov eax, dword [0x101d07cc]
cmp eax, dword [0x101d07d0]
je 0x100bf490
mov dword [0x101d07d0], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100c4f7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x101d07d0]
sub ecx, dword [0x101d07cc]
sar ecx, 5
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x100bf490
mov eax, dword [0x101d03d4]
mov ebx, ecx
add eax, 0xffffffc4
xor eax, 0x197e096e
movd xmm2, dword [eax + edx]
mov eax, dword [0x101d01d4]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [esp + 0x14], xmm2
test ecx, ecx
je 0x100bf490
mov edx, ecx
shl edx, 5
nop dword [eax]
mov esi, dword [0x101d07cc]
sub edx, 0x20
mov dword [esp + 0xc], ebx
dec ebx
mov dword [esp + 0x10], edx
add esi, edx
je 0x100bf484
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x101d01d4]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10027bd0
comiss xmm0, dword [0x101bc3dc]
jbe 0x100bf29f
mov edi, dword [0x101d07d0]
lea edx, [esi + 0x20]
cmp edx, edi
je 0x100bf293
lea ecx, [esi + 0x14]
mov eax, dword [edx]
lea ecx, [ecx + 0x20]
mov dword [ecx - 0x34], eax
add edx, 0x20
mov eax, dword [ecx - 0x10]
mov dword [ecx - 0x30], eax
mov eax, dword [ecx - 0xc]
mov dword [ecx - 0x2c], eax
mov eax, dword [ecx - 8]
mov dword [ecx - 0x28], eax
mov eax, dword [ecx - 4]
mov dword [ecx - 0x24], eax
mov eax, dword [ecx]
mov dword [ecx - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ecx - 0x1c], eax
movzx eax, byte [ecx + 8]
mov byte [ecx - 0x18], al
movzx eax, byte [ecx + 9]
mov byte [ecx - 0x17], al
cmp edx, edi
jne 0x100bf253
sub dword [0x101d07d0], 0x20
jmp 0x100bf480
cmp byte [esi + 0x1c], 0
jne 0x100bf484
lea eax, [ecx - 1]
cmp ebx, eax
je 0x100bf2c3
cmp dword [esp + 0xc], ecx
jae 0x100bf484
cmp edi, dword [esi + 0x38]
je 0x100bf484
movss xmm5, dword [esi]
movss xmm4, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm5, xmm6
movss xmm3, dword [esi + 8]
subss xmm4, xmm7
subss xmm3, dword [esi + 0x14]
movaps xmm0, xmm5
movaps xmm1, xmm4
mulss xmm0, xmm5
mulss xmm1, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.10027c60
movaps xmm2, xmm0
movaps xmm1, xmm5
addss xmm2, dword [0x100dabe8]
movaps xmm0, xmm4
mulss xmm1, xmm5
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.10027c60
divss xmm5, xmm2
mov ecx, dword [0x101d01ac]
mov eax, dword [0x101bc27c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
push str.sprites_purplelaser1.vmt
mov dword [esp + 0x24], 0
mov dword [esp + 0x54], str.sprites_purplelaser1.vmt
mov eax, dword [eax + 8]
divss xmm4, xmm2
divss xmm3, xmm2
movss xmm1, dword [esi + 0x14]
mulss xmm5, xmm0
mulss xmm4, xmm0
mulss xmm3, xmm0
addss xmm5, xmm6
addss xmm4, xmm7
movss dword [esp + 0x38], xmm6
movss dword [esp + 0x3c], xmm7
addss xmm3, xmm1
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x44], xmm5
movss dword [esp + 0x48], xmm4
movss dword [esp + 0x4c], xmm3
call eax
movaps xmm0, xmmword [0x100daef0]
mov dword [esp + 0x4c], eax
movzx eax, byte [esp + 0xf]
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x40000000
movd xmm0, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm0, xmm0
movzx ecx, al
movzx eax, ah
mov dword [esp + 0x78], 0x3e4ccccd
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
movss dword [esp + 0x74], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x94], 2
mov byte [esp + 0x90], 1
mov dword [esp + 0x98], 0x8300
movss dword [esp + 0x84], xmm0
movd xmm0, eax
movzx eax, byte [esp + 0xe]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x88], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0x20]
movss dword [esp + 0x8c], xmm0
call fcn.1008e020
test eax, eax
je 0x100bf47a
mov ecx, dword [0x101d0204]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov byte [esi + 0x1c], 1
movss xmm2, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test ebx, ebx
jne 0x100bf200
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100c4f7f
mov esp, ebp
pop ebp
ret