RtlpGetContextFlagsLocation

NTSTATUS __stdcall RtlpGetContextFlagsLocation(INT64 Context, INT64 ContextFlags){
  int v2; 
  v2 = 0;
  if( (ContextFlags & 0x10000) == 0 )
  {
    if( (ContextFlags & 0x100000) != 0 )
    {
      LODWORD(Context) = Context + 48;
    }
    else if( (ContextFlags & 0x200000) == 0 )
    {
      if( (ContextFlags & 0x400000) != 0 )
        v2 = Context;
      LODWORD(Context) = v2;
    }
  }
  return Context;
}

Referenced by:

RtlCopyContext
RtlWow64GetCpuAreaInfo