{"type": "func", "start": 4297426400, "end": 4297426649, "name": "GJMessageCell::onDeleteMessage", "pseudocode": "// \n// GJMessageCell::onDeleteMessage from 0x1002585e0 to 0x1002586d9 (249 bytes)\n// \n// 1 xrefs:\n// > GJMessageCell::loadFromMessage @ 0x10024ccfe\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\nvoid __fastcall GJMessageCell::onDeleteMessage(GJMessageCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserMessage *m_message; // rax\n  ButtonSprite **v3; // rbx\n  _QWORD v4[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  m_message = a1->m_message;\n  if ( m_message && m_message->m_accountID > 0 )\n  {\n    __p = operator new(0x38u);\n    v4[0] = 57;\n    v4[1] = 53;\n    strcpy((char *)__p, \"Are you sure you want to <cr>delete</c> this message?\");\n    v3 = (ButtonSprite **)FLAlertLayer::create(\n                            &a1->FLAlertLayerProtocol,\n                            \"Delete\",\n                            v4,\n                            \"Back\",\n                            \"Delete\",\n                            0,\n                            380.0,\n                            0.0,\n                            1.0);\n    if ( (v4[0] & 1) != 0 )\n      operator delete(__p);\n    ButtonSprite::updateBGImage(v3[75], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v3)->m_fVertexZ)(v3, 1);\n    (*(void (__fastcall **)(ButtonSprite **))&(*v3)[1].m_fTextureTop)(v3);\n  }\n}", "assembly": "; \n; GJMessageCell::onDeleteMessage from 0x1002585e0 to 0x1002586d9 (249 bytes)\n; \n; 1 xrefs:\n; > GJMessageCell::loadFromMessage @ 0x10024ccfe\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\npush    rbp                                                            ; +0x0, 0x1002585e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002585e1\npush    rbx                                                            ; +0x4, 0x1002585e4\nsub     rsp, 18h                                                       ; +0x5, 0x1002585e5\nmov     rax, [rdi+240h]                                                ; +0x9, 0x1002585e9\ntest    rax, rax                                                       ; +0x10, 0x1002585f0\njz      loc_1002586D2                                                  ; +0x13, 0x1002585f3\ncmp     dword ptr [rax+140h], 0                                        ; +0x19, 0x1002585f9\njle     loc_1002586D2                                                  ; +0x20, 0x100258600\nadd     rdi, 228h                                                      ; +0x26, 0x100258606\nmov     rbx, rdi                                                       ; +0x2d, 0x10025860d\nmov     edi, 38h ; '8'; __sz                                           ; +0x30, 0x100258610\ncall    __Znwm; operator new(ulong)                                    ; +0x35, 0x100258615\nmov     [rbp+__p], rax                                                 ; +0x3a, 0x10025861a\nmov     [rbp+var_20], 39h ; '9'                                        ; +0x3e, 0x10025861e\nmov     [rbp+var_18], 35h ; '5'                                        ; +0x46, 0x100258626\nmov     rcx, 3F6567617373656Dh                                         ; +0x4e, 0x10025862e\nmov     [rax+2Dh], rcx                                                 ; +0x58, 0x100258638\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8+20h; \"ete</c> this message?\" ; +0x5c, 0x10025863c\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x63, 0x100258643\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8+10h; \" want to <cr>delete</c> this message?\" ; +0x67, 0x100258647\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x6e, 0x10025864e\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8; \"Are you sure you want to <cr>delete</c>\"... ; +0x72, 0x100258652\nmovups  xmmword ptr [rax], xmm0                                        ; +0x79, 0x100258659\nmov     byte ptr [rax+35h], 0                                          ; +0x7c, 0x10025865c\nlea     rcx, aBack; \"Back\"                                             ; +0x80, 0x100258660\nlea     rsi, aDelete_0; \"Delete\"                                       ; +0x87, 0x100258667\nlea     rdx, [rbp+var_20]                                              ; +0x8e, 0x10025866e\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x92, 0x100258672\nmovss   xmm2, cs:alpha                                                 ; +0x9a, 0x10025867a\nxorps   xmm1, xmm1                                                     ; +0xa2, 0x100258682\nmov     rdi, rbx                                                       ; +0xa5, 0x100258685\nmov     r8, rsi                                                        ; +0xa8, 0x100258688\nxor     r9d, r9d                                                       ; +0xab, 0x10025868b\ncall    FLAlertLayer__create                                           ; +0xae, 0x10025868e\nmov     rbx, rax                                                       ; +0xb3, 0x100258693\ntest    byte ptr [rbp+var_20], 1                                       ; +0xb6, 0x100258696\njz      short loc_1002586A5                                            ; +0xba, 0x10025869a\nmov     rdi, [rbp+__p]; __p                                            ; +0xbc, 0x10025869c\ncall    __ZdlPv; operator delete(void *)                               ; +0xc0, 0x1002586a0\nmov     rdi, [rbx+258h]                                                ; +0xc5, 0x1002586a5\nlea     rsi, aGjButton06Png; \"GJ_button_06.png\"                        ; +0xcc, 0x1002586ac\ncall    ButtonSprite__updateBGImage                                    ; +0xd3, 0x1002586b3\nmov     rax, [rbx]                                                     ; +0xd8, 0x1002586b8\nmov     rdi, rbx                                                       ; +0xdb, 0x1002586bb\nmov     esi, 1                                                         ; +0xde, 0x1002586be\ncall    qword ptr [rax+48h]                                            ; +0xe3, 0x1002586c3\nmov     rax, [rbx]                                                     ; +0xe6, 0x1002586c6\nmov     rdi, rbx                                                       ; +0xe9, 0x1002586c9\ncall    qword ptr [rax+508h]                                           ; +0xec, 0x1002586cc\nadd     rsp, 18h                                                       ; +0xf2, 0x1002586d2\npop     rbx                                                            ; +0xf6, 0x1002586d6\npop     rbp                                                            ; +0xf7, 0x1002586d7\nretn                                                                   ; +0xf8, 0x1002586d8", "xrefs": ["GJMessageCell::loadFromMessage @ 0x10024ccfe"], "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"}