This is a very complex problem. First you have to know the type of IC, whether it is processing digital electricity or mode electricity, input or output, if there is no data, it is very difficult. If it is energized, it can be inferred from the external component or line that it is input or output