docs: def _getImports_pe(pth):
      """
      Find the binary dependencies of PTH.
  
      This implementation walks through the PE header
      and uses library pefile for that and supports
      32/64bit Windows
      """
      import PyInstaller.lib.pefile as pefile
      pe = pefile.PE(pth)
      dlls = set()
      # Some libraries have no other binary dependencies.
      # e.g. C:\windows\system32\kernel32.dll on Wine
      for entry in getattr(pe, 'DIRECTORY_ENTRY_IMPORT', []):
          dlls.add(entry.dll)
      return dlls