We demonstrate that the possibility of monitoring relative photoionization cross sections over a large photon energy range allows studying and disentangling shake processes and intramolecular inelastic scattering effects. In this gas phase study, relative intensities of the C 1s photoelectron lines from chemically inequivalent carbon atoms in the same molecule have been measured as function of incident photon energy in the range of 300-6000 eV. We present relative cross sections for the chemically shifted C 1s lines in the photoelectron spectra of ethyl trifluoroacetate (the "ESCA" molecule). The results are compared to those of methyl trifluoroacetate and S-ethyl trifluorothioaceetate, as well as a series of chloro-substituted ethanes and 2-butyne. In the soft X-ray energy range, the cross sections show EXAFS-type of wiggles, as was previously observed for a series of chloroethanes. The oscillations are damped in the hard X-ray energy range, but deviations of cross-section ratios from stoichiometry persist even at high energies. The current findings are supported by theoretical calculations based on a multiple scattering model. The use of soft and tender x-rays provides a more complete picture of the dominant processes accompanying photoionization. Such processes reduce the main photoelectron line intensities by 20-60%. Using both energy ranges enabled to discern the process of intramolecular inelastic scattering of the outgoing electron, whose significance is otherwise difficult to assess for isolated molecules. This effect relates to the notion of the Inelastic Mean Free Path (IMFP) commonly used in photoemission studies of clusters and condensed matter.