StLcInitialize

LARGE_INTEGER __fastcall StLcInitialize(INT64 a1, INT64 a2, UINT64 *a3){
  LARGE_INTEGER result; 
  UINT64 *i; 
  LONGLONG v7; 
  union _LARGE_INTEGER PerformanceFrequency; 
  PerformanceFrequency.QuadPart = 0i64;
  *(_OWORD *)a1 = 0i64;
  *(_QWORD *)(a1 + 16) = 0i64;
  result = KeQueryPerformanceCounter(&PerformanceFrequency);
  for( i = a3; i < a3 + 16; i += 2 )
  {
    v7 = PerformanceFrequency.QuadPart * *(unsigned int *)i;
    *((_DWORD *)i + 2) = 0;
    result.QuadPart = (unsigned __int64)((unsigned __int128)(v7 * (__int128)0x431BDE82D7B634DBi64) >> 64) >> 63;
    *i = v7 / 1000000;
  }
  a3[14] = -1i64;
  *(_DWORD *)(a1 + 8) = 8;
  *(_QWORD *)(a1 + 16) = a3;
  *(_QWORD *)a1 = a3;
  return result;
}

Referenced by:

ST_STORE::StInitialize