The function \(f(x)=x^5-4x^4+ax^3-x^2+bx-8\) has a value of \(128\) when \(x=4\). Determine the value of the function when \(x=-4\).