SmCrEncCleanup

void __fastcall SmCrEncCleanup(__int64 a1, ULONG a2){
  struct _PRIVILEGE_SET *v3; 
  void *v4; 
  struct _PRIVILEGE_SET *v5; 
  struct _PRIVILEGE_SET *v6; 
  v3 = *(struct _PRIVILEGE_SET **)(a1 + 16);
  if( v3 )
    CmSiFreeMemory(v3);
  v4 = *(void **)(a1 + 32);
  if( v4 )
    BCryptDestroyKey(v4);
  v5 = *(struct _PRIVILEGE_SET **)(a1 + 40);
  if( v5 )
    CmSiFreeMemory(v5);
  v6 = *(struct _PRIVILEGE_SET **)(a1 + 48);
  if( v6 )
    CmSiFreeMemory(v6);
  if( *(_QWORD *)a1 )
    BCryptCloseAlgorithmProvider(*(PVOID *)a1);
}

Referenced by:

ST_STORE::StCleanup