RtlUpperString

NTSTATUS __fastcall RtlUpperString(INT64 a1, UINT16 *a2){
  int v2; 
  NTSTATUS result; 
  _BYTE *v4; 
  unsigned __int8 *v5; 
  int v6; 

  v2 = *a2;
  result = *(unsigned __int16 *)(a1 + 2);
  v4 = *(_BYTE **)(a1 + 8);
  v5 = (unsigned __int8 *)*((_QWORD *)a2 + 1);
  if( (unsigned __int16)v2 > (unsigned __int16)result )
    v2 = *(unsigned __int16 *)(a1 + 2);
  for( *(_WORD *)a1 = v2; v2; --v2 )
  {
    v6 = *v5;
    RtlpIsUtf8Process(0);
    result = v6 - 97;
    if( (unsigned __int8)(v6 - 97) <= 0x19u )
      LOBYTE(v6) = v6 ^ 0x20;
    *v4 = v6;
    ++v5;
    ++v4;
  }
  return result;
}

Referenced by:

No references.