RtlApplyImportRelocationToImage

_BYTE *__fastcall RtlApplyImportRelocationToImage(
        UINT64 a1,
        UINT64 a2,
        INT64 a3,
        INT64 a4,
        INT64 a5,
        UINT64 *a6,
        INT64 a7,
        CHAR a8){
  unsigned int v9; 
  INT64 v11; 
  INT64 v12; 
  int v13; 
  __int16 v14; 

  v12 = 0i64;
  v13 = 0;
  v14 = 0;
  v9 = a2;
  LODWORD(v11) = a7;
  RtlpConstructImportRelocationFixup((unsigned int)a5 + (*(_DWORD *)a6 & 0xFFF), a3, a4, a6, v11, a8, (INT64)&v12);
  return RtlpApplyGenericRetpolineFixup(a1, v9, &v12, (unsigned int)a5 + (*(_DWORD *)a6 & 0xFFF));
}

Referenced by:

RtlPerformRetpolineRelocationsOnImageEx
RtlUpdateImportRelocationsInImage