This is not an anwser, but the OP might find it interesting.
I don't think there is an algorithmic way to do this. For now I am not even sure that such a decomposition exists even for analytic functions. However this is difficult to tell because I don't understand the third category (I take the second one to be "constant function"), because for me, Fourier series regard periodic functions. But perhaps you meant convergent (or existing) Fourier transform?
But if one is willing to consider only certain types of functions as explained below, one may have a simpler (but more restrictive) decomposition.
Let $\mathcal{R}$ denote the set of germs $[f]$ at $+\infty$ of real-valued partial functions $f$ such that for all $n \in \mathbb{N}$, there is $a_n \in \mathbb{R}$ such that $f$ is defined and $n$-times differentiable on $(a_n,+\infty)$. Under pointwise sum and product, this is a ring. Under pointwise derivation, it is a differential ring. It is equipped with the partial order $[f]<[g]$ iff $f(x)<g(x)$ for sufficiently large $x \in \mathbb{R}$.
A Hardy field is a differential subfield $\mathcal{H}$ of $\mathcal{R}$ which contains the set of germs of constant functions. The structure $(\mathcal{H},<)$ is then an ordered field. So in $\mathcal{H}$, any element is either in category $1$, or a sum of one unique element of category $2$ and one unique element of category $4$.
Hardy fields include the fields generated by real constants and the identity function, the exponential function, the logarithm, all functions on neighborhoods of $+\infty$ which are first order definable in the language of exponential fields, or in any o-minimal structure on $\mathbb{R}$. It is conjectured that every Hardy field embeds into a Hardy field where differential polynomials have the intermediate value property. So one can get quite big while satisfying an even stronger sort of separation than that you propose.
By a theorem of Aschenbrenner, van den Dries and van der Hoeven, every Hardy field embeds as a differential field in a field of generalized transseries (surreal numbers). Every such transseries $f$ can be written as $f=f_{\succ}+f_=+f_{\prec}$ where $f_{\succ},f_=$ and $f_{\prec}$ correspond to categories $1$, $2$ and $4$ respectively. The difference here with the general case of Hardy fields is that the function $f\mapsto f_{\succ}$ is an additive morphism (so are the other two).
However the embedding is not unique and not at all constructive in general. In fact, assuming a subfield $\mathcal{H}'$ of $\mathcal{H}$ is embedded as a differential field of transseries, and $\varphi \in \mathcal{H} \setminus \mathcal{H}'$ is d-transcendant over $\mathcal{H}'$, meaning that any differential equation $g_n {\varphi}^{(n)}+...+g_1 \varphi'+ g_0 \varphi=0$ where $g_0,...,g_n \in \mathcal{H}'$ must satisfy $g_0=...=g_n=0$, then there are many transseries $f$ that $\varphi$ could be identified with, and in some cases one can arrange that $f_=$ for instance be any real number.