{"type": "func", "start": 5371051984, "end": 5371052436, "name": "GameLevelManager::messageWasRemoved", "pseudocode": "// \n// GameLevelManager::messageWasRemoved from 0x14023bfd0 to 0x14023c194 (452 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf75\n// > <???> @ 0x14091c0d0\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::messageWasRemoved(__int64 a1, int a2, unsigned __int8 a3)\n{\n  char v5; // si\n  int v6; // r12d\n  int v7; // eax\n  cocos2d::CCString *v8; // rax\n  char *CString; // rbp\n  char v10; // r14\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::CCArray *v12; // rdi\n  unsigned int v13; // ebx\n  void (__fastcall ***v14)(_QWORD, cocos2d::CCArray *, char *); // rcx\n  size_t v15; // r8\n  void *v16; // rcx\n  int i; // [rsp+30h] [rbp-68h]\n  __int128 v18; // [rsp+38h] [rbp-60h] BYREF\n  __int128 v19; // [rsp+48h] [rbp-50h]\n\n  v5 = 1;\n  v6 = 0;\n  v7 = a3;\n  for ( i = a3; ; v7 = i )\n  {\n    v8 = cocos2d::CCString::createWithFormat(\"messages_%i_%i\", v7, v6);\n    CString = (char *)cocos2d::CCString::getCString(v8);\n    v10 = 0;\n    StoredOnlineLevels = (cocos2d::CCArray *)GameLevelManager::getStoredOnlineLevels(a1, CString);\n    v12 = StoredOnlineLevels;\n    if ( !StoredOnlineLevels )\n      break;\n    v13 = 0;\n    if ( cocos2d::CCArray::count(StoredOnlineLevels) )\n    {\n      while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v12, v13) + 80) != a2 )\n      {\n        if ( ++v13 >= cocos2d::CCArray::count(v12) )\n          goto LABEL_8;\n      }\n      v10 = 1;\n      v5 = 0;\n      cocos2d::CCArray::removeObjectAtIndex(v12, v13, 1);\n    }\nLABEL_8:\n    ++v6;\n    if ( v10 )\n    {\n      v14 = *(void (__fastcall ****)(_QWORD, cocos2d::CCArray *, char *))(a1 + 1512);\n      if ( v14 )\n      {\n        (**v14)(v14, v12, CString);\n        if ( !cocos2d::CCArray::count(v12) )\n        {\n          v18 = 0;\n          v19 = 0;\n          v15 = -1;\n          do\n            ++v15;\n          while ( CString[v15] );\n          sub_14003D230(&v18, CString, v15);\n          cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), &v18);\n          if ( *((_QWORD *)&v19 + 1) > 0xFu )\n          {\n            v16 = (void *)v18;\n            if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 )\n            {\n              v16 = *(void **)(v18 - 8);\n              if ( (unsigned __int64)(v18 - (_QWORD)v16 - 8) > 0x1F )\n                invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n            }\n            j_j_free(v16);\n          }\n        }\n      }\n    }\n    if ( !v5 )\n      break;\n  }\n}", "assembly": "; \n; GameLevelManager::messageWasRemoved from 0x14023bfd0 to 0x14023c194 (452 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf75\n; > <???> @ 0x14091c0d0\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_8], rbx                                               ; +0x0, 0x14023bfd0\npush    rbp                                                            ; +0x5, 0x14023bfd5\npush    rsi                                                            ; +0x6, 0x14023bfd6\npush    rdi                                                            ; +0x7, 0x14023bfd7\npush    r12                                                            ; +0x8, 0x14023bfd8\npush    r13                                                            ; +0xa, 0x14023bfda\npush    r14                                                            ; +0xc, 0x14023bfdc\npush    r15                                                            ; +0xe, 0x14023bfde\nsub     rsp, 60h                                                       ; +0x10, 0x14023bfe0\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x14023bfe4\nxor     rax, rsp                                                       ; +0x1b, 0x14023bfeb\nmov     [rsp+98h+var_40], rax                                          ; +0x1e, 0x14023bfee\nmov     r15d, edx                                                      ; +0x23, 0x14023bff3\nmov     r13, rcx                                                       ; +0x26, 0x14023bff6\nmov     sil, 1                                                         ; +0x29, 0x14023bff9\nxor     r12d, r12d                                                     ; +0x2c, 0x14023bffc\nmovzx   eax, r8b                                                       ; +0x2f, 0x14023bfff\nmov     [rsp+98h+var_68], eax                                          ; +0x33, 0x14023c003\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x14023c007\nmov     r8d, r12d                                                      ; +0x40, 0x14023c010\nmov     edx, eax                                                       ; +0x43, 0x14023c013\nlea     rcx, aMessagesII; \"messages_%i_%i\"                             ; +0x45, 0x14023c015\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4c, 0x14023c01c\nmov     rcx, rax                                                       ; +0x52, 0x14023c022\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x55, 0x14023c025\nmov     rbp, rax                                                       ; +0x5b, 0x14023c02b\nxor     r14b, r14b                                                     ; +0x5e, 0x14023c02e\nmov     rdx, rax                                                       ; +0x61, 0x14023c031\nmov     rcx, r13                                                       ; +0x64, 0x14023c034\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x67, 0x14023c037\nmov     rdi, rax                                                       ; +0x6c, 0x14023c03c\ntest    rax, rax                                                       ; +0x6f, 0x14023c03f\njz      loc_14023C16F                                                  ; +0x72, 0x14023c042\nxor     ebx, ebx                                                       ; +0x78, 0x14023c048\nmov     rcx, rax                                                       ; +0x7a, 0x14023c04a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7d, 0x14023c04d\ntest    eax, eax                                                       ; +0x83, 0x14023c053\njz      short loc_14023C097                                            ; +0x85, 0x14023c055\nnop     word ptr [rax+rax+00000000h]                                   ; +0x87, 0x14023c057\nmov     edx, ebx                                                       ; +0x90, 0x14023c060\nmov     rcx, rdi                                                       ; +0x92, 0x14023c062\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x14023c065\nmov     rcx, rdi                                                       ; +0x9b, 0x14023c06b\ncmp     [rax+140h], r15d                                               ; +0x9e, 0x14023c06e\njz      short loc_14023C085                                            ; +0xa5, 0x14023c075\ninc     ebx                                                            ; +0xa7, 0x14023c077\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa9, 0x14023c079\ncmp     ebx, eax                                                       ; +0xaf, 0x14023c07f\njb      short loc_14023C060                                            ; +0xb1, 0x14023c081\njmp     short loc_14023C097                                            ; +0xb3, 0x14023c083\nmov     r14b, 1                                                        ; +0xb5, 0x14023c085\nxor     sil, sil                                                       ; +0xb8, 0x14023c088\nmovzx   r8d, r14b                                                      ; +0xbb, 0x14023c08b\nmov     edx, ebx                                                       ; +0xbf, 0x14023c08f\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xc1, 0x14023c091\ninc     r12d                                                           ; +0xc7, 0x14023c097\ntest    r14b, r14b                                                     ; +0xca, 0x14023c09a\njz      loc_14023C147                                                  ; +0xcd, 0x14023c09d\nmov     rcx, [r13+5E8h]                                                ; +0xd3, 0x14023c0a3\ntest    rcx, rcx                                                       ; +0xda, 0x14023c0aa\njz      loc_14023C147                                                  ; +0xdd, 0x14023c0ad\nmov     rax, [rcx]                                                     ; +0xe3, 0x14023c0b3\nmov     r8, rbp                                                        ; +0xe6, 0x14023c0b6\nmov     rdx, rdi                                                       ; +0xe9, 0x14023c0b9\ncall    qword ptr [rax]                                                ; +0xec, 0x14023c0bc\nmov     rcx, rdi                                                       ; +0xee, 0x14023c0be\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf1, 0x14023c0c1\ntest    eax, eax                                                       ; +0xf7, 0x14023c0c7\njnz     short loc_14023C147                                            ; +0xf9, 0x14023c0c9\nxorps   xmm0, xmm0                                                     ; +0xfb, 0x14023c0cb\nmovups  [rsp+98h+var_60], xmm0                                         ; +0xfe, 0x14023c0ce\nxorps   xmm1, xmm1                                                     ; +0x103, 0x14023c0d3\nmovdqu  [rsp+98h+var_50], xmm1                                         ; +0x106, 0x14023c0d6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x10c, 0x14023c0dc\ninc     r8                                                             ; +0x113, 0x14023c0e3\ncmp     byte ptr [r8+rbp], 0                                           ; +0x116, 0x14023c0e6\njnz     short loc_14023C0E3                                            ; +0x11b, 0x14023c0eb\nmov     rdx, rbp                                                       ; +0x11d, 0x14023c0ed\nlea     rcx, [rsp+98h+var_60]                                          ; +0x120, 0x14023c0f0\ncall    sub_14003D230                                                  ; +0x125, 0x14023c0f5\nnop                                                                    ; +0x12a, 0x14023c0fa\nlea     rdx, [rsp+98h+var_60]                                          ; +0x12b, 0x14023c0fb\nmov     rcx, [r13+480h]                                                ; +0x130, 0x14023c100\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 &) ; +0x137, 0x14023c107\nnop                                                                    ; +0x13d, 0x14023c10d\nmov     rdx, qword ptr [rsp+98h+var_50+8]                              ; +0x13e, 0x14023c10e\ncmp     rdx, 0Fh                                                       ; +0x143, 0x14023c113\njbe     short loc_14023C147                                            ; +0x147, 0x14023c117\ninc     rdx                                                            ; +0x149, 0x14023c119\nmov     rcx, qword ptr [rsp+98h+var_60]                                ; +0x14c, 0x14023c11c\nmov     rax, rcx                                                       ; +0x151, 0x14023c121\ncmp     rdx, 1000h                                                     ; +0x154, 0x14023c124\njb      short loc_14023C142                                            ; +0x15b, 0x14023c12b\nadd     rdx, 27h ; '''                                                 ; +0x15d, 0x14023c12d\nmov     rcx, [rcx-8]; Block                                            ; +0x161, 0x14023c131\nsub     rax, rcx                                                       ; +0x165, 0x14023c135\nsub     rax, 8                                                         ; +0x168, 0x14023c138\ncmp     rax, 1Fh                                                       ; +0x16c, 0x14023c13c\nja      short loc_14023C155                                            ; +0x170, 0x14023c140\ncall    j_j_free                                                       ; +0x172, 0x14023c142\ntest    sil, sil                                                       ; +0x177, 0x14023c147\njz      short loc_14023C16F                                            ; +0x17a, 0x14023c14a\nmov     eax, [rsp+98h+var_68]                                          ; +0x17c, 0x14023c14c\njmp     loc_14023C010                                                  ; +0x180, 0x14023c150\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x185, 0x14023c155\nxor     r9d, r9d; LineNo                                               ; +0x18e, 0x14023c15e\nxor     r8d, r8d; FileName                                             ; +0x191, 0x14023c161\nxor     edx, edx; FunctionName                                         ; +0x194, 0x14023c164\nxor     ecx, ecx; Expression                                           ; +0x196, 0x14023c166\ncall    cs:_invoke_watson                                              ; +0x198, 0x14023c168\ndb 0CCh                                                                ; +0x19e, 0x14023c16e\nmov     rcx, [rsp+98h+var_40]                                          ; +0x19f, 0x14023c16f\nxor     rcx, rsp; StackCookie                                          ; +0x1a4, 0x14023c174\ncall    __security_check_cookie                                        ; +0x1a7, 0x14023c177\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x1ac, 0x14023c17c\nadd     rsp, 60h                                                       ; +0x1b4, 0x14023c184\npop     r15                                                            ; +0x1b8, 0x14023c188\npop     r14                                                            ; +0x1ba, 0x14023c18a\npop     r13                                                            ; +0x1bc, 0x14023c18c\npop     r12                                                            ; +0x1be, 0x14023c18e\npop     rdi                                                            ; +0x1c0, 0x14023c190\npop     rsi                                                            ; +0x1c1, 0x14023c191\npop     rbp                                                            ; +0x1c2, 0x14023c192\nretn                                                                   ; +0x1c3, 0x14023c193", "xrefs": ["GameLevelManager::onDeleteUserMessagesCompleted @ 0x14023bf75", "<???> @ 0x14091c0d0"], "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"}