{"type": "func", "start": 5370232528, "end": 5370232825, "name": "GJUserMessage::create_1", "pseudocode": "// \n// GJUserMessage::create_1 from 0x140173ed0 to 0x140173ff9 (297 bytes)\n// \n// 5 xrefs:\n// > GJUserMessage::create @ 0x1401739c7\n// > GJMessagePopup::onReply @ 0x1402984a3\n// > GJWriteMessagePopup::closeMessagePopup @ 0x14029a5ac\n// > <???> @ 0x1406caed8\n// > <???> @ 0x1406caee4\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=1\nGJUserMessage *GJUserMessage::create_1()\n{\n  GJUserMessage *v0; // rbx\n  bool (__fastcall *init)(cocos2d::CCNode *); // rdx\n\n  v0 = (GJUserMessage *)operator new(0x1D8u);\n  cocos2d::CCNode::CCNode(v0);\n  v0->__vftable = (GJUserMessage_vtbl *)&GJUserMessage::`vftable';\n  *(_QWORD *)&v0->m_messageID = 0;\n  v0->m_userID = 0;\n  v0->m_title.m_data.0 = 0;\n  v0->m_title.m_data.m_size = 0;\n  v0->m_title.m_data.m_capacity = 15;\n  v0->m_title.m_data.m_smallStorage._Elems[0] = 0;\n  v0->m_content.m_data.0 = 0;\n  v0->m_content.m_data.m_size = 0;\n  v0->m_content.m_data.m_capacity = 15;\n  v0->m_content.m_data.m_smallStorage._Elems[0] = 0;\n  v0->m_username.m_data.0 = 0;\n  v0->m_username.m_data.m_size = 0;\n  v0->m_username.m_data.m_capacity = 15;\n  v0->m_username.m_data.m_smallStorage._Elems[0] = 0;\n  v0->m_uploadDate.m_data.0 = 0;\n  v0->m_uploadDate.m_data.m_size = 0;\n  v0->m_uploadDate.m_data.m_capacity = 15;\n  v0->m_uploadDate.m_data.m_smallStorage._Elems[0] = 0;\n  *(_WORD *)&v0->m_read = 0;\n  v0->m_toggled = 0;\n  init = (bool (__fastcall *)(cocos2d::CCNode *))v0->init;\n  if ( init == CCNodeContainer::init )\n  {\n    if ( !cocos2d::CCNode::init(v0) )\n    {\nLABEL_3:\n      ((void (__fastcall *)(GJUserMessage *, __int64))v0->~GJUserMessage)(v0, 1);\n      return nullptr;\n    }\n  }\n  else if ( !init(v0) )\n  {\n    goto LABEL_3;\n  }\n  cocos2d::CCObject::autorelease(v0);\n  return v0;\n}", "assembly": "; \n; GJUserMessage::create_1 from 0x140173ed0 to 0x140173ff9 (297 bytes)\n; \n; 5 xrefs:\n; > GJUserMessage::create @ 0x1401739c7\n; > GJMessagePopup::onReply @ 0x1402984a3\n; > GJWriteMessagePopup::closeMessagePopup @ 0x14029a5ac\n; > <???> @ 0x1406caed8\n; > <???> @ 0x1406caee4\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, 0x140173ed0\npush    rdi                                                            ; +0x5, 0x140173ed5\nsub     rsp, 20h                                                       ; +0x6, 0x140173ed6\nmov     ecx, 1D8h; Size                                                ; +0xa, 0x140173eda\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x140173edf\nmov     rbx, rax                                                       ; +0x14, 0x140173ee4\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x140173ee7\nmov     rcx, rax                                                       ; +0x1c, 0x140173eec\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x1f, 0x140173eef\nlea     rax, ??_7GJUserMessage@@6B@; const GJUserMessage::`vftable'    ; +0x25, 0x140173ef5\nmov     [rbx], rax                                                     ; +0x2c, 0x140173efc\nxor     edi, edi                                                       ; +0x2f, 0x140173eff\nmov     [rbx+140h], rdi                                                ; +0x31, 0x140173f01\nmov     [rbx+148h], edi                                                ; +0x38, 0x140173f08\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x140173f0e\nmovups  xmmword ptr [rbx+150h], xmm0                                   ; +0x41, 0x140173f11\nmov     [rbx+160h], rdi                                                ; +0x48, 0x140173f18\nmov     qword ptr [rbx+168h], 0Fh                                      ; +0x4f, 0x140173f1f\nmov     [rbx+150h], dil                                                ; +0x5a, 0x140173f2a\nmovups  xmmword ptr [rbx+170h], xmm0                                   ; +0x61, 0x140173f31\nmov     [rbx+180h], rdi                                                ; +0x68, 0x140173f38\nmov     qword ptr [rbx+188h], 0Fh                                      ; +0x6f, 0x140173f3f\nmov     [rbx+170h], dil                                                ; +0x7a, 0x140173f4a\nmovups  xmmword ptr [rbx+190h], xmm0                                   ; +0x81, 0x140173f51\nmov     [rbx+1A0h], rdi                                                ; +0x88, 0x140173f58\nmov     qword ptr [rbx+1A8h], 0Fh                                      ; +0x8f, 0x140173f5f\nmov     [rbx+190h], dil                                                ; +0x9a, 0x140173f6a\nmovups  xmmword ptr [rbx+1B0h], xmm0                                   ; +0xa1, 0x140173f71\nmov     [rbx+1C0h], rdi                                                ; +0xa8, 0x140173f78\nmov     qword ptr [rbx+1C8h], 0Fh                                      ; +0xaf, 0x140173f7f\nmov     [rbx+1B0h], dil                                                ; +0xba, 0x140173f8a\nmov     [rbx+1D0h], di                                                 ; +0xc1, 0x140173f91\nmov     [rbx+1D2h], dil                                                ; +0xc8, 0x140173f98\nmov     rax, [rbx]                                                     ; +0xcf, 0x140173f9f\nmov     rdx, [rax+48h]                                                 ; +0xd2, 0x140173fa2\nlea     rax, CCNodeContainer__init; Merged with: CCNodeContainer::init, CheckpointObject::init, GJFriendRequest::init, GJObjectDecoder::init, GJSmartBlockPreviewSprite::init, GJUserMessage::init ; +0xd6, 0x140173fa6\nmov     rcx, rbx                                                       ; +0xdd, 0x140173fad\ncmp     rdx, rax                                                       ; +0xe0, 0x140173fb0\njnz     short loc_140173FDC                                            ; +0xe3, 0x140173fb3\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0xe5, 0x140173fb5\ntest    al, al                                                         ; +0xeb, 0x140173fbb\njnz     short loc_140173FE2                                            ; +0xed, 0x140173fbd\nmov     r8, [rbx]                                                      ; +0xef, 0x140173fbf\nmov     edx, 1                                                         ; +0xf2, 0x140173fc2\nmov     rcx, rbx                                                       ; +0xf7, 0x140173fc7\ncall    qword ptr [r8+8]                                               ; +0xfa, 0x140173fca\nmov     rax, rdi                                                       ; +0xfe, 0x140173fce\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x101, 0x140173fd1\nadd     rsp, 20h                                                       ; +0x106, 0x140173fd6\npop     rdi                                                            ; +0x10a, 0x140173fda\nretn                                                                   ; +0x10b, 0x140173fdb\ncall    rdx                                                            ; +0x10c, 0x140173fdc\ntest    al, al                                                         ; +0x10e, 0x140173fde\njz      short loc_140173FBF                                            ; +0x110, 0x140173fe0\nmov     rcx, rbx                                                       ; +0x112, 0x140173fe2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x115, 0x140173fe5\nmov     rax, rbx                                                       ; +0x11b, 0x140173feb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x11e, 0x140173fee\nadd     rsp, 20h                                                       ; +0x123, 0x140173ff3\npop     rdi                                                            ; +0x127, 0x140173ff7\nretn                                                                   ; +0x128, 0x140173ff8", "xrefs": ["GJUserMessage::create @ 0x1401739c7", "GJMessagePopup::onReply @ 0x1402984a3", "GJWriteMessagePopup::closeMessagePopup @ 0x14029a5ac", "<???> @ 0x1406caed8", "<???> @ 0x1406caee4"], "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"}