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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0x10101380]
xor eax, esp
mov dword [esp + 0xcc], eax
cmp dword [0x102f7cd8], 0
xorps xmm0, xmm0
push esi
push edi
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov byte [esp + 0x98], 1
mov dword [esp + 0xa0], 0
je 0x100bd93c
push 0
push dword [0x10301b00]
push dword [0x10301afc]
call fcn.100c2a00
cmp eax, dword [0x10301b00]
je 0x100bd93c
cmp byte [0x102f7cdc], 0
jne 0x100bd46c
mov eax, dword [0x10312bb4]
cmp eax, dword [0x10312bb8]
je 0x100bd93c
mov dword [0x10312bb8], eax
pop edi
pop esi
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100c2c0c
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10312bb8]
mov edi, edx
sub edi, dword [0x10312bb4]
sar edi, 5
mov dword [esp + 8], edx
mov dword [esp + 0x14], edi
test edi, edi
je 0x100bd93c
mov ecx, dword [0x10312114]
mov esi, edi
mov eax, dword [0x102f7cd8]
add ecx, 0xffffffbe
movss xmm2, dword [0x10301dbc]
xor ecx, 0xc274d83f
shl esi, 5
movd xmm3, dword [ecx + eax]
mov ecx, edi
mov eax, dword [0x10311ef4]
cvtdq2ps xmm3, xmm3
mulss xmm3, dword [eax + 0x20]
movss dword [esp + 0x20], xmm3
sub esi, 0x20
mov dword [esp + 0xc], ecx
dec ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ecx
add esi, dword [0x10312bb4]
je 0x100bd930
movd xmm1, dword [esi + 0x18]
movaps xmm0, xmm3
mov eax, dword [0x10311ef4]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10027df0
comiss xmm0, xmm2
jbe 0x100bd581
lea edi, [esi + 0x20]
cmp edi, edx
je 0x100bd56f
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
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 [esp + 8]
jne 0x100bd514
mov edx, dword [0x10312bb8]
movss xmm2, dword [0x10301dbc]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sub edx, 0x20
mov dword [0x10312bb8], edx
jmp 0x100bd92c
cmp byte [esi + 0x1c], 0
jne 0x100bd930
lea eax, [edi - 1]
cmp ecx, eax
je 0x100bd5a8
cmp dword [esp + 0xc], edi
jae 0x100bd930
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x38]
je 0x100bd930
movss xmm3, dword [esi + 0xc]
movss dword [esp + 0xc8], xmm3
movss xmm2, dword [esi + 0x10]
movss dword [esp + 0xcc], xmm2
movss xmm0, dword [esi + 0x14]
movss dword [esp + 0xd0], xmm0
movss xmm5, dword [esi]
movaps xmm1, xmm5
movss dword [esp + 8], xmm3
subss xmm1, xmm3
movss dword [esp + 0x18], xmm2
subss xmm5, xmm3
movss dword [esp + 0x1c], xmm0
movss xmm3, dword [esi + 4]
movaps xmm7, xmm3
subss xmm3, xmm2
subss xmm7, xmm2
movss xmm2, dword [esi + 8]
movaps xmm6, xmm2
movss dword [esp + 0xc], xmm1
subss xmm6, xmm0
subss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, xmm7
addss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, xmm6
addss xmm0, xmm1
call fcn.10027e30
addss xmm0, dword [0x100f506c]
movss xmm4, dword [0x100f51a8]
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm2, xmm2
addss xmm3, xmm5
divss xmm4, xmm0
addss xmm3, xmm2
movaps xmm0, xmm3
call fcn.10027e30
movss xmm5, dword [esp + 8]
movaps xmm2, xmm4
mulss xmm2, dword [esp + 0xc]
movaps xmm1, xmm4
mov edx, dword [0x10301ba4]
movss xmm3, dword [esp + 0x18]
mulss xmm1, xmm7
mulss xmm4, xmm6
mulss xmm2, xmm0
mulss xmm1, xmm0
mulss xmm4, xmm0
addss xmm2, xmm5
movss xmm0, dword [esp + 0x1c]
addss xmm1, xmm3
movss dword [esp + 0x48], xmm5
movss dword [esp + 0x4c], xmm3
addss xmm4, xmm0
movss dword [esp + 0xbc], xmm2
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0xc0], xmm1
movss dword [esp + 0x40], xmm1
movss dword [esp + 0xc4], xmm4
movss dword [esp + 0x44], xmm4
movss dword [esp + 0x50], xmm0
test edx, edx
jne 0x100bd746
mov ecx, dword [0x10311ed0]
push str.sprites_white.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movups xmm1, xmmword [0x100f5480]
mov dword [esp + 0x58], str.sprites_purplelaser1.vmt
mov dword [esp + 0x7c], 0x437f0000
movups xmmword [esp + 0x6c], xmm1
mov dword [esp + 0x80], 0x3f000000
mov dword [esp + 0x88], 0
mov dword [esp + 0xa0], 0
jmp 0x100bd809
cmp edx, 1
jne 0x100bd7a6
mov dword [esp + 0x58], str.sprites_physbeam.vmt
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x437f0000
mov dword [esp + 0x80], 0x3e4ccccd
mov dword [esp + 0x88], 0
mov dword [esp + 0x6c], 0x40000000
mov dword [esp + 0x70], 0x40000000
mov dword [esp + 0xa0], 0
jmp 0x100bd813
mov ecx, dword [0x10311ed0]
mov dword [esp + 0x58], str.sprites_purplelaser1.vmt
push str.sprites_purplelaser1.vmt
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x43340000
mov dword [esp + 0x80], 0x3e4ccccd
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x6c], 0x40c00000
mov dword [esp + 0x70], 0x40c00000
mov dword [esp + 0xa0], 0x8300
mov edx, dword [0x10301ba4]
mov dword [esp + 0x54], eax
movss xmm0, dword [0x10301dbc]
mov dword [esp + 0x64], 0
movss dword [esp + 0x68], xmm0
mov dword [esp + 0x9c], 2
mov byte [esp + 0x98], 1
mov dword [esp + 0x84], 0
cmp byte [esi + 0x1d], 0
jne 0x100bd894
mov eax, dword [0x10301c44]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm2, eax
movzx eax, byte [0x10301c46]
cvtdq2ps xmm2, xmm2
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movss dword [esp + 0x8c], xmm1
movss dword [esp + 0x90], xmm2
movss dword [esp + 0x94], xmm3
jmp 0x100bd8af
movss xmm3, dword [esp + 0x94]
movss xmm2, dword [esp + 0x90]
movss xmm1, dword [esp + 0x8c]
cmp edx, 3
je 0x100bd8dc
mov ecx, dword [0x10311f24]
lea edx, [esp + 0x28]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, eax
test edx, edx
je 0x100bd910
mov ecx, dword [0x10311f24]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
jmp 0x100bd910
mov ecx, dword [0x10311ed4]
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, [esp + 0xd0]
push eax
lea eax, [esp + 0xe0]
push eax
mov eax, dword [edx + 0x14]
call eax
movss xmm3, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x1c], 1
mov edx, dword [0x10312bb8]
movss xmm2, dword [0x10301dbc]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x24]
test ecx, ecx
jne 0x100bd4c8
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
xor ecx, esp
call fcn.100c2c0c
mov esp, ebp
pop ebp
ret