RtlIncrementCorrelationVector

NTSTATUS __stdcall RtlIncrementCorrelationVector(_BYTE *a1){
  NTSTATUS v1; 
  NTSTATUS CorrelationVectorBufferLength; 
  NTSTATUS CorrelationVectorLastDotPosition; 
  NTSTATUS v5; 
  _BYTE *v6; 
  int v7; 
  int v9; 
  char DstBuf[16]; 

  v1 = 0;
  CorrelationVectorBufferLength = RtlpGetCorrelationVectorBufferLength(a1);
  CorrelationVectorLastDotPosition = RtlpGetCorrelationVectorLastDotPosition(a1);
  v5 = CorrelationVectorLastDotPosition;
  if( CorrelationVectorLastDotPosition < 0 )
    return -2147483643;
  v6 = &a1[CorrelationVectorLastDotPosition + 1];
  if( sscanf_s(v6 + 1, (PSTR)"%d") != 1 )
    return -2147483643;
  v9 = 1;
  v7 = snprintf_s(DstBuf, 0xCu, 0xCu, "%d", v9);
  if( v7 >= CorrelationVectorBufferLength - v5 - 2 )
    return -2147483643;
  strcpy_s(v6 + 1, v7 + 1, DstBuf);
  return v1;
}

Referenced by:

No references.