RtlLookupImageSectionByName

CHAR *__fastcall RtlLookupImageSectionByName(INT64 a1, CHAR *a2){
  unsigned __int16 v2; 
  INT8 *v3; 
  __int16 v5; 

  v2 = *(_WORD *)(a1 + 6);
  v3 = (INT8 *)(*(unsigned __int16 *)(a1 + 20) + a1 + 24);
  v5 = 0;
  if( !v2 )
    return 0i64;
  while( strncmp(v3, a2, 8ui64) )
  {
    v3 += 40;
    if( (unsigned __int16)++v5 >= v2 )
      return 0i64;
  }
  return v3;
}

Referenced by:

MiApplyRetpolineFixupsToKernelAndHal