{"type": "func", "start": 5370140512, "end": 5370140923, "name": "GJMessageCell::FLAlert_Clicked", "pseudocode": "// \n// GJMessageCell::FLAlert_Clicked from 0x14015d760 to 0x14015d8fb (411 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14073dc68\n// > <???> @ 0x140917bdc\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 11:27:23 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GJMessageCell::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)\n{\n  __int64 v4; // rcx\n  __int64 v5; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // 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 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 && *(_QWORD *)(a1 + 24) )\n  {\n    GJMessageCell::markAsRead(a1 - 560);\n    v4 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v13 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v13);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v4 = *(_QWORD *)&qword_14090BFB0;\n    }\n    if ( (unsigned __int8)GameLevelManager::deleteUserMessages(\n                            v4,\n                            *(_QWORD *)(a1 + 24),\n                            0,\n                            *(unsigned __int8 *)(*(_QWORD *)(a1 + 24) + 465LL)) )\n    {\n      v5 = a1 + 16;\n      if ( a1 == 560 )\n        v5 = 0;\n      v6 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v14 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v6 = *(_QWORD *)&qword_14090BFB0;\n      }\n      *(_QWORD *)(v6 + 1488) = v5;\n      v7 = *(_QWORD *)(a1 + 32);\n      if ( v7 )\n        *(_QWORD *)(v7 + 664) = 0;\n      v10 = 0;\n      *(_QWORD *)&v10 = sub_14003D460(0x20u);\n      v11 = 19;\n      v12 = 31;\n      strcpy((char *)v10, \"Deleting message...\");\n      v8 = a1 + 8;\n      if ( a1 == 560 )\n        v8 = 0;\n      v9 = UploadActionPopup::create(v8, &v10);\n      *(_QWORD *)(a1 + 32) = v9;\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1064LL))(v9);\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::FLAlert_Clicked from 0x14015d760 to 0x14015d8fb (411 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14073dc68\n; > <???> @ 0x140917bdc\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 11:27:23 +0000\n; \ntest    r8b, r8b                                                       ; +0x0, 0x14015d760\njz      locret_14015D8FA                                               ; +0x3, 0x14015d763\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x14015d769\nmov     [rsp+arg_8], rbp                                               ; +0xe, 0x14015d76e\nmov     [rsp+arg_10], rsi                                              ; +0x13, 0x14015d773\npush    rdi                                                            ; +0x18, 0x14015d778\nsub     rsp, 40h                                                       ; +0x19, 0x14015d779\nmov     rbx, rcx                                                       ; +0x1d, 0x14015d77d\nmov     rax, [rdx]                                                     ; +0x20, 0x14015d780\nmov     rcx, rdx                                                       ; +0x23, 0x14015d783\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x14015d786\ncmp     eax, 1                                                         ; +0x29, 0x14015d789\njnz     loc_14015D8E6                                                  ; +0x2c, 0x14015d78c\ncmp     qword ptr [rbx+18h], 0                                         ; +0x32, 0x14015d792\njz      loc_14015D8E6                                                  ; +0x37, 0x14015d797\nlea     rsi, [rbx-230h]                                                ; +0x3d, 0x14015d79d\nmov     rcx, rsi                                                       ; +0x44, 0x14015d7a4\ncall    GJMessageCell__markAsRead                                      ; +0x47, 0x14015d7a7\nmov     rcx, cs:qword_14090BFB0                                        ; +0x4c, 0x14015d7ac\ntest    rcx, rcx                                                       ; +0x53, 0x14015d7b3\njnz     short loc_14015D7EA                                            ; +0x56, 0x14015d7b6\nmov     ecx, 690h; Size                                                ; +0x58, 0x14015d7b8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5d, 0x14015d7bd\nmov     [rsp+48h+arg_18], rax                                          ; +0x62, 0x14015d7c2\nmov     rcx, rax                                                       ; +0x67, 0x14015d7c7\ncall    GameLevelManager__GameLevelManager                             ; +0x6a, 0x14015d7ca\nnop                                                                    ; +0x6f, 0x14015d7cf\nmov     cs:qword_14090BFB0, rax                                        ; +0x70, 0x14015d7d0\nmov     rcx, [rax]                                                     ; +0x77, 0x14015d7d7\nmov     rdx, [rcx+48h]                                                 ; +0x7a, 0x14015d7da\nmov     rcx, rax                                                       ; +0x7e, 0x14015d7de\ncall    rdx                                                            ; +0x81, 0x14015d7e1\nmov     rcx, cs:qword_14090BFB0                                        ; +0x83, 0x14015d7e3\nmov     rdx, [rbx+18h]                                                 ; +0x8a, 0x14015d7ea\nmovzx   r9d, byte ptr [rdx+1D1h]                                       ; +0x8e, 0x14015d7ee\nxor     r8d, r8d                                                       ; +0x96, 0x14015d7f6\ncall    GameLevelManager__deleteUserMessages                           ; +0x99, 0x14015d7f9\ntest    al, al                                                         ; +0x9e, 0x14015d7fe\njz      loc_14015D8E6                                                  ; +0xa0, 0x14015d800\nlea     rdi, [rbx+10h]                                                 ; +0xa6, 0x14015d806\nxor     ebp, ebp                                                       ; +0xaa, 0x14015d80a\ntest    rsi, rsi                                                       ; +0xac, 0x14015d80c\ncmovz   rdi, rbp                                                       ; +0xaf, 0x14015d80f\nmov     rax, cs:qword_14090BFB0                                        ; +0xb3, 0x14015d813\ntest    rax, rax                                                       ; +0xba, 0x14015d81a\njnz     short loc_14015D851                                            ; +0xbd, 0x14015d81d\nmov     ecx, 690h; Size                                                ; +0xbf, 0x14015d81f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc4, 0x14015d824\nmov     [rsp+48h+arg_18], rax                                          ; +0xc9, 0x14015d829\nmov     rcx, rax                                                       ; +0xce, 0x14015d82e\ncall    GameLevelManager__GameLevelManager                             ; +0xd1, 0x14015d831\nnop                                                                    ; +0xd6, 0x14015d836\nmov     cs:qword_14090BFB0, rax                                        ; +0xd7, 0x14015d837\nmov     rcx, [rax]                                                     ; +0xde, 0x14015d83e\nmov     rdx, [rcx+48h]                                                 ; +0xe1, 0x14015d841\nmov     rcx, rax                                                       ; +0xe5, 0x14015d845\ncall    rdx                                                            ; +0xe8, 0x14015d848\nmov     rax, cs:qword_14090BFB0                                        ; +0xea, 0x14015d84a\nmov     [rax+5D0h], rdi                                                ; +0xf1, 0x14015d851\nmov     rax, [rbx+20h]                                                 ; +0xf8, 0x14015d858\ntest    rax, rax                                                       ; +0xfc, 0x14015d85c\njz      short loc_14015D868                                            ; +0xff, 0x14015d85f\nmov     [rax+298h], rbp                                                ; +0x101, 0x14015d861\nxorps   xmm0, xmm0                                                     ; +0x108, 0x14015d868\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x10b, 0x14015d86b\nmov     [rsp+48h+var_18], rbp                                          ; +0x110, 0x14015d870\nmov     [rsp+48h+var_10], rbp                                          ; +0x115, 0x14015d875\nmov     ecx, 20h ; ' '                                                 ; +0x11a, 0x14015d87a\ncall    sub_14003D460                                                  ; +0x11f, 0x14015d87f\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x124, 0x14015d884\nmov     [rsp+48h+var_18], 13h                                          ; +0x129, 0x14015d889\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x132, 0x14015d892\nmovups  xmm0, cs:xmmword_14073A3D8                                     ; +0x13b, 0x14015d89b\nmovups  xmmword ptr [rax], xmm0                                        ; +0x142, 0x14015d8a2\nmovzx   ecx, cs:word_14073A3E8                                         ; +0x145, 0x14015d8a5\nmov     [rax+10h], cx                                                  ; +0x14c, 0x14015d8ac\nmovzx   ecx, cs:byte_14073A3EA                                         ; +0x150, 0x14015d8b0\nmov     [rax+12h], cl                                                  ; +0x157, 0x14015d8b7\nmov     byte ptr [rax+13h], 0                                          ; +0x15a, 0x14015d8ba\nlea     rcx, [rbx+8]                                                   ; +0x15e, 0x14015d8be\ntest    rsi, rsi                                                       ; +0x162, 0x14015d8c2\ncmovz   rcx, rbp                                                       ; +0x165, 0x14015d8c5\nlea     rdx, [rsp+48h+var_28]                                          ; +0x169, 0x14015d8c9\ncall    UploadActionPopup__create                                      ; +0x16e, 0x14015d8ce\nmov     [rbx+20h], rax                                                 ; +0x173, 0x14015d8d3\nmov     rcx, [rax]                                                     ; +0x177, 0x14015d8d7\nmov     rdx, [rcx+428h]                                                ; +0x17a, 0x14015d8da\nmov     rcx, rax                                                       ; +0x181, 0x14015d8e1\ncall    rdx                                                            ; +0x184, 0x14015d8e4\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x186, 0x14015d8e6\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x18b, 0x14015d8eb\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x190, 0x14015d8f0\nadd     rsp, 40h                                                       ; +0x195, 0x14015d8f5\npop     rdi                                                            ; +0x199, 0x14015d8f9\nretn                                                                   ; +0x19a, 0x14015d8fa", "xrefs": ["<???> @ 0x14073dc68", "<???> @ 0x140917bdc"], "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"}