SdbpCheckVersion

NTSTATUS __stdcall SdbpCheckVersion(UINT64 qwDBFileVer, UINT64 qwBinFileVer){
  int v3; 
  v3 = 48;
  while( (unsigned __int16)(qwDBFileVer >> v3) == (unsigned __int16)(qwBinFileVer >> v3)
       || (unsigned __int16)(qwDBFileVer >> v3) == 0xFFFF )
  {
    v3 -= 16;
    if( v3 < 0 )
      return 1;
  }
  return 0;
}

Referenced by:

SdbpCheckAttribute
SdbpCheckPackageAttributes
SdbpMatchOsVersion