Interceptor.attach(ptr("0x2297294"), {
onEnter: function (args) {
var newValue = ... // ADD THE VALUE HERE
args[0] = newValue;
console.log("Nice hook : " + newValue);
},
onLeave: function (retval) {
console.log("Value successfuly modified");
}
});