Refactor peparse_get_export_table and expose additional functions

Refactoring peparse_get_export_table so that parts of the function can be reused. The new functions exposed can be safely used during partial init, while maintaining existing behavior in the API.