CmpGetSubKeyCountForKcbStack

INT64 __fastcall CmpGetSubKeyCountForKcbStack(INT64 a1, INT64 *a2){
  int started; 
  INT64 v6[10]; 

  memset(v6, 0i64, sizeof(v6));
  CmpInitializeKeyNodeStack((INT64)v6);
  started = CmpStartKeyNodeStackFromKcbStack((INT64)v6, a1);
  if( started >= 0 )
  {
    started = CmpGetSubKeyCountForKeyNodeStack((INT64)v6, a2);
    if( started >= 0 )
      started = 0;
  }
  CmpCleanupKeyNodeStack((INT64)v6);
  return(unsigned int)started;
}

Referenced by:

CmDeleteLayeredKey