PspGetBaseTrapFrame

__int64 __fastcall PspGetBaseTrapFrame(__int64 a1, _DWORD *a2){
  __int64 i; 
  int v3; 
  for( i = *(_QWORD *)(a1 + 40); (*(_BYTE *)(i + 8) & 1) != 0; i = *(_QWORD *)(i + 40) )
    ;
  v3 = 0;
  if( a2 )
  {
    LOBYTE(v3) = *(_QWORD *)(i + 32) != 0i64;
    *a2 = v3;
  }
  return i - 400;
}

Referenced by:

PsGetBaseTrapFrame