INT64 __fastcall RtlExtendCorrelationVector(BYTE *a1){
int CorrelationVectorBufferLength;
__int64 v3;
unsigned int v4;
if( (int)RtlpGetCorrelationVectorEndPosition(a1) < 0 )
return(unsigned int)-2147483643;
CorrelationVectorBufferLength = RtlpGetCorrelationVectorBufferLength(a1);
if( (int)v3 >= CorrelationVectorBufferLength - 3 )
{
return(unsigned int)-2147483643;
}
else
{
*(_WORD *)&a1[v3 + 1] = 12334;
a1[v3 + 3] = v4;
}
return v4;
}