Coder Social home page Coder Social logo

EA Desktop: add Wine support about gamefinder HOT 4 OPEN

erri120 avatar erri120 commented on June 19, 2024
EA Desktop: add Wine support

from gamefinder.

Comments (4)

Sajito avatar Sajito commented on June 19, 2024

Hello @erri120, I used your findings and documentation from erri120/erri120.github.io#45 to also look into this.

I'm not entirely sure yet, but I think for the Win32_BaseBoard SerialNumber and Win32_BIOS SerialNumber we could take a shortcut. It's possible to read those values using wmic inside a wine prefix.
The hardware_key needed to decrypt my IS file has these values mapped as follows:

baseBoardSerialNumber: 'Default string'
biosSerialNumber: '0'

As you already noticed it's not possible to get those values from linux without root. From my understanding wine does not have root access and therefore shouldn't be able to access those information either.
That's why I'm pretty confident that those values are always the same in a wine environment.

Then we have the "volume serial number". This might also be rather simple. In my wine prefixes this is always 43000000, which is hex representation for "C", the drive letter. This can be changed with winecfg, but then the value will be stored in C:/.windows-serial. So either we have this file, with the correct value or it's 43000000.

Do you have the ability to check if my assumptions apply to a wine installation?

The easiest way to get Win32_Processor ProcessorId might be to just dispatch the wmic call inside the prefix.

The only major showstopper for me at this time is Win32_VideoController PNPDeviceId. I can get this value with wmic, but the resulting string does not match the required string, they differ. I'm still looking into how to get the correct value.

from gamefinder.

erri120 avatar erri120 commented on June 19, 2024

@Sajito thanks for looking into it!

from gamefinder.

Sajito avatar Sajito commented on June 19, 2024

My problem with Win32_VideoController PNPDeviceId seems to be a dead end for me.
I used x64dbg to step through the program. The wmi query used to get the video devices is Select * from Win32_VideoController. The value is retrieved at 000000006E786BD9, as a template string though. The final value is present at 000000006E786BFA.

I tried doing exactly the same, using a simple dotnet tool. Using System.Management to query the video devices using the same query. Checked the PNPDeviceId, getting the same as using wmic PATH Win32_VideoController get PNPDeviceId.
But the id I retrieve is not the same id, which is retrieved inside EABackgroundService.exe, therefore unusable to create the correct hardware key.

Maybe someone else can pick up at this point...

from gamefinder.

Sajito avatar Sajito commented on June 19, 2024

Some more information here.
Win32_BaseBoard SerialNumber is not always "Default string", so it must be read from somewhere.

Also I figured out why my PNPDeviceId is different than the one used by EA App. I have an Nvidia gpu, which is hidden by dxvk dxgi. So when EA App queries the PNPDeviceId for the gpu, then an amd card is reported instead of my actual gpu.

Though I don't know yet how to obtain the same PNPDeviceId as EA App.

from gamefinder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.