Function at 0x100a8fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x1019c020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x74]
push 0x40
mov ebx, ecx
mov dword [ebp - 0xc8], edi
push edi
xor esi, esi
mov dword [ebp - 0xb8], ebx
push eax
mov dword [ebp - 0xcc], esi
call fcn.1012df50
movss xmm0, dword [ebx + 0x658c]
add esp, 0xc
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x10191fb0]
cvttsd2si ecx, xmm0
cmp ecx, 0xa
jge 0x100a9015
mov dword [ebp - 0x94], 0x96
jmp 0x100a9039
cmp ecx, 0xc
jle 0x100a9026
mov dword [ebp - 0x94], 0x14
jmp 0x100a9039
mov eax, 0xe
sub eax, ecx
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [ebp - 0x94], ecx
movss xmm0, dword [ebx + 0x6588]
ucomiss xmm0, dword [0x10191ddc]
lahf
test ah, 0x44
jnp 0x100a9058
mov dword [ebp - 0x94], 0x50
movzx eax, word [ebx + 0x66b4]
sub eax, 0xe
mov dword [ebp - 0xbc], eax
cmp eax, 0xe
jle 0x100a94f8
movzx eax, word [ebx + 0x66b6]
mov edx, 0x10
mov ecx, dword [ebp - 0xbc]
mov esi, 0x40
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], esi
nop word [eax + eax]
mov edi, 0xa
mov dword [ebp - 0xb4], edi
cmp eax, edi
jbe 0x100a94c8
mov eax, dword [ebx + 0x66e0]
movzx ecx, word [ebx + 0x66bc]
mov dword [ebp - 0xa0], ecx
lea ecx, [edx - 2]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0x65b0]
mov dword [ebp - 0x78], eax
lea eax, [esi - 8]
and eax, 0x1c
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xa4], eax
movzx eax, word [ebx + 0x66c0]
mov ebx, dword [ebp - 0xa0]
mov ecx, ebx
sar dword [ebp - 0x80], cl
mov ecx, dword [ebp - 0x80]
imul ecx, eax
mov dword [ebp - 0x9c], 0x14
mov dword [ebp - 0x80], ecx
lea ecx, [esi - 4]
and ecx, 0x1c
mov dword [ebp - 0xa8], ecx
lea ecx, [edx - 1]
mov dword [ebp - 0x84], ecx
inc edx
mov ecx, ebx
sar dword [ebp - 0x84], cl
mov ecx, dword [ebp - 0x84]
imul ecx, eax
mov dword [ebp - 0x84], ecx
mov ecx, esi
and ecx, 0x1c
mov dword [ebp - 0xac], ecx
mov ecx, ebx
sar dword [ebp - 0x88], cl
mov ecx, dword [ebp - 0x88]
imul ecx, eax
mov dword [ebp - 0x88], ecx
lea ecx, [esi + 4]
and ecx, 0x1c
mov dword [ebp - 0xb0], ecx
mov ecx, ebx
sar edx, cl
imul edx, eax
mov eax, 0xffffffee
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xd4], edx
mov ecx, dword [ebp - 0xa4]
add eax, 0xfffffffe
mov edx, dword [ebp - 0x78]
and eax, 2
add ecx, eax
mov dword [ebp - 0xd0], eax
shr edx, cl
mov esi, edi
mov eax, dword [ebp - 0x80]
and edx, 3
mov ecx, ebx
mov ebx, 0xfffffffe
sub ebx, dword [ebp - 0x9c]
sar esi, cl
and ebx, 2
mov ecx, dword [ebp - 0x7c]
add eax, esi
mov dword [ebp - 0x90], esi
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov dword [ebp + edx*4 - 0x24], eax
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x98]
add edi, 0xfffffffe
lea ecx, [ecx + ebx]
and edi, 2
shr edx, cl
mov ecx, dword [ebp - 0xa0]
and edx, 3
sar eax, cl
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
add eax, dword [ebp - 0x80]
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp + edx*4 - 0x24], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x84]
lea ecx, [ecx + edi]
add eax, esi
mov esi, dword [ebp - 0x98]
shr edx, cl
and esi, 2
mov ecx, dword [ebp - 0x7c]
and edx, 3
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp + edx*4 - 0x24], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x84]
lea ecx, [ecx + esi]
shr edx, cl
mov ecx, dword [ebp - 0x7c]
and edx, 3
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xd0]
mov dword [ebp + edx*4 - 0x24], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x88]
shr edx, cl
mov ecx, dword [ebp - 0x7c]
and edx, 3
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xac]
mov dword [ebp + edx*4 - 0x14], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
lea ecx, [ecx + ebx]
mov ebx, dword [ebp - 0x8c]
shr edx, cl
and edx, 3
add eax, ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + edx*4 - 0x14], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x90]
lea ecx, [ecx + edi]
mov edi, dword [ebp - 0xd4]
shr edx, cl
add eax, edi
mov ecx, dword [ebp - 0x7c]
and edx, 3
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + edx*4 - 0x14], eax
lea eax, [edi + ebx]
mov edx, dword [ebp - 0x78]
lea ecx, [ecx + esi]
shr edx, cl
mov ecx, dword [ebp - 0x7c]
and edx, 3
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
mov dword [ebp + edx*4 - 0x14], eax
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp + eax*4 - 0x24]
cmp ecx, 0x96
jl 0x100a9479
cmp ecx, 0x5dc
jg 0x100a9479
inc eax
cmp eax, 8
jl 0x100a9320
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x24]
sub eax, dword [ebp + ecx*4 - 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x100a9479
inc ecx
cmp ecx, 4
jl 0x100a9344
lea eax, [ebp - 0xe0]
xor ebx, ebx
mov dword [ebp - 0x8c], eax
lea esi, [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x90], eax
nop word [eax + eax]
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, edi
sub eax, dword [esi]
add edi, 2
shl eax, 0xa
cdq
idiv dword [esi]
sar ecx, 1
add esi, 8
add ecx, ebx
mov dword [ebp + ecx*4 - 0x34], eax
cmp edi, 4
jl 0x100a9382
push dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
mov edx, edi
mov ecx, dword [ebp - 0xb8]
call fcn.100a8e90
mov ecx, dword [ebp - 0x8c]
add ebx, 2
add edi, 8
add esp, 4
mov dword [ebp - 0x90], edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x8c], ecx
cmp ebx, 4
jl 0x100a9380
mov eax, dword [ebp - 0xe0]
mov ecx, eax
mov edx, dword [ebp - 0xdc]
or ecx, edx
cmp ecx, 1
jg 0x100a9479
test eax, eax
je 0x100a9421
mov eax, dword [ebp - 0x34]
add eax, 0x400
imul eax, dword [ebp - 0x24]
sar eax, 0xa
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
add eax, 0x400
imul eax, dword [ebp - 0x1c]
sar eax, 0xa
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100a9449
mov eax, dword [ebp - 0x2c]
add eax, 0x400
imul eax, dword [ebp - 0x14]
sar eax, 0xa
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
add eax, 0x400
imul eax, dword [ebp - 0xc]
sar eax, 0xa
mov dword [ebp - 8], eax
movups xmm1, xmmword [ebp - 0x24]
mov eax, ecx
shl eax, 5
inc dword [ebp + ecx*4 - 0xcc]
movups xmm0, xmmword [ebp + eax - 0x74]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0x74], xmm1
movups xmm0, xmmword [ebp + eax - 0x64]
movups xmm1, xmmword [ebp - 0x14]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0x64], xmm1
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x98]
add edi, 2
add dword [ebp - 0x9c], 4
sub eax, 4
mov ebx, dword [ebp - 0xa0]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x98], eax
cmp edi, dword [ebp - 0xd8]
jl 0x100a9182
mov ebx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xbc]
add edx, 4
add esi, 0x10
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], edx
lea eax, [edx - 2]
cmp eax, ecx
movzx eax, word [ebx + 0x66b6]
jl 0x100a90a0
mov edi, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xcc]
mov eax, edi
or eax, esi
je 0x100a958f
movss xmm2, dword [0x10191ea8]
xor ecx, ecx
imul eax, esi, 0xc8
movaps xmm0, xmm2
cmp eax, edi
setl cl
shl ecx, 5
mov eax, dword [ebp + ecx - 0x64]
add eax, dword [ebp + ecx - 0x74]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [ebp + ecx - 0x70]
add eax, dword [ebp + ecx - 0x60]
divss xmm0, xmm1
movaps xmm1, xmm2
movss dword [ebx + 0xe784], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp + ecx - 0x6c]
add eax, dword [ebp + ecx - 0x5c]
divss xmm1, xmm0
movd xmm0, eax
mov eax, dword [ebp + ecx - 0x68]
add eax, dword [ebp + ecx - 0x58]
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xe788], xmm1
movaps xmm1, xmm2
divss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xe78c], xmm1
divss xmm2, xmm0
movss dword [ebx + 0xe790], xmm2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b4a2
mov esp, ebp
pop ebp
ret