{"type": "func", "start": 5373342080, "end": 5373342444, "name": "LocalLevelManager::getAllLevelsInDict", "pseudocode": "// \n// LocalLevelManager::getAllLevelsInDict from 0x14046b180 to 0x14046b2ec (364 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::createNewLevel @ 0x14021c15b\n// > GameLevelManager::getNextLevelName @ 0x14021c3ab\n// > <???> @ 0x140928070\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:32:36 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall LocalLevelManager::getAllLevelsInDict(__int64 a1)\n{\n  __int64 v2; // rbp\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v4; // rdi\n  _QWORD *v5; // rdx\n  size_t v6; // r8\n  void *v7; // rcx\n  __int128 v9; // [rsp+38h] [rbp-50h] BYREF\n  __int128 v10; // [rsp+48h] [rbp-40h]\n  _QWORD v11[4]; // [rsp+58h] [rbp-30h] BYREF\n\n  v2 = cocos2d::CCDictionary::create(a1);\n  for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 368)); ++i )\n  {\n    v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 368), i);\n    sub_14003F4F0((__int64)v11, (__int64)v4 + 344);\n    v5 = v11;\n    if ( v11[3] > 0xFu )\n      v5 = (_QWORD *)v11[0];\n    v9 = 0;\n    v10 = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( *((_BYTE *)v5 + v6) );\n    sub_14003D230(&v9, v5, v6);\n    sub_14003D310((__int64)v11);\n    if ( (_QWORD)v10 )\n      cocos2d::CCDictionary::setObject(v2, v4, &v9);\n    if ( *((_QWORD *)&v10 + 1) > 0xFu )\n    {\n      v7 = (void *)v9;\n      if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )\n      {\n        v7 = *(void **)(v9 - 8);\n        if ( (unsigned __int64)(v9 - (_QWORD)v7 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v7);\n    }\n  }\n  return v2;\n}", "assembly": "; \n; LocalLevelManager::getAllLevelsInDict from 0x14046b180 to 0x14046b2ec (364 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::createNewLevel @ 0x14021c15b\n; > GameLevelManager::getNextLevelName @ 0x14021c3ab\n; > <???> @ 0x140928070\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:32:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14046b180\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14046b185\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14046b18a\npush    rdi                                                            ; +0xf, 0x14046b18f\nsub     rsp, 80h                                                       ; +0x10, 0x14046b190\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14046b197\nxor     rax, rsp                                                       ; +0x1e, 0x14046b19e\nmov     [rsp+88h+var_10], rax                                          ; +0x21, 0x14046b1a1\nmov     rsi, rcx                                                       ; +0x26, 0x14046b1a6\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x29, 0x14046b1a9\nmov     rbp, rax                                                       ; +0x2f, 0x14046b1af\nxor     ebx, ebx                                                       ; +0x32, 0x14046b1b2\nmov     rcx, [rsi+170h]                                                ; +0x34, 0x14046b1b4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3b, 0x14046b1bb\ntest    eax, eax                                                       ; +0x41, 0x14046b1c1\njz      loc_14046B2A9                                                  ; +0x43, 0x14046b1c3\nnop     dword ptr [rax+00000000h]                                      ; +0x49, 0x14046b1c9\nmov     edx, ebx                                                       ; +0x50, 0x14046b1d0\nmov     rcx, [rsi+170h]                                                ; +0x52, 0x14046b1d2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x14046b1d9\nmov     rdi, rax                                                       ; +0x5f, 0x14046b1df\nlea     rdx, [rax+158h]                                                ; +0x62, 0x14046b1e2\nlea     rcx, [rsp+88h+var_30]                                          ; +0x69, 0x14046b1e9\ncall    sub_14003F4F0                                                  ; +0x6e, 0x14046b1ee\nnop                                                                    ; +0x73, 0x14046b1f3\nlea     rdx, [rsp+88h+var_30]                                          ; +0x74, 0x14046b1f4\ncmp     [rsp+88h+var_18], 0Fh                                          ; +0x79, 0x14046b1f9\ncmova   rdx, [rsp+88h+var_30]                                          ; +0x7f, 0x14046b1ff\nxorps   xmm0, xmm0                                                     ; +0x85, 0x14046b205\nmovups  [rsp+88h+var_50], xmm0                                         ; +0x88, 0x14046b208\nxorps   xmm1, xmm1                                                     ; +0x8d, 0x14046b20d\nmovdqu  [rsp+88h+var_40], xmm1                                         ; +0x90, 0x14046b210\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x96, 0x14046b216\nnop     dword ptr [rax]                                                ; +0x9d, 0x14046b21d\ninc     r8                                                             ; +0xa0, 0x14046b220\ncmp     byte ptr [rdx+r8], 0                                           ; +0xa3, 0x14046b223\njnz     short loc_14046B220                                            ; +0xa8, 0x14046b228\nlea     rcx, [rsp+88h+var_50]                                          ; +0xaa, 0x14046b22a\ncall    sub_14003D230                                                  ; +0xaf, 0x14046b22f\nnop                                                                    ; +0xb4, 0x14046b234\nlea     rcx, [rsp+88h+var_30]                                          ; +0xb5, 0x14046b235\ncall    sub_14003D310                                                  ; +0xba, 0x14046b23a\ncmp     qword ptr [rsp+88h+var_40], 0                                  ; +0xbf, 0x14046b23f\njbe     short loc_14046B259                                            ; +0xc5, 0x14046b245\nlea     r8, [rsp+88h+var_50]                                           ; +0xc7, 0x14046b247\nmov     rdx, rdi                                                       ; +0xcc, 0x14046b24c\nmov     rcx, rbp                                                       ; +0xcf, 0x14046b24f\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0xd2, 0x14046b252\nnop                                                                    ; +0xd8, 0x14046b258\nmov     rdx, qword ptr [rsp+88h+var_40+8]                              ; +0xd9, 0x14046b259\ncmp     rdx, 0Fh                                                       ; +0xde, 0x14046b25e\njbe     short loc_14046B292                                            ; +0xe2, 0x14046b262\ninc     rdx                                                            ; +0xe4, 0x14046b264\nmov     rcx, qword ptr [rsp+88h+var_50]                                ; +0xe7, 0x14046b267\nmov     rax, rcx                                                       ; +0xec, 0x14046b26c\ncmp     rdx, 1000h                                                     ; +0xef, 0x14046b26f\njb      short loc_14046B28D                                            ; +0xf6, 0x14046b276\nadd     rdx, 27h ; '''                                                 ; +0xf8, 0x14046b278\nmov     rcx, [rcx-8]; Block                                            ; +0xfc, 0x14046b27c\nsub     rax, rcx                                                       ; +0x100, 0x14046b280\nsub     rax, 8                                                         ; +0x103, 0x14046b283\ncmp     rax, 1Fh                                                       ; +0x107, 0x14046b287\nja      short loc_14046B2D2                                            ; +0x10b, 0x14046b28b\ncall    j_j_free                                                       ; +0x10d, 0x14046b28d\ninc     ebx                                                            ; +0x112, 0x14046b292\nmov     rcx, [rsi+170h]                                                ; +0x114, 0x14046b294\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11b, 0x14046b29b\ncmp     ebx, eax                                                       ; +0x121, 0x14046b2a1\njb      loc_14046B1D0                                                  ; +0x123, 0x14046b2a3\nmov     rax, rbp                                                       ; +0x129, 0x14046b2a9\nmov     rcx, [rsp+88h+var_10]                                          ; +0x12c, 0x14046b2ac\nxor     rcx, rsp; StackCookie                                          ; +0x131, 0x14046b2b1\ncall    __security_check_cookie                                        ; +0x134, 0x14046b2b4\nlea     r11, [rsp+88h+var_8]                                           ; +0x139, 0x14046b2b9\nmov     rbx, [r11+18h]                                                 ; +0x141, 0x14046b2c1\nmov     rbp, [r11+20h]                                                 ; +0x145, 0x14046b2c5\nmov     rsi, [r11+28h]                                                 ; +0x149, 0x14046b2c9\nmov     rsp, r11                                                       ; +0x14d, 0x14046b2cd\npop     rdi                                                            ; +0x150, 0x14046b2d0\nretn                                                                   ; +0x151, 0x14046b2d1\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x152, 0x14046b2d2\nxor     r9d, r9d; LineNo                                               ; +0x15b, 0x14046b2db\nxor     r8d, r8d; FileName                                             ; +0x15e, 0x14046b2de\nxor     edx, edx; FunctionName                                         ; +0x161, 0x14046b2e1\nxor     ecx, ecx; Expression                                           ; +0x163, 0x14046b2e3\ncall    cs:_invoke_watson                                              ; +0x165, 0x14046b2e5\ndb 0CCh                                                                ; +0x16b, 0x14046b2eb", "xrefs": ["GameLevelManager::createNewLevel @ 0x14021c15b", "GameLevelManager::getNextLevelName @ 0x14021c3ab", "<???> @ 0x140928070"], "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"}