Function at 0x1009b140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100bf4c8], 0
mov eax, dword [0x1013e494]
push ebx
push esi
push edi
movss xmm0, dword [eax]
mulss xmm0, dword [0x100c8b68]
movss dword [ebp - 8], xmm0
je 0x1009b4aa
mov eax, dword [0x1013e4a4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1009b4aa
movss xmm1, dword [0x100c6cb4]
xor ebx, ebx
mulss xmm1, dword [0x100b3bb0]
movss dword [ebp - 0x20], xmm1
test ecx, ecx
jle 0x1009b4aa
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [eax]
add esi, edi
cmp dword [esi + 0x34], 0xfffffffe
jne 0x1009b49a
mov ecx, dword [esi]
test ecx, ecx
je 0x1009b49a
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 8]
call eax
mov edx, dword [eax + 0x14]
cmp edx, 9
je 0x1009b1dc
cmp edx, 0x62
je 0x1009b1dc
cmp edx, 0x86
jne 0x1009b25f
cmp byte [0x100c934c], 0
movss xmm4, dword [0x100b3b9c]
movss xmm5, dword [0x100b3bb0]
je 0x1009b26f
mov eax, dword [0x100c93f0]
movss xmm3, dword [0x100c9494]
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
jmp 0x1009b26f
movss xmm4, dword [0x100b3b9c]
movss xmm5, dword [0x100b3bb0]
cmp edx, 0x1d
je 0x1009b279
cmp edx, 0x6c
jne 0x1009b2ea
cmp byte [0x100c954c], 0
je 0x1009b2ea
mov eax, dword [0x100c9678]
movss xmm3, dword [0x100c97d8]
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 + 0x260]
call eax
test al, al
je 0x1009b495
mov ecx, dword [esi]
test ecx, ecx
je 0x1009b495
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x1009b495
mov edi, dword [esi]
mov eax, dword [0x1013e5f0]
cmp byte [eax + edi], 0
jne 0x1009b492
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x1013e62c]
add edx, 0xffffffd6
xor edx, 0xd2ca0f94
lea eax, [eax*4 + 0x10140f74]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100bf4c8]
mov ecx, dword [edx + edi]
cmp ecx, dword [eax + edx]
jne 0x1009b375
mov ecx, dword [0x1013e518]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x1009b375
cmp byte [0x100c5968], al
jmp 0x1009b37c
cmp byte [0x100c6b6c], 0
je 0x1009b492
mov eax, dword [0x100c6c10]
movss xmm0, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.1001a340
mulss xmm0, dword [0x100b3d4c]
addss xmm0, dword [0x100b3db0]
call fcn.10028e20
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [0x100b3cdc]
call fcn.1001a340
mulss xmm0, dword [0x100b3d4c]
addss xmm0, dword [0x100b3db0]
call fcn.10028e20
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [0x100b3d1c]
call fcn.1001a340
mulss xmm0, dword [0x100b3d4c]
addss xmm0, dword [0x100b3db0]
call fcn.10028e20
mov word [esi + 0x24], 1
movaps xmm1, xmm0
mov byte [esi + 0x26], 0
mov eax, dword [0x100c6af0]
mov ecx, dword [0x100c6af4]
cmp eax, ecx
je 0x1009b43c
cmp dword [eax], 3
je 0x1009b42c
add eax, 4
cmp eax, ecx
jne 0x1009b420
cmp eax, ecx
je 0x1009b43c
movss xmm2, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0x18]
jmp 0x1009b45e
movzx eax, byte [ebp - 0xa]
movd xmm1, eax
mov eax, dword [ebp - 0x10]
movzx ecx, ah
movzx eax, al
cvtdq2ps xmm1, xmm1
movd xmm2, ecx
movd xmm3, eax
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
movss xmm0, dword [0x100b3b9c]
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 [0x1013e4a4]
inc ebx
add edi, 0x38
mov dword [ebp - 4], edi
cmp ebx, dword [eax + 0xc]
jl 0x1009b1a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret