It depends upon what complex organic material. If it is a starch it will probably break it down into simple sugar and absorb the sugar through the cell and membrane. It will use the sugar in respiration and produce
ATP + water and carbon dioxide. Of course if the fungus is feeding on cellulose the process will be basically the same but it would need to secrete different enzymes to break cellulose down into simple sugars.