Finding the correct firmware is the most critical step. Using firmware intended for a different model (e.g., TA-1200 or TA-1211) can permanently brick your device.
GSMServer.org : Hosts various firmware versions for this specific variant. nokia ta-1165 firmware pac file download