// // GJWriteMessagePopup::onSend from 0x14029a0e0 to 0x14029a3ab (715 bytes) // // 3 xrefs: // > GJWriteMessagePopup::init @ 0x14029978a // > @ 0x1406d1ce8 // > @ 0x1406d1cf4 // // 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 // // Hidden C++ exception states: #wind=4 void GJWriteMessagePopup::onSend(GJWriteMessagePopup *a1, cocos2d::CCObject *a2) { UploadActionPopup *v3; // rax __int64 v4; // rax const char *v5; // rdi const char *v6; // rsi GameLevelManager *v7; // rcx __int128 v8; // [rsp+50h] [rbp+7h] BYREF __int64 v9; // [rsp+60h] [rbp+17h] __int64 v10; // [rsp+68h] [rbp+1Fh] _BYTE v11[48]; // [rsp+70h] [rbp+27h] BYREF void *v12; // [rsp+B0h] [rbp+67h] void *v13; // [rsp+C8h] [rbp+7Fh] a1->m_messageInput->onClickTrackNode(a1->m_messageInput, 0); a1->m_subjectInput->onClickTrackNode(a1->m_subjectInput, 0); if ( a1->m_subjectText.m_data.m_size ) { if ( a1->m_messageText.m_data.m_size ) { v4 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v12 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = qword_1406C2EC0; } *(_QWORD *)(v4 + 848) = &a1->UploadMessageDelegate; v5 = (const char *)sub_14003BDB0((__int64)&v8, (__int64)&a1->m_messageText); v6 = (const char *)sub_14003BDB0((__int64)v11, (__int64)&a1->m_subjectText); v7 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v13 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v7 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::uploadUserMessage(v7, a1->m_messageID, v6, v5); *((_QWORD *)&v8 + 1) = 11822; v9 = 10; v10 = 15; *(_QWORD *)&v8 = 0x2E676E69646E6553LL; v3 = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, (__int64)&v8); a1->m_uploadPopup = v3; } else { v8 = 0; v9 = 0; v10 = 15; *(_QWORD *)&v8 = sub_14003AA10(0x30u); v9 = 40; v10 = 47; strcpy((char *)v8, "You can't send an empty message."); v3 = (UploadActionPopup *)FLAlertLayer::create( 0, (int)&qword_140570CB8, (__int64)&v8, (__int64)"Ok", 0, 1136525312, 0, 0, 1065353216); } } else { v8 = 0; v9 = 0; v10 = 15; *(_QWORD *)&v8 = sub_14003AA10(0x40u); v9 = 48; v10 = 63; strcpy((char *)v8, "You must enter a subject for the message"); v3 = (UploadActionPopup *)FLAlertLayer::create( 0, (int)"No subject", (__int64)&v8, (__int64)"Ok", 0, 1136525312, 0, 0, 1065353216); } v3->show(v3); }