{"type": "func", "start": 5371438416, "end": 5371438890, "name": "GJWriteMessagePopup::closeMessagePopup", "pseudocode": "// \n// GJWriteMessagePopup::closeMessagePopup from 0x14029a550 to 0x14029a72a (474 bytes)\n// \n// 3 xrefs:\n// > GJWriteMessagePopup::onClose @ 0x14029a542\n// > GJWriteMessagePopup::keyBackClicked @ 0x14029a739\n// > <???> @ 0x1406d1d0c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=3\nvoid GJWriteMessagePopup::closeMessagePopup(GJWriteMessagePopup *a1, bool a2)\n{\n  GJUserMessage *v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  void *v7; // rdx\n  __int64 v8; // rax\n  __int64 v9; // rbx\n  void *v10; // rdx\n  GJUserMessage *v11; // rax\n  GJMessagePopup *v12; // rax\n  _BOOL8 v13; // rdx\n  _BYTE v14[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v15; // [rsp+50h] [rbp+8h]\n  void *v16; // [rsp+50h] [rbp+8h]\n\n  a1->m_messageInput->onClickTrackNode(a1->m_messageInput, 0);\n  a1->m_subjectInput->onClickTrackNode(a1->m_subjectInput, 0);\n  if ( !a2 && a1->m_accountID )\n  {\n    if ( a1->m_messageText.m_data.m_size )\n    {\n      v4 = GJUserMessage::create_1();\n      v5 = sub_14003BDB0((__int64)v14, (__int64)&a1->m_messageText);\n      v6 = v5;\n      if ( &v4->m_content != (std::string *)v5 )\n      {\n        v7 = (void *)v5;\n        if ( *(_QWORD *)(v5 + 24) > 0xFu )\n          v7 = *(void **)v5;\n        sub_14003CCE0((void **)&v4->m_content, v7, *(_QWORD *)(v5 + 16));\n      }\n      sub_14003A830(v6);\n      v8 = sub_14003BDB0((__int64)v14, (__int64)&a1->m_subjectText);\n      v9 = v8;\n      if ( &v4->m_title != (std::string *)v8 )\n      {\n        v10 = (void *)v8;\n        if ( *(_QWORD *)(v8 + 24) > 0xFu )\n          v10 = *(void **)v8;\n        sub_14003CCE0((void **)&v4->m_title, v10, *(_QWORD *)(v8 + 16));\n      }\n      sub_14003A830(v9);\n      if ( !qword_1406C2EC0 )\n      {\n        v15 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v15);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      }\n      if ( v4 )\n        cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(qword_1406C2EC0 + 624), v4, a1->m_accountID);\n    }\n    if ( !qword_1406C2EC0 )\n    {\n      v16 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v16);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    }\n    v11 = (GJUserMessage *)cocos2d::CCDictionary::objectForKey(\n                             *(cocos2d::CCDictionary **)(qword_1406C2EC0 + 616),\n                             a1->m_accountID);\n    if ( v11 )\n    {\n      v12 = GJMessagePopup::create(v11);\n      v12->m_noElasticity = 1;\n      v12->show(v12);\n    }\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v13) = 1;\n  a1->removeFromParentAndCleanup(a1, v13);\n}", "assembly": "; \n; GJWriteMessagePopup::closeMessagePopup from 0x14029a550 to 0x14029a72a (474 bytes)\n; \n; 3 xrefs:\n; > GJWriteMessagePopup::onClose @ 0x14029a542\n; > GJWriteMessagePopup::keyBackClicked @ 0x14029a739\n; > <???> @ 0x1406d1d0c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14029a550\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14029a555\npush    rdi                                                            ; +0xa, 0x14029a55a\nsub     rsp, 40h                                                       ; +0xb, 0x14029a55b\nmovzx   ebx, dl                                                        ; +0xf, 0x14029a55f\nmov     rdi, rcx                                                       ; +0x12, 0x14029a562\nmov     rcx, [rcx+2A8h]                                                ; +0x15, 0x14029a565\nmov     rax, [rcx]                                                     ; +0x1c, 0x14029a56c\nxor     edx, edx                                                       ; +0x1f, 0x14029a56f\ncall    qword ptr [rax+3F8h]                                           ; +0x21, 0x14029a571\nmov     rcx, [rdi+2B0h]                                                ; +0x27, 0x14029a577\nmov     rax, [rcx]                                                     ; +0x2e, 0x14029a57e\nxor     edx, edx                                                       ; +0x31, 0x14029a581\ncall    qword ptr [rax+3F8h]                                           ; +0x33, 0x14029a583\ntest    bl, bl                                                         ; +0x39, 0x14029a589\njnz     loc_14029A6FE                                                  ; +0x3b, 0x14029a58b\ncmp     dword ptr [rdi+2A0h], 0                                        ; +0x41, 0x14029a591\njz      loc_14029A6FE                                                  ; +0x48, 0x14029a598\ncmp     qword ptr [rdi+2C8h], 0                                        ; +0x4e, 0x14029a59e\njz      loc_14029A691                                                  ; +0x56, 0x14029a5a6\ncall    GJUserMessage__create_1                                        ; +0x5c, 0x14029a5ac\nmov     rsi, rax                                                       ; +0x61, 0x14029a5b1\nlea     rdx, [rdi+2B8h]                                                ; +0x64, 0x14029a5b4\nlea     rcx, [rsp+48h+var_28]                                          ; +0x6b, 0x14029a5bb\ncall    sub_14003BDB0                                                  ; +0x70, 0x14029a5c0\nmov     rbx, rax                                                       ; +0x75, 0x14029a5c5\nmov     [rsp+48h+arg_0], rax                                           ; +0x78, 0x14029a5c8\nlea     rcx, [rsi+170h]; void *                                        ; +0x7d, 0x14029a5cd\ncmp     rcx, rax                                                       ; +0x84, 0x14029a5d4\njz      short loc_14029A5F0                                            ; +0x87, 0x14029a5d7\nmov     rdx, rax                                                       ; +0x89, 0x14029a5d9\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x8c, 0x14029a5dc\njbe     short loc_14029A5E6                                            ; +0x91, 0x14029a5e1\nmov     rdx, [rax]; Src                                                ; +0x93, 0x14029a5e3\nmov     r8, [rax+10h]; Size                                            ; +0x96, 0x14029a5e6\ncall    sub_14003CCE0                                                  ; +0x9a, 0x14029a5ea\nnop                                                                    ; +0x9f, 0x14029a5ef\nmov     rcx, rbx                                                       ; +0xa0, 0x14029a5f0\ncall    sub_14003A830                                                  ; +0xa3, 0x14029a5f3\nlea     rdx, [rdi+2D8h]                                                ; +0xa8, 0x14029a5f8\nlea     rcx, [rsp+48h+var_28]                                          ; +0xaf, 0x14029a5ff\ncall    sub_14003BDB0                                                  ; +0xb4, 0x14029a604\nmov     rbx, rax                                                       ; +0xb9, 0x14029a609\nmov     [rsp+48h+arg_0], rax                                           ; +0xbc, 0x14029a60c\nlea     rcx, [rsi+150h]; void *                                        ; +0xc1, 0x14029a611\ncmp     rcx, rax                                                       ; +0xc8, 0x14029a618\njz      short loc_14029A634                                            ; +0xcb, 0x14029a61b\nmov     rdx, rax                                                       ; +0xcd, 0x14029a61d\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xd0, 0x14029a620\njbe     short loc_14029A62A                                            ; +0xd5, 0x14029a625\nmov     rdx, [rax]; Src                                                ; +0xd7, 0x14029a627\nmov     r8, [rax+10h]; Size                                            ; +0xda, 0x14029a62a\ncall    sub_14003CCE0                                                  ; +0xde, 0x14029a62e\nnop                                                                    ; +0xe3, 0x14029a633\nmov     rcx, rbx                                                       ; +0xe4, 0x14029a634\ncall    sub_14003A830                                                  ; +0xe7, 0x14029a637\ncmp     cs:qword_1406C2EC0, 0                                          ; +0xec, 0x14029a63c\njnz     short loc_14029A66E                                            ; +0xf4, 0x14029a644\nmov     ecx, 3D0h; Size                                                ; +0xf6, 0x14029a646\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xfb, 0x14029a64b\nmov     [rsp+48h+arg_0], rax                                           ; +0x100, 0x14029a650\nmov     rcx, rax                                                       ; +0x105, 0x14029a655\ncall    sub_140141280                                                  ; +0x108, 0x14029a658\nnop                                                                    ; +0x10d, 0x14029a65d\nmov     cs:qword_1406C2EC0, rax                                        ; +0x10e, 0x14029a65e\nmov     rdx, [rax]                                                     ; +0x115, 0x14029a665\nmov     rcx, rax                                                       ; +0x118, 0x14029a668\ncall    qword ptr [rdx+48h]                                            ; +0x11b, 0x14029a66b\ntest    rsi, rsi                                                       ; +0x11e, 0x14029a66e\njz      short loc_14029A691                                            ; +0x121, 0x14029a671\nmovsxd  r8, dword ptr [rdi+2A0h]                                       ; +0x123, 0x14029a673\nmov     rdx, rsi                                                       ; +0x12a, 0x14029a67a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x12d, 0x14029a67d\nmov     rcx, [rcx+270h]                                                ; +0x134, 0x14029a684\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x13b, 0x14029a68b\ncmp     cs:qword_1406C2EC0, 0                                          ; +0x141, 0x14029a691\njnz     short loc_14029A6C3                                            ; +0x149, 0x14029a699\nmov     ecx, 3D0h; Size                                                ; +0x14b, 0x14029a69b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x150, 0x14029a6a0\nmov     [rsp+48h+arg_0], rax                                           ; +0x155, 0x14029a6a5\nmov     rcx, rax                                                       ; +0x15a, 0x14029a6aa\ncall    sub_140141280                                                  ; +0x15d, 0x14029a6ad\nnop                                                                    ; +0x162, 0x14029a6b2\nmov     cs:qword_1406C2EC0, rax                                        ; +0x163, 0x14029a6b3\nmov     rdx, [rax]                                                     ; +0x16a, 0x14029a6ba\nmov     rcx, rax                                                       ; +0x16d, 0x14029a6bd\ncall    qword ptr [rdx+48h]                                            ; +0x170, 0x14029a6c0\nmovsxd  rdx, dword ptr [rdi+2A0h]                                      ; +0x173, 0x14029a6c3\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x17a, 0x14029a6ca\nmov     rcx, [rcx+268h]                                                ; +0x181, 0x14029a6d1\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x188, 0x14029a6d8\ntest    rax, rax                                                       ; +0x18e, 0x14029a6de\njz      short loc_14029A6FE                                            ; +0x191, 0x14029a6e1\nmov     rcx, rax                                                       ; +0x193, 0x14029a6e3\ncall    GJMessagePopup__create                                         ; +0x196, 0x14029a6e6\nmov     byte ptr [rax+24Ch], 1                                         ; +0x19b, 0x14029a6eb\nmov     rdx, [rax]                                                     ; +0x1a2, 0x14029a6f2\nmov     rcx, rax                                                       ; +0x1a5, 0x14029a6f5\ncall    qword ptr [rdx+410h]                                           ; +0x1a8, 0x14029a6f8\nmov     rax, [rdi]                                                     ; +0x1ae, 0x14029a6fe\nxor     edx, edx                                                       ; +0x1b1, 0x14029a701\nmov     rcx, rdi                                                       ; +0x1b3, 0x14029a703\ncall    qword ptr [rax+3D0h]                                           ; +0x1b6, 0x14029a706\nmov     rax, [rdi]                                                     ; +0x1bc, 0x14029a70c\nmov     dl, 1                                                          ; +0x1bf, 0x14029a70f\nmov     rcx, rdi                                                       ; +0x1c1, 0x14029a711\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x1c4, 0x14029a714\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x1c9, 0x14029a719\nadd     rsp, 40h                                                       ; +0x1ce, 0x14029a71e\npop     rdi                                                            ; +0x1d2, 0x14029a722\njmp     qword ptr [rax+1F8h]                                           ; +0x1d3, 0x14029a723", "xrefs": ["GJWriteMessagePopup::onClose @ 0x14029a542", "GJWriteMessagePopup::keyBackClicked @ 0x14029a739", "<???> @ 0x1406d1d0c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}