RtlpGetLastContiguosBase64Position

NTSTATUS __stdcall RtlpGetLastContiguosBase64Position(_BYTE *a1){
  NTSTATUS CorrelationVectorBufferLength; 
  int v2; 
  NTSTATUS v3; 
  NTSTATUS v4; 
  __int64 v5; 
  __int64 v6; 
  NTSTATUS v7; 
  __int64 v8; 

  CorrelationVectorBufferLength = RtlpGetCorrelationVectorBufferLength(a1);
  v6 = 0i64;
  do
  {
    v7 = v3;
    if( v6 >= CorrelationVectorBufferLength )
      break;
    LOBYTE(v2) = *(_BYTE *)(v6 + v5 + 1);
    if( !(_BYTE)v2 )
      break;
    if( (unsigned __int8)(v2 - 43) <= 0x2Fu && (v8 = 0xFFFFFFC07FF1i64, _bittest64(&v8, (unsigned int)(v2 - 43)))
      || (unsigned __int8)(v2 - 97) <= 0x19u )
    {
      v4 = v3;
    }
    ++v3;
    ++v6;
  }
  while( v4 == v7 );
  return v4;
}

Referenced by:

RtlValidateCorrelationVector