// Author KDSS-Research

init("installer", "Autorun Pro Enterprise II");

function detect(bShowType, bShowVersion, bShowOptions) {
    bDetected = true;
    if (!PE.isSectionNamePresent(".rsrc") || !PE.isSectionNamePresent("CODE")) {
        return null;
    }

    bDetected =
        PE.findString(PE.section["CODE"].FileOffset, PE.section["CODE"].FileSize, "TAutoRunProjectX") == -1 &&
        PE.findString(PE.section[".rsrc"].FileOffset, PE.section[".rsrc"].FileSize, "AutoRunObjects") == -1

    return result(bShowType, bShowVersion, bShowOptions);
}