{"type": "func", "start": 5371072592, "end": 5371072985, "name": "GameLevelManager::onDeleteCommentsCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteCommentsCompleted from 0x140241050 to 0x1402411d9 (393 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140219cb2\n// > <???> @ 0x14091c1b4\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:36 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onDeleteCommentsCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  size_t v7; // r8\n  void *v8; // rcx\n  const void *v9; // rcx\n  size_t v10; // r8\n  __int64 v11; // rcx\n  const char *v12; // rcx\n  unsigned int v13; // eax\n  __int64 v14; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-48h] BYREF\n  __int128 v16; // [rsp+50h] [rbp-38h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v16 = 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 *)&v16 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v16 = 2;\n  *((_QWORD *)&v16 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v9 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v9 = *a2;\n  v10 = (size_t)a2[2];\n  if ( v10 > 2 )\n    v10 = 2;\n  if ( !memcmp(v9, Block, v10) && a2[2] == (const void *)2 )\n  {\n    v11 = *(_QWORD *)(a1 + 1376);\n    if ( v11 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 32LL))(v11);\n  }\n  else\n  {\n    v12 = (const char *)a2;\n    if ( (unsigned __int64)a2[3] > 0xF )\n      v12 = (const char *)*a2;\n    v13 = atoi(v12);\n    v14 = *(_QWORD *)(a1 + 1376);\n    if ( v14 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 24LL))(v14, v13);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteCommentsCompleted from 0x140241050 to 0x1402411d9 (393 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140219cb2\n; > <???> @ 0x14091c1b4\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:36 +0000\n; \npush    rbx                                                            ; +0x0, 0x140241050\npush    rdi                                                            ; +0x2, 0x140241052\npush    r14                                                            ; +0x3, 0x140241053\nsub     rsp, 70h                                                       ; +0x5, 0x140241055\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x140241059\nxor     rax, rsp                                                       ; +0x10, 0x140241060\nmov     [rsp+88h+var_28], rax                                          ; +0x13, 0x140241063\nmov     rdi, r8                                                        ; +0x18, 0x140241068\nmov     rbx, rdx                                                       ; +0x1b, 0x14024106b\nmov     r14, rcx                                                       ; +0x1e, 0x14024106e\nmov     [rsp+88h+var_58], rdx                                          ; +0x21, 0x140241071\nmov     [rsp+88h+var_50], r8                                           ; +0x26, 0x140241076\nmov     rdx, r8                                                        ; +0x2b, 0x14024107b\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2e, 0x14024107e\njbe     short loc_140241088                                            ; +0x33, 0x140241083\nmov     rdx, [r8]                                                      ; +0x35, 0x140241085\nxorps   xmm0, xmm0                                                     ; +0x38, 0x140241088\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x3b, 0x14024108b\nxorps   xmm1, xmm1                                                     ; +0x40, 0x140241090\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0x43, 0x140241093\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x49, 0x140241099\ninc     r8                                                             ; +0x50, 0x1402410a0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x53, 0x1402410a3\njnz     short loc_1402410A0                                            ; +0x58, 0x1402410a8\nlea     rcx, [rsp+88h+Block]                                           ; +0x5a, 0x1402410aa\ncall    sub_14003D230                                                  ; +0x5f, 0x1402410af\nnop                                                                    ; +0x64, 0x1402410b4\nlea     rdx, [rsp+88h+Block]                                           ; +0x65, 0x1402410b5\nmov     rcx, [r14+4B0h]                                                ; +0x6a, 0x1402410ba\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 &) ; +0x71, 0x1402410c1\nnop                                                                    ; +0x77, 0x1402410c7\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0x78, 0x1402410c8\ncmp     rdx, 0Fh                                                       ; +0x7d, 0x1402410cd\njbe     short loc_14024111B                                            ; +0x81, 0x1402410d1\ninc     rdx                                                            ; +0x83, 0x1402410d3\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x86, 0x1402410d6\nmov     rax, rcx                                                       ; +0x8b, 0x1402410db\ncmp     rdx, 1000h                                                     ; +0x8e, 0x1402410de\njb      short loc_140241116                                            ; +0x95, 0x1402410e5\nadd     rdx, 27h ; '''                                                 ; +0x97, 0x1402410e7\nmov     rcx, [rcx-8]                                                   ; +0x9b, 0x1402410eb\nsub     rax, rcx                                                       ; +0x9f, 0x1402410ef\nsub     rax, 8                                                         ; +0xa2, 0x1402410f2\ncmp     rax, 1Fh                                                       ; +0xa6, 0x1402410f6\njbe     short loc_140241116                                            ; +0xaa, 0x1402410fa\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xac, 0x1402410fc\nxor     r9d, r9d; LineNo                                               ; +0xb5, 0x140241105\nxor     r8d, r8d; FileName                                             ; +0xb8, 0x140241108\nxor     edx, edx; FunctionName                                         ; +0xbb, 0x14024110b\nxor     ecx, ecx; Expression                                           ; +0xbd, 0x14024110d\ncall    cs:_invoke_watson                                              ; +0xbf, 0x14024110f\nalign 2                                                                ; +0xc5, 0x140241115\ncall    j_j_free                                                       ; +0xc6, 0x140241116\nxorps   xmm0, xmm0                                                     ; +0xcb, 0x14024111b\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xce, 0x14024111e\nmov     edx, 2                                                         ; +0xd3, 0x140241123\nmov     qword ptr [rsp+88h+var_38], rdx                                ; +0xd8, 0x140241128\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0xdd, 0x14024112d\nmov     eax, 312Dh                                                     ; +0xe6, 0x140241136\nmov     word ptr [rsp+88h+Block], ax                                   ; +0xeb, 0x14024113b\nmov     byte ptr [rsp+88h+Block+2], 0                                  ; +0xf0, 0x140241140\nmov     rcx, rbx                                                       ; +0xf5, 0x140241145\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xf8, 0x140241148\njbe     short loc_140241152                                            ; +0xfd, 0x14024114d\nmov     rcx, [rbx]; Buf1                                               ; +0xff, 0x14024114f\nmov     r8, [rbx+10h]                                                  ; +0x102, 0x140241152\ncmp     r8, rdx                                                        ; +0x106, 0x140241156\ncmova   r8, rdx; Size                                                  ; +0x109, 0x140241159\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x10d, 0x14024115d\ncall    memcmp                                                         ; +0x112, 0x140241162\ntest    eax, eax                                                       ; +0x117, 0x140241167\njnz     short loc_140241186                                            ; +0x119, 0x140241169\ncmp     qword ptr [rbx+10h], 2                                         ; +0x11b, 0x14024116b\njnz     short loc_140241186                                            ; +0x120, 0x140241170\nmov     rcx, [r14+560h]                                                ; +0x122, 0x140241172\ntest    rcx, rcx                                                       ; +0x129, 0x140241179\njz      short loc_1402411B2                                            ; +0x12c, 0x14024117c\nmov     rax, [rcx]                                                     ; +0x12e, 0x14024117e\ncall    qword ptr [rax+20h]                                            ; +0x131, 0x140241181\njmp     short loc_1402411B2                                            ; +0x134, 0x140241184\nmov     rcx, rbx                                                       ; +0x136, 0x140241186\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x139, 0x140241189\njbe     short loc_140241193                                            ; +0x13e, 0x14024118e\nmov     rcx, [rbx]; String                                             ; +0x140, 0x140241190\ncall    cs:atoi                                                        ; +0x143, 0x140241193\nmov     rcx, [r14+560h]                                                ; +0x149, 0x140241199\ntest    rcx, rcx                                                       ; +0x150, 0x1402411a0\njz      short loc_1402411B2                                            ; +0x153, 0x1402411a3\nmov     rdx, [rcx]                                                     ; +0x155, 0x1402411a5\nmov     r8, [rdx+18h]                                                  ; +0x158, 0x1402411a8\nmov     edx, eax                                                       ; +0x15c, 0x1402411ac\ncall    r8                                                             ; +0x15e, 0x1402411ae\nnop                                                                    ; +0x161, 0x1402411b1\nmov     rcx, rbx                                                       ; +0x162, 0x1402411b2\ncall    sub_14003D310                                                  ; +0x165, 0x1402411b5\nnop                                                                    ; +0x16a, 0x1402411ba\nmov     rcx, rdi                                                       ; +0x16b, 0x1402411bb\ncall    sub_14003D310                                                  ; +0x16e, 0x1402411be\nmov     rcx, [rsp+88h+var_28]                                          ; +0x173, 0x1402411c3\nxor     rcx, rsp; StackCookie                                          ; +0x178, 0x1402411c8\ncall    __security_check_cookie                                        ; +0x17b, 0x1402411cb\nadd     rsp, 70h                                                       ; +0x180, 0x1402411d0\npop     r14                                                            ; +0x184, 0x1402411d4\npop     rdi                                                            ; +0x186, 0x1402411d6\npop     rbx                                                            ; +0x187, 0x1402411d7\nretn                                                                   ; +0x188, 0x1402411d8", "xrefs": ["GameLevelManager::handleIt @ 0x140219cb2", "<???> @ 0x14091c1b4"], "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"}