{"type": "func", "start": 5369487712, "end": 5369488118, "name": "GJMessageCell::FLAlert_Clicked", "pseudocode": "// \n// GJMessageCell::FLAlert_Clicked from 0x1400be160 to 0x1400be2f6 (406 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14054a260\n// > <???> @ 0x1406c7e54\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=2\nvoid GJMessageCell::FLAlert_Clicked(GJMessageCell *a1, FLAlertLayer *a2, bool a3)\n{\n  GameLevelManager *v4; // rcx\n  int *p_m_nTag; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rax\n  unsigned int *p_m_uID; // rcx\n  __int64 v9; // rax\n  __int128 v10; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-18h]\n  __int64 v12; // [rsp+38h] [rbp-10h]\n  void *v13; // [rsp+68h] [rbp+20h]\n  void *v14; // [rsp+68h] [rbp+20h]\n\n  if ( a3 && a2->getTag(a2) == 1 && *(_QWORD *)&a1->m_uAutoReleaseCount )\n  {\n    GJMessageCell::markAsRead((GJMessageCell *)((char *)a1 - 560));\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v13 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    if ( GameLevelManager::deleteUserMessages(\n           v4,\n           *(GJUserMessage **)&a1->m_uAutoReleaseCount,\n           nullptr,\n           *(_BYTE *)(*(_QWORD *)&a1->m_uAutoReleaseCount + 465LL)) )\n    {\n      p_m_nTag = &a1->m_nTag;\n      if ( a1 == (GJMessageCell *)560 )\n        p_m_nTag = nullptr;\n      v6 = qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v14 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(v14);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v6 = qword_1406C2EC0;\n      }\n      *(_QWORD *)(v6 + 808) = p_m_nTag;\n      v7 = *(_QWORD *)&a1->m_uIndexInArray;\n      if ( v7 )\n        *(_QWORD *)(v7 + 632) = 0;\n      v10 = 0;\n      *(_QWORD *)&v10 = sub_14003AA10(0x20u);\n      v11 = 19;\n      v12 = 31;\n      strcpy((char *)v10, \"Deleting message...\");\n      p_m_uID = &a1->m_uID;\n      if ( a1 == (GJMessageCell *)560 )\n        p_m_uID = nullptr;\n      v9 = UploadActionPopup::create(p_m_uID, &v10);\n      *(_QWORD *)&a1->m_uIndexInArray = v9;\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1040LL))(v9);\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::FLAlert_Clicked from 0x1400be160 to 0x1400be2f6 (406 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14054a260\n; > <???> @ 0x1406c7e54\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\ntest    r8b, r8b                                                       ; +0x0, 0x1400be160\njz      locret_1400BE2F5                                               ; +0x3, 0x1400be163\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1400be169\nmov     [rsp+arg_8], rbp                                               ; +0xe, 0x1400be16e\nmov     [rsp+arg_10], rsi                                              ; +0x13, 0x1400be173\npush    rdi                                                            ; +0x18, 0x1400be178\nsub     rsp, 40h                                                       ; +0x19, 0x1400be179\nmov     rbx, rcx                                                       ; +0x1d, 0x1400be17d\nmov     rax, [rdx]                                                     ; +0x20, 0x1400be180\nmov     rcx, rdx                                                       ; +0x23, 0x1400be183\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x1400be186\ncmp     eax, 1                                                         ; +0x29, 0x1400be189\njnz     loc_1400BE2E1                                                  ; +0x2c, 0x1400be18c\ncmp     qword ptr [rbx+18h], 0                                         ; +0x32, 0x1400be192\njz      loc_1400BE2E1                                                  ; +0x37, 0x1400be197\nlea     rsi, [rbx-230h]                                                ; +0x3d, 0x1400be19d\nmov     rcx, rsi                                                       ; +0x44, 0x1400be1a4\ncall    GJMessageCell__markAsRead                                      ; +0x47, 0x1400be1a7\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x4c, 0x1400be1ac\ntest    rcx, rcx                                                       ; +0x53, 0x1400be1b3\njnz     short loc_1400BE1E7                                            ; +0x56, 0x1400be1b6\nmov     ecx, 3D0h; Size                                                ; +0x58, 0x1400be1b8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5d, 0x1400be1bd\nmov     [rsp+48h+arg_18], rax                                          ; +0x62, 0x1400be1c2\nmov     rcx, rax                                                       ; +0x67, 0x1400be1c7\ncall    sub_140141280                                                  ; +0x6a, 0x1400be1ca\nnop                                                                    ; +0x6f, 0x1400be1cf\nmov     cs:qword_1406C2EC0, rax                                        ; +0x70, 0x1400be1d0\nmov     rdx, [rax]                                                     ; +0x77, 0x1400be1d7\nmov     rcx, rax                                                       ; +0x7a, 0x1400be1da\ncall    qword ptr [rdx+48h]                                            ; +0x7d, 0x1400be1dd\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x80, 0x1400be1e0\nmov     rdx, [rbx+18h]                                                 ; +0x87, 0x1400be1e7\nmovzx   r9d, byte ptr [rdx+1D1h]                                       ; +0x8b, 0x1400be1eb\nxor     r8d, r8d                                                       ; +0x93, 0x1400be1f3\ncall    GameLevelManager__deleteUserMessages                           ; +0x96, 0x1400be1f6\ntest    al, al                                                         ; +0x9b, 0x1400be1fb\njz      loc_1400BE2E1                                                  ; +0x9d, 0x1400be1fd\nlea     rdi, [rbx+10h]                                                 ; +0xa3, 0x1400be203\nxor     ebp, ebp                                                       ; +0xa7, 0x1400be207\ntest    rsi, rsi                                                       ; +0xa9, 0x1400be209\ncmovz   rdi, rbp                                                       ; +0xac, 0x1400be20c\nmov     rax, cs:qword_1406C2EC0                                        ; +0xb0, 0x1400be210\ntest    rax, rax                                                       ; +0xb7, 0x1400be217\njnz     short loc_1400BE24B                                            ; +0xba, 0x1400be21a\nmov     ecx, 3D0h; Size                                                ; +0xbc, 0x1400be21c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc1, 0x1400be221\nmov     [rsp+48h+arg_18], rax                                          ; +0xc6, 0x1400be226\nmov     rcx, rax                                                       ; +0xcb, 0x1400be22b\ncall    sub_140141280                                                  ; +0xce, 0x1400be22e\nnop                                                                    ; +0xd3, 0x1400be233\nmov     cs:qword_1406C2EC0, rax                                        ; +0xd4, 0x1400be234\nmov     rdx, [rax]                                                     ; +0xdb, 0x1400be23b\nmov     rcx, rax                                                       ; +0xde, 0x1400be23e\ncall    qword ptr [rdx+48h]                                            ; +0xe1, 0x1400be241\nmov     rax, cs:qword_1406C2EC0                                        ; +0xe4, 0x1400be244\nmov     [rax+328h], rdi                                                ; +0xeb, 0x1400be24b\nmov     rax, [rbx+20h]                                                 ; +0xf2, 0x1400be252\ntest    rax, rax                                                       ; +0xf6, 0x1400be256\njz      short loc_1400BE262                                            ; +0xf9, 0x1400be259\nmov     [rax+278h], rbp                                                ; +0xfb, 0x1400be25b\nxorps   xmm0, xmm0                                                     ; +0x102, 0x1400be262\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x105, 0x1400be265\nmov     [rsp+48h+var_18], rbp                                          ; +0x10a, 0x1400be26a\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x10f, 0x1400be26f\nmov     ecx, 20h ; ' '                                                 ; +0x118, 0x1400be278\ncall    sub_14003AA10                                                  ; +0x11d, 0x1400be27d\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x122, 0x1400be282\nmov     [rsp+48h+var_18], 13h                                          ; +0x127, 0x1400be287\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x130, 0x1400be290\nmovups  xmm0, cs:xmmword_140547438                                     ; +0x139, 0x1400be299\nmovups  xmmword ptr [rax], xmm0                                        ; +0x140, 0x1400be2a0\nmovzx   ecx, cs:word_140547448                                         ; +0x143, 0x1400be2a3\nmov     [rax+10h], cx                                                  ; +0x14a, 0x1400be2aa\nmovzx   ecx, cs:byte_14054744A                                         ; +0x14e, 0x1400be2ae\nmov     [rax+12h], cl                                                  ; +0x155, 0x1400be2b5\nmov     byte ptr [rax+13h], 0                                          ; +0x158, 0x1400be2b8\nlea     rcx, [rbx+8]                                                   ; +0x15c, 0x1400be2bc\ntest    rsi, rsi                                                       ; +0x160, 0x1400be2c0\ncmovz   rcx, rbp                                                       ; +0x163, 0x1400be2c3\nlea     rdx, [rsp+48h+var_28]                                          ; +0x167, 0x1400be2c7\ncall    UploadActionPopup__create                                      ; +0x16c, 0x1400be2cc\nmov     [rbx+20h], rax                                                 ; +0x171, 0x1400be2d1\nmov     rdx, [rax]                                                     ; +0x175, 0x1400be2d5\nmov     rcx, rax                                                       ; +0x178, 0x1400be2d8\ncall    qword ptr [rdx+410h]                                           ; +0x17b, 0x1400be2db\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x181, 0x1400be2e1\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x186, 0x1400be2e6\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x18b, 0x1400be2eb\nadd     rsp, 40h                                                       ; +0x190, 0x1400be2f0\npop     rdi                                                            ; +0x194, 0x1400be2f4\nretn                                                                   ; +0x195, 0x1400be2f5", "xrefs": ["<???> @ 0x14054a260", "<???> @ 0x1406c7e54"], "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"}