Function at 0x100c1160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x101afb28], 0
mov eax, dword [0x101d01d4]
push ebx
push esi
push edi
movss xmm0, dword [eax]
mulss xmm0, dword [0x101ba468]
movss dword [ebp - 8], xmm0
je 0x100c154a
mov eax, dword [0x101d01e4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100c154a
movss xmm1, dword [0x101b8258]
xor ebx, ebx
mulss xmm1, dword [0x100dac08]
movss dword [ebp - 0x20], xmm1
test ecx, ecx
jle 0x100c154a
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [eax]
add esi, edi
cmp dword [esi + 0x34], 0xfffffffe
jne 0x100c153a
mov ecx, dword [esi]
test ecx, ecx
je 0x100c153a
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 8]
call eax
mov edx, dword [eax + 0x14]
cmp edx, 9
je 0x100c11fc
cmp edx, 0x62
je 0x100c11fc
cmp edx, 0x86
jne 0x100c1283
cmp byte [0x101baf34], 0
movss xmm4, dword [0x100dac00]
movss xmm5, dword [0x100dac08]
je 0x100c1293
mov eax, dword [0x101bafd8]
movzx ecx, al
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shr eax, 0x18
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm4
mulss xmm0, xmm4
mulss xmm1, xmm4
movss dword [esi + 0xc], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 4], xmm2
mulss xmm0, xmm5
movss dword [esi + 8], xmm1
mov dword [esi + 0x1c], 0x3f800000
movss dword [esi + 0x10], xmm0
jmp 0x100c1293
movss xmm4, dword [0x100dac00]
movss xmm5, dword [0x100dac08]
cmp edx, 0x1d
je 0x100c129d
cmp edx, 0x6c
jne 0x100c130e
cmp byte [0x101bb1bc], 0
je 0x100c130e
mov eax, dword [0x101bb260]
movss xmm3, dword [0x101bb3c0]
movzx ecx, al
mulss xmm3, xmm5
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx ecx, cl
movzx eax, al
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
movd xmm0, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm4
mulss xmm1, xmm4
mulss xmm0, xmm4
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0xc], xmm0
movss dword [esi + 0x10], xmm3
mov dword [esi + 0x1c], 0x3f800000
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100c139b
cmp byte [0x101ba9f0], 0
je 0x100c139b
mov eax, dword [0x101baba4]
movss xmm3, dword [0x101bad04]
movss xmm4, dword [0x100dac00]
mulss xmm3, dword [0x100dac08]
movzx ecx, al
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx ecx, cl
movzx eax, al
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
movd xmm0, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm4
mulss xmm1, xmm4
mulss xmm0, xmm4
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0xc], xmm0
movss dword [esi + 0x10], xmm3
mov dword [esi + 0x1c], 0x3f800000
mov ecx, dword [esi]
test ecx, ecx
je 0x100c1535
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c1535
mov edi, dword [esi]
mov eax, dword [0x101d034c]
cmp byte [eax + edi], 0
jne 0x100c1532
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x101d038c]
add edx, 0xffffffd6
xor edx, 0x197e095c
lea eax, [eax*4 + 0x101d4f64]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x101afb28]
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x100c140e
mov ecx, dword [0x101d0270]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100c1532
cmp byte [0x101b8110], 0
je 0x100c1532
mov eax, dword [0x101b81b4]
movss xmm0, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.10027c50
mulss xmm0, dword [0x100dad80]
addss xmm0, dword [0x100daddc]
call fcn.10027bf0
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [0x100dad0c]
call fcn.10027c50
mulss xmm0, dword [0x100dad80]
addss xmm0, dword [0x100daddc]
call fcn.10027bf0
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [0x100dad54]
call fcn.10027c50
mulss xmm0, dword [0x100dad80]
addss xmm0, dword [0x100daddc]
call fcn.10027bf0
mov word [esi + 0x24], 1
movaps xmm1, xmm0
mov byte [esi + 0x26], 0
mov eax, dword [0x101b8094]
mov ecx, dword [0x101b8098]
cmp eax, ecx
je 0x100c14dc
nop dword [eax]
cmp dword [eax], 0
je 0x100c14cc
add eax, 4
cmp eax, ecx
jne 0x100c14c0
cmp eax, ecx
je 0x100c14dc
movss xmm2, dword [ebp - 0xc]
movss xmm3, dword [ebp - 0x10]
jmp 0x100c14fe
movzx eax, byte [ebp - 0x12]
movd xmm1, eax
mov eax, dword [ebp - 0x18]
movzx ecx, ah
movzx eax, al
cvtdq2ps xmm1, xmm1
movd xmm2, ecx
movd xmm3, eax
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
movss xmm0, dword [0x100dac00]
mov eax, dword [ebp - 0x1c]
mulss xmm3, xmm0
mulss xmm2, xmm0
mulss xmm1, xmm0
movss dword [esi + 4], xmm3
movss dword [esi + 8], xmm2
movss dword [esi + 0xc], xmm1
movss xmm0, dword [eax]
mulss xmm0, dword [ebp - 0x20]
movss dword [esi + 0x10], xmm0
mov edi, dword [ebp - 4]
mov eax, dword [0x101d01e4]
inc ebx
add edi, 0x38
mov dword [ebp - 4], edi
cmp ebx, dword [eax + 0xc]
jl 0x100c11c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret