Function at 0x1009ec30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100bf2a8], 0
push ebx
push esi
push edi
je 0x1009ef8e
mov ecx, dword [0x100fefec]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1009ef8e
movzx eax, byte [0x100c4d9f]
xor ebx, ebx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100b4f78]
movss dword [ebp - 0xc], xmm0
test edx, edx
jle 0x1009ef8e
xor edx, edx
mov dword [ebp - 4], edx
mov esi, dword [ecx]
add esi, edx
cmp dword [esi + 0x34], 0xfffffffe
jne 0x1009ef7e
mov eax, dword [esi]
test eax, eax
je 0x1009ef7e
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov edi, dword [eax + 0x14]
cmp edi, 9
je 0x1009ecbc
cmp edi, 0x62
je 0x1009ecbc
cmp edi, 0x86
jne 0x1009ed44
cmp byte [0x100c63d0], 0
movss xmm3, dword [0x100b4f78]
je 0x1009ed4c
mov eax, dword [0x100c6474]
movzx edx, byte [0x100c6477]
movzx ecx, al
mov dword [ebp - 8], eax
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx eax, al
movzx ecx, cl
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movd xmm1, ecx
mulss xmm0, xmm3
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xc], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm3
mulss xmm0, dword [0x100b4f84]
mulss xmm1, xmm3
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x1c], 0x3f800000
jmp 0x1009ed4c
movss xmm3, dword [0x100b4f78]
cmp edi, 0x6c
jne 0x1009edcb
cmp byte [0x100c683c], 0
je 0x1009edcb
mov eax, dword [0x100c68e0]
movzx edx, byte [0x100c68e3]
movzx ecx, al
mov dword [ebp - 8], eax
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx eax, al
movzx ecx, cl
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movd xmm1, ecx
mulss xmm0, xmm3
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xc], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm3
mulss xmm1, xmm3
mulss xmm0, xmm3
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x1c], 0x3f800000
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x1009ee73
push 3
push dword [0x100c6158]
push dword [0x100c6154]
call fcn.100a36c0
cmp eax, dword [0x100c6158]
je 0x1009ee73
mov eax, dword [0x100c61ec]
movzx edx, byte [0x100c61ef]
movss xmm3, dword [0x100b4f78]
movzx ecx, al
mov dword [ebp - 8], eax
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx eax, al
movzx ecx, cl
cvtdq2ps xmm2, xmm2
mov dword [esi + 0x1c], 0x3f800000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movd xmm1, ecx
mulss xmm0, xmm3
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xc], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm3
mulss xmm1, xmm3
mulss xmm0, xmm3
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
movss dword [esi + 0x10], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x1009ef75
mov ecx, dword [esi]
test ecx, ecx
je 0x1009ef75
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x1009ef75
mov edi, dword [esi]
mov eax, dword [0x100ff11c]
cmp byte [eax + edi], 0
jne 0x1009ef75
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x100ff184]
add edx, 0xffffffd6
xor edx, 0x7f68566f
lea eax, [eax*4 + 0x10101fe4]
mov dword [ebp - 8], eax
mov eax, dword [0x100bf2a8]
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x1009eefe
mov ecx, dword [0x100ff054]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x1009eefe
cmp byte [0x100c3cc8], al
jmp 0x1009ef05
cmp byte [0x100c4c70], 0
je 0x1009ef75
mov eax, dword [0x100c4d9c]
movss xmm3, dword [0x100b4f78]
mov word [esi + 0x24], 1
mov cl, byte [0x100c4cf8]
mov byte [esi + 0x26], cl
movzx ecx, al
movd xmm2, ecx
mov ecx, eax
shr ecx, 8
shr eax, 0x10
movzx eax, al
movzx ecx, cl
cvtdq2ps xmm2, xmm2
movd xmm0, eax
mov eax, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm3
mulss xmm2, xmm3
mulss xmm1, xmm3
movss dword [esi + 0xc], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
mulss xmm0, dword [eax]
movss dword [esi + 0x10], xmm0
mov edx, dword [ebp - 4]
mov ecx, dword [0x100fefec]
inc ebx
add edx, 0x38
mov dword [ebp - 4], edx
cmp ebx, dword [ecx + 0xc]
jl 0x1009ec81
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret