Author's Notes:
Change Log:

1. Fixed an issue where some users experienced frame drops in the game under certain conditions when using encrypted mods(such as in player editing).
2. Fixed a resource leak caused by not closing the FindFirstFile handle when enumerating subdirectories. (No actual impact)

Credits and thanks to Author: Looyh