{"type": "func", "start": 5371051504, "end": 5371051972, "name": "GameLevelManager::onDeleteUserMessagesCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteUserMessagesCompleted from 0x14023bdf0 to 0x14023bfc4 (468 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a2bf\n// > <???> @ 0x14091c0c4\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=3\nvoid __fastcall GameLevelManager::onDeleteUserMessagesCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rbx\n  size_t v7; // r8\n  __int64 v8; // rcx\n  void *v9; // rcx\n  unsigned int SplitIntFromKey; // ebp\n  __int64 v11; // rcx\n  bool v12; // r15\n  const void *v13; // rcx\n  unsigned __int64 v14; // rbx\n  size_t v15; // r8\n  __int64 v16; // r8\n  void (__fastcall ***v17)(_QWORD, _QWORD, __int64); // rcx\n  __int64 v18; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int128 v20; // [rsp+50h] [rbp-58h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v20 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003D230(Block, v6, v7);\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);\n  if ( *((_QWORD *)&v20 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v8, v6, 1);\n  v12 = (unsigned int)GameLevelManager::getSplitIntFromKey(v11, v6, 2) != 0;\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v20 = 2;\n  *((_QWORD *)&v20 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v13 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v13 = *a2;\n  v14 = (unsigned __int64)a2[2];\n  v15 = v14;\n  if ( v14 > 2 )\n    v15 = 2;\n  if ( !memcmp(v13, Block, v15) && v14 == 2 )\n  {\n    v18 = *(_QWORD *)(a1 + 1488);\n    if ( v18 )\n      (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v18 + 8LL))(v18, SplitIntFromKey, 45);\n  }\n  else\n  {\n    v17 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488);\n    if ( v17 )\n      (**v17)(v17, SplitIntFromKey, 45);\n    if ( SplitIntFromKey == -1 )\n    {\n      LOBYTE(v16) = 1;\n      GameLevelManager::invalidateMessages(a1, v12, v16);\n    }\n    else\n    {\n      GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v12);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteUserMessagesCompleted from 0x14023bdf0 to 0x14023bfc4 (468 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a2bf\n; > <???> @ 0x14091c0c4\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; \npush    rbx                                                            ; +0x0, 0x14023bdf0\npush    rbp                                                            ; +0x2, 0x14023bdf2\npush    rsi                                                            ; +0x3, 0x14023bdf3\npush    rdi                                                            ; +0x4, 0x14023bdf4\npush    r12                                                            ; +0x5, 0x14023bdf5\npush    r14                                                            ; +0x7, 0x14023bdf7\npush    r15                                                            ; +0x9, 0x14023bdf9\nsub     rsp, 70h                                                       ; +0xb, 0x14023bdfb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14023bdff\nxor     rax, rsp                                                       ; +0x16, 0x14023be06\nmov     [rsp+0A8h+var_48], rax                                         ; +0x19, 0x14023be09\nmov     rsi, r8                                                        ; +0x1e, 0x14023be0e\nmov     r14, rdx                                                       ; +0x21, 0x14023be11\nmov     rdi, rcx                                                       ; +0x24, 0x14023be14\nmov     [rsp+0A8h+var_78], rdx                                         ; +0x27, 0x14023be17\nmov     [rsp+0A8h+var_70], r8                                          ; +0x2c, 0x14023be1c\nmov     rbx, r8                                                        ; +0x31, 0x14023be21\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x14023be24\njbe     short loc_14023BE2E                                            ; +0x39, 0x14023be29\nmov     rbx, [r8]                                                      ; +0x3b, 0x14023be2b\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x14023be2e\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x41, 0x14023be31\nxorps   xmm1, xmm1                                                     ; +0x46, 0x14023be36\nmovdqu  [rsp+0A8h+var_58], xmm1                                        ; +0x49, 0x14023be39\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4f, 0x14023be3f\ninc     r8                                                             ; +0x56, 0x14023be46\ncmp     byte ptr [rbx+r8], 0                                           ; +0x59, 0x14023be49\njnz     short loc_14023BE46                                            ; +0x5e, 0x14023be4e\nmov     rdx, rbx                                                       ; +0x60, 0x14023be50\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x63, 0x14023be53\ncall    sub_14003D230                                                  ; +0x68, 0x14023be58\nnop                                                                    ; +0x6d, 0x14023be5d\nlea     rdx, [rsp+0A8h+Block]                                          ; +0x6e, 0x14023be5e\nmov     rcx, [rdi+4B0h]                                                ; +0x73, 0x14023be63\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 &) ; +0x7a, 0x14023be6a\nnop                                                                    ; +0x80, 0x14023be70\nmov     rdx, qword ptr [rsp+0A8h+var_58+8]                             ; +0x81, 0x14023be71\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14023be76\njbe     short loc_14023BEC4                                            ; +0x8a, 0x14023be7a\ninc     rdx                                                            ; +0x8c, 0x14023be7c\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x8f, 0x14023be7f\nmov     rax, rcx                                                       ; +0x94, 0x14023be84\ncmp     rdx, 1000h                                                     ; +0x97, 0x14023be87\njb      short loc_14023BEBF                                            ; +0x9e, 0x14023be8e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14023be90\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x14023be94\nsub     rax, rcx                                                       ; +0xa8, 0x14023be98\nsub     rax, 8                                                         ; +0xab, 0x14023be9b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14023be9f\njbe     short loc_14023BEBF                                            ; +0xb3, 0x14023bea3\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0xb5, 0x14023bea5\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x14023beae\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x14023beb1\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x14023beb4\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x14023beb6\ncall    cs:_invoke_watson                                              ; +0xc8, 0x14023beb8\ndb 0CCh                                                                ; +0xce, 0x14023bebe\ncall    j_j_free                                                       ; +0xcf, 0x14023bebf\nmov     r8d, 1                                                         ; +0xd4, 0x14023bec4\nmov     rdx, rbx                                                       ; +0xda, 0x14023beca\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xdd, 0x14023becd\nmov     ebp, eax                                                       ; +0xe2, 0x14023bed2\nmov     r12d, 2                                                        ; +0xe4, 0x14023bed4\nmov     r8d, r12d                                                      ; +0xea, 0x14023beda\nmov     rdx, rbx                                                       ; +0xed, 0x14023bedd\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xf0, 0x14023bee0\ntest    eax, eax                                                       ; +0xf5, 0x14023bee5\nsetnz   r15b                                                           ; +0xf7, 0x14023bee7\nxorps   xmm0, xmm0                                                     ; +0xfb, 0x14023beeb\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xfe, 0x14023beee\nmov     qword ptr [rsp+0A8h+var_58], r12                               ; +0x103, 0x14023bef3\nmov     qword ptr [rsp+0A8h+var_58+8], 0Fh                             ; +0x108, 0x14023bef8\nmov     eax, 312Dh                                                     ; +0x111, 0x14023bf01\nmov     word ptr [rsp+0A8h+Block], ax                                  ; +0x116, 0x14023bf06\nmov     byte ptr [rsp+0A8h+Block+2], 0                                 ; +0x11b, 0x14023bf0b\nmov     rcx, r14                                                       ; +0x120, 0x14023bf10\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x123, 0x14023bf13\njbe     short loc_14023BF1D                                            ; +0x128, 0x14023bf18\nmov     rcx, [r14]; Buf1                                               ; +0x12a, 0x14023bf1a\nmov     rbx, [r14+10h]                                                 ; +0x12d, 0x14023bf1d\nmov     r8, rbx                                                        ; +0x131, 0x14023bf21\ncmp     rbx, r12                                                       ; +0x134, 0x14023bf24\ncmova   r8, r12; Size                                                  ; +0x137, 0x14023bf27\nlea     rdx, [rsp+0A8h+Block]; Buf2                                    ; +0x13b, 0x14023bf2b\ncall    memcmp                                                         ; +0x140, 0x14023bf30\ntest    eax, eax                                                       ; +0x145, 0x14023bf35\njnz     short loc_14023BF40                                            ; +0x147, 0x14023bf37\ncmp     rbx, r12                                                       ; +0x149, 0x14023bf39\njb      short loc_14023BF40                                            ; +0x14c, 0x14023bf3c\njbe     short loc_14023BF7C                                            ; +0x14e, 0x14023bf3e\nmov     rcx, [rdi+5D0h]                                                ; +0x150, 0x14023bf40\ntest    rcx, rcx                                                       ; +0x157, 0x14023bf47\njz      short loc_14023BF59                                            ; +0x15a, 0x14023bf4a\nmov     rax, [rcx]                                                     ; +0x15c, 0x14023bf4c\nmov     r8d, 2Dh ; '-'                                                 ; +0x15f, 0x14023bf4f\nmov     edx, ebp                                                       ; +0x165, 0x14023bf55\ncall    qword ptr [rax]                                                ; +0x167, 0x14023bf57\nmov     rcx, rdi                                                       ; +0x169, 0x14023bf59\ncmp     ebp, 0FFFFFFFFh                                                ; +0x16c, 0x14023bf5c\njnz     short loc_14023BF6F                                            ; +0x16f, 0x14023bf5f\nmov     r8b, 1                                                         ; +0x171, 0x14023bf61\nmovzx   edx, r15b                                                      ; +0x174, 0x14023bf64\ncall    GameLevelManager__invalidateMessages                           ; +0x178, 0x14023bf68\njmp     short loc_14023BF97                                            ; +0x17d, 0x14023bf6d\nmovzx   r8d, r15b                                                      ; +0x17f, 0x14023bf6f\nmov     edx, ebp                                                       ; +0x183, 0x14023bf73\ncall    GameLevelManager__messageWasRemoved                            ; +0x185, 0x14023bf75\njmp     short loc_14023BF97                                            ; +0x18a, 0x14023bf7a\nmov     rcx, [rdi+5D0h]                                                ; +0x18c, 0x14023bf7c\ntest    rcx, rcx                                                       ; +0x193, 0x14023bf83\njz      short loc_14023BF97                                            ; +0x196, 0x14023bf86\nmov     rax, [rcx]                                                     ; +0x198, 0x14023bf88\nmov     r8d, 2Dh ; '-'                                                 ; +0x19b, 0x14023bf8b\nmov     edx, ebp                                                       ; +0x1a1, 0x14023bf91\ncall    qword ptr [rax+8]                                              ; +0x1a3, 0x14023bf93\nnop                                                                    ; +0x1a6, 0x14023bf96\nmov     rcx, r14                                                       ; +0x1a7, 0x14023bf97\ncall    sub_14003D310                                                  ; +0x1aa, 0x14023bf9a\nnop                                                                    ; +0x1af, 0x14023bf9f\nmov     rcx, rsi                                                       ; +0x1b0, 0x14023bfa0\ncall    sub_14003D310                                                  ; +0x1b3, 0x14023bfa3\nmov     rcx, [rsp+0A8h+var_48]                                         ; +0x1b8, 0x14023bfa8\nxor     rcx, rsp; StackCookie                                          ; +0x1bd, 0x14023bfad\ncall    __security_check_cookie                                        ; +0x1c0, 0x14023bfb0\nadd     rsp, 70h                                                       ; +0x1c5, 0x14023bfb5\npop     r15                                                            ; +0x1c9, 0x14023bfb9\npop     r14                                                            ; +0x1cb, 0x14023bfbb\npop     r12                                                            ; +0x1cd, 0x14023bfbd\npop     rdi                                                            ; +0x1cf, 0x14023bfbf\npop     rsi                                                            ; +0x1d0, 0x14023bfc0\npop     rbp                                                            ; +0x1d1, 0x14023bfc1\npop     rbx                                                            ; +0x1d2, 0x14023bfc2\nretn                                                                   ; +0x1d3, 0x14023bfc3", "xrefs": ["GameLevelManager::handleIt @ 0x14021a2bf", "<???> @ 0x14091c0c4"], "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"}