{"type": "func", "start": 5371052448, "end": 5371052778, "name": "GameLevelManager::invalidateMessages", "pseudocode": "// \n// GameLevelManager::invalidateMessages from 0x14023c1a0 to 0x14023c2ea (330 bytes)\n// \n// 8 xrefs:\n// > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf68\n// > GameLevelManager::onBlockUserCompleted @ 0x140256b1b\n// > MessagesProfilePage::onUpdate @ 0x14047666b\n// > ProfilePage::init @ 0x140550ac0\n// > ProfilePage::init @ 0x140550b07\n// > ProfilePage::onUpdate @ 0x140551f96\n// > ProfilePage::onUpdate @ 0x140551fdd\n// > <???> @ 0x14091c0dc\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:28:34 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameLevelManager::invalidateMessages(__int64 a1, unsigned __int8 a2, char a3)\n{\n  int v4; // ebp\n  char v6; // di\n  int v7; // ebx\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  size_t v10; // r8\n  __int128 *v11; // rdx\n  void *v12; // rcx\n  __int64 v13; // rcx\n  __int128 v14; // [rsp+30h] [rbp-58h] BYREF\n  __int128 v15; // [rsp+40h] [rbp-48h]\n\n  v4 = a2;\n  v6 = 1;\n  v7 = 0;\n  do\n  {\n    v8 = cocos2d::CCString::createWithFormat(\"messages_%i_%i\", v4, v7);\n    CString = cocos2d::CCString::getCString(v8);\n    v14 = 0;\n    v15 = 0;\n    v10 = -1;\n    do\n      ++v10;\n    while ( CString[v10] );\n    sub_14003D230(&v14, CString, v10);\n    v11 = &v14;\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n      v11 = (__int128 *)v14;\n    if ( GameLevelManager::getStoredOnlineLevels(a1, v11) )\n      cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), &v14);\n    else\n      v6 = 0;\n    ++v7;\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n    {\n      v12 = (void *)v14;\n      if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n      {\n        v12 = *(void **)(v14 - 8);\n        if ( (unsigned __int64)(v14 - (_QWORD)v12 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v12);\n    }\n  }\n  while ( v6 );\n  if ( a3 )\n  {\n    v13 = *(_QWORD *)(a1 + 1512);\n    if ( v13 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 16LL))(v13, (unsigned __int8)v4);\n  }\n}", "assembly": "; \n; GameLevelManager::invalidateMessages from 0x14023c1a0 to 0x14023c2ea (330 bytes)\n; \n; 8 xrefs:\n; > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf68\n; > GameLevelManager::onBlockUserCompleted @ 0x140256b1b\n; > MessagesProfilePage::onUpdate @ 0x14047666b\n; > ProfilePage::init @ 0x140550ac0\n; > ProfilePage::init @ 0x140550b07\n; > ProfilePage::onUpdate @ 0x140551f96\n; > ProfilePage::onUpdate @ 0x140551fdd\n; > <???> @ 0x14091c0dc\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:28:34 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14023c1a0\npush    rbp                                                            ; +0x5, 0x14023c1a5\npush    rsi                                                            ; +0x6, 0x14023c1a6\npush    rdi                                                            ; +0x7, 0x14023c1a7\npush    r14                                                            ; +0x8, 0x14023c1a8\npush    r15                                                            ; +0xa, 0x14023c1aa\nsub     rsp, 60h                                                       ; +0xc, 0x14023c1ac\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x14023c1b0\nxor     rax, rsp                                                       ; +0x17, 0x14023c1b7\nmov     [rsp+88h+var_38], rax                                          ; +0x1a, 0x14023c1ba\nmovzx   r15d, r8b                                                      ; +0x1f, 0x14023c1bf\nmovzx   ebp, dl                                                        ; +0x23, 0x14023c1c3\nmov     rsi, rcx                                                       ; +0x26, 0x14023c1c6\nmov     dil, 1                                                         ; +0x29, 0x14023c1c9\nxor     ebx, ebx                                                       ; +0x2c, 0x14023c1cc\nxchg    ax, ax                                                         ; +0x2e, 0x14023c1ce\nmov     r8d, ebx                                                       ; +0x30, 0x14023c1d0\nmov     edx, ebp                                                       ; +0x33, 0x14023c1d3\nlea     rcx, aMessagesII; \"messages_%i_%i\"                             ; +0x35, 0x14023c1d5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3c, 0x14023c1dc\nmov     rcx, rax                                                       ; +0x42, 0x14023c1e2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x45, 0x14023c1e5\nxorps   xmm0, xmm0                                                     ; +0x4b, 0x14023c1eb\nmovups  [rsp+88h+var_58], xmm0                                         ; +0x4e, 0x14023c1ee\nxorps   xmm1, xmm1                                                     ; +0x53, 0x14023c1f3\nmovdqu  [rsp+88h+var_48], xmm1                                         ; +0x56, 0x14023c1f6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5c, 0x14023c1fc\ninc     r8                                                             ; +0x63, 0x14023c203\ncmp     byte ptr [rax+r8], 0                                           ; +0x66, 0x14023c206\njnz     short loc_14023C203                                            ; +0x6b, 0x14023c20b\nmov     rdx, rax                                                       ; +0x6d, 0x14023c20d\nlea     rcx, [rsp+88h+var_58]                                          ; +0x70, 0x14023c210\ncall    sub_14003D230                                                  ; +0x75, 0x14023c215\nnop                                                                    ; +0x7a, 0x14023c21a\nlea     rdx, [rsp+88h+var_58]                                          ; +0x7b, 0x14023c21b\ncmp     qword ptr [rsp+88h+var_48+8], 0Fh                              ; +0x80, 0x14023c220\ncmova   rdx, qword ptr [rsp+88h+var_58]                                ; +0x86, 0x14023c226\nmov     rcx, rsi                                                       ; +0x8c, 0x14023c22c\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x8f, 0x14023c22f\ntest    rax, rax                                                       ; +0x94, 0x14023c234\njz      short loc_14023C24D                                            ; +0x97, 0x14023c237\nlea     rdx, [rsp+88h+var_58]                                          ; +0x99, 0x14023c239\nmov     rcx, [rsi+480h]                                                ; +0x9e, 0x14023c23e\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0xa5, 0x14023c245\njmp     short loc_14023C250                                            ; +0xab, 0x14023c24b\nxor     dil, dil                                                       ; +0xad, 0x14023c24d\ninc     ebx                                                            ; +0xb0, 0x14023c250\nmov     rdx, qword ptr [rsp+88h+var_48+8]                              ; +0xb2, 0x14023c252\ncmp     rdx, 0Fh                                                       ; +0xb7, 0x14023c257\njbe     short loc_14023C28B                                            ; +0xbb, 0x14023c25b\ninc     rdx                                                            ; +0xbd, 0x14023c25d\nmov     rcx, qword ptr [rsp+88h+var_58]                                ; +0xc0, 0x14023c260\nmov     rax, rcx                                                       ; +0xc5, 0x14023c265\ncmp     rdx, 1000h                                                     ; +0xc8, 0x14023c268\njb      short loc_14023C286                                            ; +0xcf, 0x14023c26f\nadd     rdx, 27h ; '''                                                 ; +0xd1, 0x14023c271\nmov     rcx, [rcx-8]; Block                                            ; +0xd5, 0x14023c275\nsub     rax, rcx                                                       ; +0xd9, 0x14023c279\nsub     rax, 8                                                         ; +0xdc, 0x14023c27c\ncmp     rax, 1Fh                                                       ; +0xe0, 0x14023c280\nja      short loc_14023C2D0                                            ; +0xe4, 0x14023c284\ncall    j_j_free                                                       ; +0xe6, 0x14023c286\ntest    dil, dil                                                       ; +0xeb, 0x14023c28b\njnz     loc_14023C1D0                                                  ; +0xee, 0x14023c28e\ntest    r15b, r15b                                                     ; +0xf4, 0x14023c294\njz      short loc_14023C2AF                                            ; +0xf7, 0x14023c297\nmov     rcx, [rsi+5E8h]                                                ; +0xf9, 0x14023c299\ntest    rcx, rcx                                                       ; +0x100, 0x14023c2a0\njz      short loc_14023C2AF                                            ; +0x103, 0x14023c2a3\nmov     rax, [rcx]                                                     ; +0x105, 0x14023c2a5\nmovzx   edx, bpl                                                       ; +0x108, 0x14023c2a8\ncall    qword ptr [rax+10h]                                            ; +0x10c, 0x14023c2ac\nmov     rcx, [rsp+88h+var_38]                                          ; +0x10f, 0x14023c2af\nxor     rcx, rsp; StackCookie                                          ; +0x114, 0x14023c2b4\ncall    __security_check_cookie                                        ; +0x117, 0x14023c2b7\nmov     rbx, [rsp+88h+arg_10]                                          ; +0x11c, 0x14023c2bc\nadd     rsp, 60h                                                       ; +0x124, 0x14023c2c4\npop     r15                                                            ; +0x128, 0x14023c2c8\npop     r14                                                            ; +0x12a, 0x14023c2ca\npop     rdi                                                            ; +0x12c, 0x14023c2cc\npop     rsi                                                            ; +0x12d, 0x14023c2cd\npop     rbp                                                            ; +0x12e, 0x14023c2ce\nretn                                                                   ; +0x12f, 0x14023c2cf\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x130, 0x14023c2d0\nxor     r9d, r9d; LineNo                                               ; +0x139, 0x14023c2d9\nxor     r8d, r8d; FileName                                             ; +0x13c, 0x14023c2dc\nxor     edx, edx; FunctionName                                         ; +0x13f, 0x14023c2df\nxor     ecx, ecx; Expression                                           ; +0x141, 0x14023c2e1\ncall    cs:_invoke_watson                                              ; +0x143, 0x14023c2e3\ndb 0CCh                                                                ; +0x149, 0x14023c2e9", "xrefs": ["GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf68", "GameLevelManager::onBlockUserCompleted @ 0x140256b1b", "MessagesProfilePage::onUpdate @ 0x14047666b", "ProfilePage::init @ 0x140550ac0", "ProfilePage::init @ 0x140550b07", "ProfilePage::onUpdate @ 0x140551f96", "ProfilePage::onUpdate @ 0x140551fdd", "<???> @ 0x14091c0dc"], "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"}