//
// SupportLayer::onEmail from 0x1003836d0 to 0x10038378a (186 bytes)
//
// 1 xrefs:
// > SupportLayer::customSetup @ 0x1003823e3
//
// 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:29:09 +0000
//
__int64 __fastcall SupportLayer::onEmail(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rbx
_QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
result = GameToolbox::doWeHaveInternet(a1);
if ( (_BYTE)result )
{
__p = operator new(0x50u);
v3[0] = 81;
v3[1] = 72;
strcpy((char *)__p, "For help with any issues, please contact\n
[email protected]");
v2 = FLAlertLayer::create_1(0, "Send Email", v3, "OK", 0, 300.0);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
}
return result;
}