// // GJWriteMessagePopup::closeMessagePopup from 0x14029a550 to 0x14029a72a (474 bytes) // // 3 xrefs: // > GJWriteMessagePopup::onClose @ 0x14029a542 // > GJWriteMessagePopup::keyBackClicked @ 0x14029a739 // > @ 0x1406d1d0c // // 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=3 void GJWriteMessagePopup::closeMessagePopup(GJWriteMessagePopup *a1, bool a2) { GJUserMessage *v4; // rsi __int64 v5; // rax __int64 v6; // rbx void *v7; // rdx __int64 v8; // rax __int64 v9; // rbx void *v10; // rdx GJUserMessage *v11; // rax GJMessagePopup *v12; // rax _BOOL8 v13; // rdx _BYTE v14[40]; // [rsp+20h] [rbp-28h] BYREF void *v15; // [rsp+50h] [rbp+8h] void *v16; // [rsp+50h] [rbp+8h] a1->m_messageInput->onClickTrackNode(a1->m_messageInput, 0); a1->m_subjectInput->onClickTrackNode(a1->m_subjectInput, 0); if ( !a2 && a1->m_accountID ) { if ( a1->m_messageText.m_data.m_size ) { v4 = GJUserMessage::create_1(); v5 = sub_14003BDB0((__int64)v14, (__int64)&a1->m_messageText); v6 = v5; if ( &v4->m_content != (std::string *)v5 ) { v7 = (void *)v5; if ( *(_QWORD *)(v5 + 24) > 0xFu ) v7 = *(void **)v5; sub_14003CCE0((void **)&v4->m_content, v7, *(_QWORD *)(v5 + 16)); } sub_14003A830(v6); v8 = sub_14003BDB0((__int64)v14, (__int64)&a1->m_subjectText); v9 = v8; if ( &v4->m_title != (std::string *)v8 ) { v10 = (void *)v8; if ( *(_QWORD *)(v8 + 24) > 0xFu ) v10 = *(void **)v8; sub_14003CCE0((void **)&v4->m_title, v10, *(_QWORD *)(v8 + 16)); } sub_14003A830(v9); if ( !qword_1406C2EC0 ) { v15 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); } if ( v4 ) cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(qword_1406C2EC0 + 624), v4, a1->m_accountID); } if ( !qword_1406C2EC0 ) { v16 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); } v11 = (GJUserMessage *)cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(qword_1406C2EC0 + 616), a1->m_accountID); if ( v11 ) { v12 = GJMessagePopup::create(v11); v12->m_noElasticity = 1; v12->show(v12); } } a1->setKeypadEnabled(a1, 0); LOBYTE(v13) = 1; a1->removeFromParentAndCleanup(a1, v13); }