Skip to content

reimplement: WinMain 100% - #202

Merged
TheRedDaemon merged 3 commits into
mainfrom
reimpl/WinMain
Oct 6, 2026
Merged

TheRedDaemon merged 3 commits into
mainfrom
reimpl/WinMain

Conversation

@gynt

@gynt gynt commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

WinMain is at 100% (the one difference is left is the security stack cookie handling, the msvc generated one doesn't match with the reccmp identified one)
It needed one header change (AI Bink video messages into an array), and conversion of a for-loop into strlen.

Outstanding differences:

0x57bed3 : pop ebx
0x57bed4 : xor ecx, esp
0x57bed6 : -call <OFFSET13>
           : +call __security_check_cookie (FUNCTION)
0x57bedb : add esp, 0x134
0x57bee1 : ret 0x10

Comment thread src/OpenSHC/Global/WinMain.cpp
@gynt
gynt marked this pull request as ready for review October 5, 2026 14:22
@gynt
gynt requested a review from TheRedDaemon October 5, 2026 14:22
Comment thread status/addresses-SHC-3BB0A8C1.txt Outdated
Comment thread src/OpenSHC/Globals/INT_00ee2350.hpp
Comment thread src/OpenSHC/Global/WinMain.cpp Outdated
Comment thread src/OpenSHC/Global/WinMain.cpp
Comment thread src/OpenSHC/Global/WinMain.cpp
@gynt
gynt force-pushed the reimpl/WinMain branch 2 times, most recently from 1c00e99 to e613054 Compare October 6, 2026 22:04
@gynt
gynt requested a review from TheRedDaemon October 6, 2026 22:07
@TheRedDaemon
TheRedDaemon merged commit 6bcf90f into main Oct 6, 2026
1 check passed
@TheRedDaemon
TheRedDaemon deleted the reimpl/WinMain branch October 6, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants