{"type": "func", "start": 4297336336, "end": 4297336678, "name": "GJMessageCell::FLAlert_Clicked", "pseudocode": "// \n// GJMessageCell::FLAlert_Clicked from 0x100242610 to 0x100242766 (342 bytes)\n// \n// 2 xrefs:\n// > sub_100242780 @ 0x10024278c\n// > <???> @ 0x100aee098\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:18 +0000\n// \n\nvoid __fastcall GJMessageCell::FLAlert_Clicked(_QWORD *a1, __int64 a2, int a3, double a4)\n{\n  __int64 v5; // rax\n  __int64 v6; // rdi\n  __int64 v7; // rsi\n  __int64 v8; // rax\n  __int64 v9; // r14\n  __int64 v10; // rax\n  __int64 v11; // rax\n  int v12; // edx\n  __int64 v13; // rax\n  __int64 v14; // rax\n  __int64 v15; // rax\n  void *v16[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( a3 )\n  {\n    if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n    {\n      v5 = a1[72];\n      if ( v5 )\n      {\n        if ( !*(_BYTE *)(v5 + 424) )\n        {\n          *(_BYTE *)(v5 + 424) = 1;\n          v6 = a1[67];\n          v7 = 100;\n          v8 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 100);\n          if ( v8 )\n          {\n            v6 = v8;\n            v7 = 0;\n            a4 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, 0);\n          }\n          v9 = GameLevelManager::sharedState(a4);\n          v10 = GJAccountManager::sharedState(v6, v7);\n          v11 = GameLevelManager::userInfoForAccountID(\n                  v9,\n                  (unsigned int)(*(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356)));\n          if ( v11 )\n          {\n            v12 = 1;\n            if ( *(int *)(v11 + 692) >= 2 )\n              v12 = *(_DWORD *)(v11 + 692);\n            *(_DWORD *)(v11 + 692) = v12 - 1;\n          }\n        }\n        v13 = GameLevelManager::sharedState(a4);\n        if ( (unsigned __int8)GameLevelManager::deleteUserMessages(v13, a1[72], 0, *(unsigned __int8 *)(a1[72] + 425LL)) )\n        {\n          *(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 71;\n          v14 = a1[73];\n          if ( v14 )\n            *(_QWORD *)(v14 + 664) = 0;\n          strcpy((char *)v16, \"&Deleting message...\");\n          v15 = UploadActionPopup::create(a1 + 70, v16);\n          a1[73] = v15;\n          if ( ((__int64)v16[0] & 1) != 0 )\n          {\n            operator delete(v16[2]);\n            v15 = a1[73];\n          }\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::FLAlert_Clicked from 0x100242610 to 0x100242766 (342 bytes)\n; \n; 2 xrefs:\n; > sub_100242780 @ 0x10024278c\n; > <???> @ 0x100aee098\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x100242610\nmov     rbp, rsp                                                       ; +0x1, 0x100242611\npush    r14                                                            ; +0x4, 0x100242614\npush    rbx                                                            ; +0x6, 0x100242616\nsub     rsp, 20h                                                       ; +0x7, 0x100242617\ntest    edx, edx                                                       ; +0xb, 0x10024261b\njz      loc_10024275D                                                  ; +0xd, 0x10024261d\nmov     rbx, rdi                                                       ; +0x13, 0x100242623\nmov     rax, [rsi]                                                     ; +0x16, 0x100242626\nmov     rdi, rsi                                                       ; +0x19, 0x100242629\ncall    qword ptr [rax+40h]                                            ; +0x1c, 0x10024262c\ncmp     eax, 1                                                         ; +0x1f, 0x10024262f\njnz     loc_10024275D                                                  ; +0x22, 0x100242632\nmov     rax, [rbx+240h]                                                ; +0x28, 0x100242638\ntest    rax, rax                                                       ; +0x2f, 0x10024263f\njz      loc_10024275D                                                  ; +0x32, 0x100242642\ncmp     byte ptr [rax+1A8h], 0                                         ; +0x38, 0x100242648\njnz     short loc_1002426BF                                            ; +0x3f, 0x10024264f\nmov     byte ptr [rax+1A8h], 1                                         ; +0x41, 0x100242651\nmov     rdi, [rbx+218h]                                                ; +0x48, 0x100242658\nmov     rax, [rdi]                                                     ; +0x4f, 0x10024265f\nmov     esi, 64h ; 'd'                                                 ; +0x52, 0x100242662\ncall    qword ptr [rax+1E0h]                                           ; +0x57, 0x100242667\ntest    rax, rax                                                       ; +0x5d, 0x10024266d\njz      short loc_100242680                                            ; +0x60, 0x100242670\nmov     rcx, [rax]                                                     ; +0x62, 0x100242672\nmov     rdi, rax                                                       ; +0x65, 0x100242675\nxor     esi, esi                                                       ; +0x68, 0x100242678\ncall    qword ptr [rcx+158h]                                           ; +0x6a, 0x10024267a\ncall    GameLevelManager__sharedState                                  ; +0x70, 0x100242680\nmov     r14, rax                                                       ; +0x75, 0x100242685\ncall    GJAccountManager__sharedState                                  ; +0x78, 0x100242688\nmov     esi, [rax+160h]                                                ; +0x7d, 0x10024268d\nsub     esi, [rax+164h]                                                ; +0x83, 0x100242693\nmov     rdi, r14                                                       ; +0x89, 0x100242699\ncall    GameLevelManager__userInfoForAccountID                         ; +0x8c, 0x10024269c\ntest    rax, rax                                                       ; +0x91, 0x1002426a1\njz      short loc_1002426BF                                            ; +0x94, 0x1002426a4\nmov     ecx, [rax+2B4h]                                                ; +0x96, 0x1002426a6\ncmp     ecx, 2                                                         ; +0x9c, 0x1002426ac\nmov     edx, 1                                                         ; +0x9f, 0x1002426af\ncmovge  edx, ecx                                                       ; +0xa4, 0x1002426b4\ndec     edx                                                            ; +0xa7, 0x1002426b7\nmov     [rax+2B4h], edx                                                ; +0xa9, 0x1002426b9\ncall    GameLevelManager__sharedState                                  ; +0xaf, 0x1002426bf\nmov     rsi, [rbx+240h]                                                ; +0xb4, 0x1002426c4\nmovzx   ecx, byte ptr [rsi+1A9h]                                       ; +0xbb, 0x1002426cb\nmov     rdi, rax                                                       ; +0xc2, 0x1002426d2\nxor     edx, edx                                                       ; +0xc5, 0x1002426d5\ncall    GameLevelManager__deleteUserMessages                           ; +0xc7, 0x1002426d7\ntest    al, al                                                         ; +0xcc, 0x1002426dc\njz      short loc_10024275D                                            ; +0xce, 0x1002426de\ncall    GameLevelManager__sharedState                                  ; +0xd0, 0x1002426e0\nlea     rcx, [rbx+238h]                                                ; +0xd5, 0x1002426e5\nmov     [rax+550h], rcx                                                ; +0xdc, 0x1002426ec\nmov     rax, [rbx+248h]                                                ; +0xe3, 0x1002426f3\ntest    rax, rax                                                       ; +0xea, 0x1002426fa\njz      short loc_10024270A                                            ; +0xed, 0x1002426fd\nmov     qword ptr [rax+298h], 0                                        ; +0xef, 0x1002426ff\nlea     rdi, [rbx+230h]                                                ; +0xfa, 0x10024270a\nmov     [rbp+var_28], 26h ; '&'                                        ; +0x101, 0x100242711\nmovups  xmm0, xmmword ptr cs:aDeletingMessag_0; \"Deleting message...\"  ; +0x105, 0x100242715\nmovups  xmmword ptr [rbp+var_28+1], xmm0                               ; +0x10c, 0x10024271c\nmov     dword ptr [rbp+var_28+10h], 2E2E2E65h                          ; +0x110, 0x100242720\nmov     [rbp+var_28+14h], 0                                            ; +0x117, 0x100242727\nlea     rsi, [rbp+var_28]                                              ; +0x11b, 0x10024272b\ncall    UploadActionPopup__create                                      ; +0x11f, 0x10024272f\nmov     [rbx+248h], rax                                                ; +0x124, 0x100242734\ntest    [rbp+var_28], 1                                                ; +0x12b, 0x10024273b\njz      short loc_100242751                                            ; +0x12f, 0x10024273f\nmov     rdi, qword ptr [rbp+var_28+10h]; __p                           ; +0x131, 0x100242741\ncall    __ZdlPv; operator delete(void *)                               ; +0x135, 0x100242745\nmov     rax, [rbx+248h]                                                ; +0x13a, 0x10024274a\nmov     rcx, [rax]                                                     ; +0x141, 0x100242751\nmov     rdi, rax                                                       ; +0x144, 0x100242754\ncall    qword ptr [rcx+520h]                                           ; +0x147, 0x100242757\nadd     rsp, 20h                                                       ; +0x14d, 0x10024275d\npop     rbx                                                            ; +0x151, 0x100242761\npop     r14                                                            ; +0x152, 0x100242762\npop     rbp                                                            ; +0x154, 0x100242764\nretn                                                                   ; +0x155, 0x100242765", "xrefs": ["sub_100242780 @ 0x10024278c", "<???> @ 0x100aee098"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}