you need create a user-defined fitting function (if you are not familiar, seethis for help).
As for your function, it will be defined as something like (make sure the checkbox Use OriginC is checked):
if(x<P3)
y=...;
else if (P3<x && x<P4)
y=...;
else
y=...;