function generate_ropchain()
{
    global $ROPCHAIN, $generatebinrop, $ropchainselect;
    $ROPCHAIN = "";
    if ($generatebinrop == 0) {
        $ROPCHAIN .= "\"";
    }
    if ($ropchainselect == 1) {
        generateropchain_type1();
    }
    if ($generatebinrop == 0) {
        $ROPCHAIN .= "\"";
    }
}
function generate_ropchain()
{
    global $ROPCHAIN, $generatebinrop, $THROW_FATALERR, $ropchainselect;
    $ROPCHAIN = "";
    if ($generatebinrop == 0) {
        $ROPCHAIN .= "\"";
    }
    if ($ropchainselect == 0) {
        ropchain_appendu32($THROW_FATALERR);
    } else {
        if ($ropchainselect == 1) {
            generateropchain_type1();
        } else {
            if ($ropchainselect == 2) {
                generateropchain_type2();
            } else {
                if ($ropchainselect == 3) {
                    generateropchain_type3();
                } else {
                    if ($ropchainselect == 4) {
                        generateropchain_type4();
                    }
                }
            }
        }
    }
    if ($generatebinrop == 0) {
        $ROPCHAIN .= "\"";
    }
}