//
// sub_1800E5624 from 0x1800e5624 to 0x1800e574c (296 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e5623
// > DllEntryPoint @ 0x1800e5784
// > ??> @ 0x1801c55d4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:38 +0000
//
__int64 __fastcall sub_1800E5624(cocos2d::CCComponent *hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
unsigned int v7; // ebx
BOOL v8; // eax
if ( !fdwReason && dword_1801B6788 <= 0 )
return 0;
if ( fdwReason - 1 > 1 || (v7 = sub_1800E5438(hinstDLL, fdwReason, (__int64)lpvReserved)) != 0 )
{
v8 = DllMain((HINSTANCE)hinstDLL, fdwReason, lpvReserved);
v7 = v8;
if ( fdwReason == 1 && !v8 )
{
DllMain((HINSTANCE)hinstDLL, 0, lpvReserved);
sub_1800E55A0(lpvReserved != nullptr);
}
if ( !fdwReason || fdwReason == 3 )
return (unsigned int)sub_1800E5438(hinstDLL, fdwReason, (__int64)lpvReserved) != 0;
}
return v7;
}