KeCopyExceptionRecord

VOID __stdcall KeCopyExceptionRecord(INT64 a1, INT64 a2){
  memset((VOID *)a1, 0i64, 0x98u);
  *(_OWORD *)a1 = *(_OWORD *)a2;
  *(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 16);
  *(_DWORD *)(a1 + 24) = *(_DWORD *)(a2 + 24);
  memmove((VOID *)(a1 + 32), (const VOID *)(a2 + 32), 8 * *(_DWORD *)(a2 + 24));
}

Referenced by:

DbgkForwardException
DbgkpSendErrorMessage
KiDispatchException