Function at 0x1009bdd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100edf38], 0
push ebx
push esi
push edi
je 0x1009c0cb
mov ecx, dword [0x100e7f34]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1009c0cb
movzx eax, byte [0x100c2c07]
xor ebx, ebx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100b4250]
movss dword [ebp - 0xc], xmm0
test edx, edx
jle 0x1009c0cb
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ecx]
add esi, edi
cmp dword [esi + 0x34], 0xfffffffe
jne 0x1009c0bb
mov eax, dword [esi]
test eax, eax
je 0x1009c0bb
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov eax, dword [eax + 0x14]
cmp eax, 9
je 0x1009be5b
cmp eax, 0x62
je 0x1009be5b
cmp eax, 0x86
jne 0x1009bf00
cmp byte [0x100c44c0], 0
je 0x1009bf00
push 1
push dword [0x100c457c]
push dword [0x100c4578]
call fcn.100a1a90
cmp eax, dword [0x100c457c]
je 0x1009bf00
mov eax, dword [0x100c46cc]
movzx edx, byte [0x100c4613]
movss xmm3, dword [0x100b4250]
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 [0x100b425c]
mulss xmm1, 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 0x1009bfb5
push 1
push dword [0x100c42d0]
push dword [0x100c42cc]
call fcn.100a1a90
cmp eax, dword [0x100c42d0]
je 0x1009bfb5
cmp byte [0x100c4214], 0
je 0x1009bfb5
mov eax, dword [0x100c4364]
movzx edx, byte [0x100c4367]
movss xmm3, dword [0x100b4250]
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 0x1009c0b5
mov ecx, dword [esi]
test ecx, ecx
je 0x1009c0b5
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x1009c0b5
mov edi, dword [esi]
mov eax, dword [0x100e806c]
cmp byte [eax + edi], 0
jne 0x1009c0b2
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x100e80c8]
add edx, 0xffffffd5
xor edx, 0x626b852e
lea eax, [eax*4 + 0x100eba3c]
mov dword [ebp - 8], eax
mov eax, dword [0x100edf38]
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x1009c040
mov ecx, dword [0x100e7fac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x1009c040
cmp byte [0x100c1eb4], al
jmp 0x1009c047
cmp byte [0x100c2b5c], 0
je 0x1009c0b2
mov eax, dword [0x100c2c04]
movss xmm3, dword [0x100b4250]
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 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 edi, dword [ebp - 4]
mov ecx, dword [0x100e7f34]
inc ebx
add edi, 0x38
mov dword [ebp - 4], edi
cmp ebx, dword [ecx + 0xc]
jl 0x1009be21
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret