// // dllmain_crt_dispatch from 0x18001f848 to 0x18001f898 (80 bytes) // // 4 xrefs: // > dllmain_dispatch @ 0x18001fa9f // > dllmain_dispatch @ 0x18001fb11 // > dllmain_dispatch @ 0x180021300 // > @ 0x18004b244 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall dllmain_crt_dispatch(HINSTANCE a1, int a2, void *const a3) { int v3; // edx int v4; // edx __int64 result; // rax if ( !a2 ) return dllmain_crt_process_detach(a3 != nullptr); v3 = a2 - 1; if ( !v3 ) return dllmain_crt_process_attach(a1, a3); v4 = v3 - 1; if ( v4 ) { if ( v4 != 1 ) return 1; LOBYTE(result) = _scrt_dllmain_crt_thread_detach(); } else { LOBYTE(result) = sub_18001F418(); } return (unsigned __int8)result; }