SdbpCheckFromVersion

NTSTATUS __stdcall SdbpCheckFromVersion(UINT64 qwDBFileVer, UINT64 qwBinFileVer){
  NTSTATUS result; 
  int v4; 
  UINT64 v5; 
  result = 1;
  v4 = 48;
  while( 1 )
  {
    v5 = qwDBFileVer >> v4;
    if( (unsigned __int16)(qwDBFileVer >> v4) != (unsigned __int16)(qwBinFileVer >> v4) && (_WORD)v5 != 0xFFFF )
      break;
    v4 -= 16;
    if( v4 < 0 )
      return result;
  }
  return(unsigned __int16)v5 < (unsigned __int16)(qwBinFileVer >> v4);
}

Referenced by:

SdbpCheckAttribute
SdbpCheckPackageAttributes
SdbpMatchOsVersion