// https://github.com/horsicq/Detect-It-Easy signature file
// Authors:
//    sendersu (sendersu on exelab.ru),
//    Kaens (TG @kaens)

init("format", "Microsoft Compiled HTML Help");

includeScript("read");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (Binary.compare("'ITSF'..000000")) {
        bDetected = true;
        sVersion = "v" + Binary.read_int32(4, _LE);
        sOption(Binary.read_uint32(0x14, _LE), "LangID: ");
    }

    return result(bShowType, bShowVersion, bShowOptions);
}