//
// sub_18001F530 from 0x18001f530 to 0x18001f658 (296 bytes)
//
// 3 xrefs:
// > ??> @ 0x18001f52f
// > DllEntryPoint @ 0x18001f690
// > ??> @ 0x18004d10c
//
// 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 12:15:45 +0000
//
__int64 __fastcall sub_18001F530(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
unsigned int v7; // ebx
BOOL v8; // eax
if ( !fdwReason && dword_180049FD0 <= 0 )
return 0;
if ( fdwReason - 1 > 1 || (v7 = sub_18001F344((__int64)hinstDLL, fdwReason, (__int64)lpvReserved)) != 0 )
{
v8 = DllMain(hinstDLL, fdwReason, lpvReserved);
v7 = v8;
if ( fdwReason == 1 && !v8 )
{
DllMain(hinstDLL, 0, lpvReserved);
sub_18001F4AC(lpvReserved != nullptr);
}
if ( !fdwReason || fdwReason == 3 )
return (unsigned int)sub_18001F344((__int64)hinstDLL, fdwReason, (__int64)lpvReserved) != 0;
}
return v7;
}