{"type": "func", "start": 5370925344, "end": 5370925625, "name": "GameLevelManager::deleteLevelList", "pseudocode": "// \n// GameLevelManager::deleteLevelList from 0x14021d120 to 0x14021d239 (281 bytes)\n// \n// 4 xrefs:\n// > LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea6de\n// > LevelListLayer::FLAlert_Clicked @ 0x14042f4ef\n// > LevelListLayer::onFavorite @ 0x14042f692\n// > <???> @ 0x14091ba88\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameLevelManager::deleteLevelList(__int64 a1, unsigned int *a2)\n{\n  __int64 v4; // rax\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // r8\n  void *v8; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-28h]\n\n  if ( a2[146] == 2 )\n  {\n    v4 = LocalLevelManager::sharedState(a1);\n    cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v4 + 376), (struct cocos2d::CCObject *)a2, 1);\n  }\n  else\n  {\n    v5 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a2[86]);\n    CString = cocos2d::CCString::getCString(v5);\n    *(_OWORD *)Block = 0;\n    v10 = 0;\n    v7 = -1;\n    do\n      ++v7;\n    while ( CString[v7] );\n    sub_14003D230(Block, CString, v7);\n    cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 880), Block);\n    if ( *((_QWORD *)&v10 + 1) > 0xFu )\n    {\n      v8 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v10 + 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  }\n}", "assembly": "; \n; GameLevelManager::deleteLevelList from 0x14021d120 to 0x14021d239 (281 bytes)\n; \n; 4 xrefs:\n; > LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea6de\n; > LevelListLayer::FLAlert_Clicked @ 0x14042f4ef\n; > LevelListLayer::onFavorite @ 0x14042f692\n; > <???> @ 0x14091ba88\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:23 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14021d120\npush    rdi                                                            ; +0x5, 0x14021d125\nsub     rsp, 60h                                                       ; +0x6, 0x14021d126\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14021d12a\nxor     rax, rsp                                                       ; +0x11, 0x14021d131\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14021d134\nmov     rbx, rdx                                                       ; +0x19, 0x14021d139\nmov     rdi, rcx                                                       ; +0x1c, 0x14021d13c\ncmp     dword ptr [rdx+248h], 2                                        ; +0x1f, 0x14021d13f\njnz     short loc_14021D165                                            ; +0x26, 0x14021d146\ncall    LocalLevelManager__sharedState                                 ; +0x28, 0x14021d148\nmov     r8b, 1                                                         ; +0x2d, 0x14021d14d\nmov     rdx, rbx                                                       ; +0x30, 0x14021d150\nmov     rcx, [rax+178h]                                                ; +0x33, 0x14021d153\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x3a, 0x14021d15a\njmp     loc_14021D21E                                                  ; +0x40, 0x14021d160\nmov     edx, [rdx+158h]                                                ; +0x45, 0x14021d165\nlea     rcx, word_1406ED6F8                                            ; +0x4b, 0x14021d16b\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x52, 0x14021d172\nmov     rcx, rax                                                       ; +0x58, 0x14021d178\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x5b, 0x14021d17b\nxorps   xmm0, xmm0                                                     ; +0x61, 0x14021d181\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x64, 0x14021d184\nxorps   xmm1, xmm1                                                     ; +0x69, 0x14021d189\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x6c, 0x14021d18c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x72, 0x14021d192\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x14021d199\ninc     r8                                                             ; +0x80, 0x14021d1a0\ncmp     byte ptr [rax+r8], 0                                           ; +0x83, 0x14021d1a3\njnz     short loc_14021D1A0                                            ; +0x88, 0x14021d1a8\nmov     rdx, rax                                                       ; +0x8a, 0x14021d1aa\nlea     rcx, [rsp+68h+Block]                                           ; +0x8d, 0x14021d1ad\ncall    sub_14003D230                                                  ; +0x92, 0x14021d1b2\nnop                                                                    ; +0x97, 0x14021d1b7\nlea     rdx, [rsp+68h+Block]                                           ; +0x98, 0x14021d1b8\nmov     rcx, [rdi+370h]                                                ; +0x9d, 0x14021d1bd\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 &) ; +0xa4, 0x14021d1c4\nnop                                                                    ; +0xaa, 0x14021d1ca\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0xab, 0x14021d1cb\ncmp     rdx, 0Fh                                                       ; +0xb0, 0x14021d1d0\njbe     short loc_14021D21E                                            ; +0xb4, 0x14021d1d4\ninc     rdx                                                            ; +0xb6, 0x14021d1d6\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xb9, 0x14021d1d9\nmov     rax, rcx                                                       ; +0xbe, 0x14021d1de\ncmp     rdx, 1000h                                                     ; +0xc1, 0x14021d1e1\njb      short loc_14021D219                                            ; +0xc8, 0x14021d1e8\nadd     rdx, 27h ; '''                                                 ; +0xca, 0x14021d1ea\nmov     rcx, [rcx-8]                                                   ; +0xce, 0x14021d1ee\nsub     rax, rcx                                                       ; +0xd2, 0x14021d1f2\nsub     rax, 8                                                         ; +0xd5, 0x14021d1f5\ncmp     rax, 1Fh                                                       ; +0xd9, 0x14021d1f9\njbe     short loc_14021D219                                            ; +0xdd, 0x14021d1fd\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xdf, 0x14021d1ff\nxor     r9d, r9d; LineNo                                               ; +0xe8, 0x14021d208\nxor     r8d, r8d; FileName                                             ; +0xeb, 0x14021d20b\nxor     edx, edx; FunctionName                                         ; +0xee, 0x14021d20e\nxor     ecx, ecx; Expression                                           ; +0xf0, 0x14021d210\ncall    cs:_invoke_watson                                              ; +0xf2, 0x14021d212\ndb 0CCh                                                                ; +0xf8, 0x14021d218\ncall    j_j_free                                                       ; +0xf9, 0x14021d219\nmov     rcx, [rsp+68h+var_18]                                          ; +0xfe, 0x14021d21e\nxor     rcx, rsp; StackCookie                                          ; +0x103, 0x14021d223\ncall    __security_check_cookie                                        ; +0x106, 0x14021d226\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x10b, 0x14021d22b\nadd     rsp, 60h                                                       ; +0x113, 0x14021d233\npop     rdi                                                            ; +0x117, 0x14021d237\nretn                                                                   ; +0x118, 0x14021d238", "xrefs": ["LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea6de", "LevelListLayer::FLAlert_Clicked @ 0x14042f4ef", "LevelListLayer::onFavorite @ 0x14042f692", "<???> @ 0x14091ba88"], "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"}