RtlGuardRestoreContext

VOID __fastcall RtlGuardRestoreContext(PCONTEXT ContextRecord, _EXCEPTION_RECORD *ExceptionRecord){
  int ExceptionCode; 

  if( ExceptionRecord )
  {
    ExceptionCode = ExceptionRecord->ExceptionCode;
    if( ExceptionRecord->ExceptionCode == -2147483610 )
    {
      RtlGuardCheckLongJumpTarget(*(VOID **)(ExceptionRecord->ExceptionInformation[0] + 80));
    }
    else if( ExceptionCode != -2147483607 && ExceptionCode == -1073741785 )
    {
      RtlGuardCheckExceptionHandler((VOID *)ContextRecord->_Rip, (CHAR)ExceptionRecord);
    }
  }
  RtlRestoreContext(ContextRecord, ExceptionRecord);
}

Referenced by:

RtlUnwindEx