VOID __stdcall KiSetupForInstrumentationReturn(KTRAP_FRAME *TrapFrame, UINT64 InstrumentSyscallFrame){
unsigned __int64 v2;
v2 = *(_QWORD *)(*((_QWORD *)KeGetCurrentThread() + 23) + 984i64);
if( v2 )
{
if( TrapFrame->SegCs == 51 )
{
TrapFrame->R10 = TrapFrame->Rip;
TrapFrame->Rip = v2;
}
}
}