{"type": "func", "start": 5373093088, "end": 5373093551, "name": "LevelListLayer::onRefreshLevelList", "pseudocode": "// \n// LevelListLayer::onRefreshLevelList from 0x14042e4e0 to 0x14042e6af (463 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x14042c250\n// > <???> @ 0x140926b58\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:14 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall LevelListLayer::onRefreshLevelList(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rbx\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  __int64 v6; // rsi\n  void **v7; // rax\n  __int64 v8; // rbx\n  void *v9; // rdx\n  _BYTE *Key; // rax\n  size_t v11; // r8\n  _BYTE *v12; // rbx\n  __int64 v13; // rcx\n  cocos2d::CCActionManager **v14; // rcx\n  _QWORD v15[5]; // [rsp+20h] [rbp-28h] BYREF\n  void *v16; // [rsp+50h] [rbp+8h]\n  void *v17; // [rsp+50h] [rbp+8h]\n  void *v18; // [rsp+50h] [rbp+8h]\n\n  v3 = a1 + 544;\n  if ( !a1 )\n    v3 = 0;\n  v4 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v16 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v16);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v4 = *(_QWORD *)&qword_14090BFB0;\n  }\n  *(_QWORD *)(v4 + 1352) = v3;\n  v5 = *(_QWORD *)(a1 + 648);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0);\n  LOBYTE(a2) = 1;\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 736) + 336LL))(*(_QWORD *)(a1 + 736), a2);\n  LevelBrowserLayer::setupLevelBrowser(a1, nullptr);\n  v6 = GJSearchObject::create_2(0);\n  v7 = (void **)GameToolbox::intToString(v15, *(_DWORD *)(*(_QWORD *)(a1 + 920) + 344LL));\n  v8 = (__int64)v7;\n  if ( (void **)(v6 + 328) != v7 )\n  {\n    v9 = v7;\n    if ( (unsigned __int64)v7[3] > 0xF )\n      v9 = *v7;\n    sub_1400405A0((void **)(v6 + 328), v9, (size_t)v7[2]);\n  }\n  sub_14003D310(v8);\n  *(_DWORD *)(v6 + 464) = 1;\n  Key = (_BYTE *)GJSearchObject::getKey(v6);\n  v11 = -1;\n  do\n    ++v11;\n  while ( Key[v11] );\n  v12 = (_BYTE *)(a1 + 928);\n  sub_1400405A0((void **)(a1 + 928), Key, v11);\n  if ( *(_QWORD *)(a1 + 952) > 0xFu )\n    v12 = *(_BYTE **)v12;\n  v13 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v17 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v13 = *(_QWORD *)&qword_14090BFB0;\n  }\n  GameLevelManager::resetTimerForKey(v13, v12);\n  v14 = *(cocos2d::CCActionManager ***)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v18 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v14 = *(cocos2d::CCActionManager ***)&qword_14090BFB0;\n  }\n  GameLevelManager::getLevelLists(v14, v6);\n}", "assembly": "; \n; LevelListLayer::onRefreshLevelList from 0x14042e4e0 to 0x14042e6af (463 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x14042c250\n; > <???> @ 0x140926b58\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:14 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14042e4e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14042e4e5\npush    rdi                                                            ; +0xa, 0x14042e4ea\nsub     rsp, 40h                                                       ; +0xb, 0x14042e4eb\nmov     rdi, rcx                                                       ; +0xf, 0x14042e4ef\nlea     rbx, [rcx+220h]                                                ; +0x12, 0x14042e4f2\nxor     eax, eax                                                       ; +0x19, 0x14042e4f9\ntest    rcx, rcx                                                       ; +0x1b, 0x14042e4fb\ncmovz   rbx, rax                                                       ; +0x1e, 0x14042e4fe\nmov     rax, cs:qword_14090BFB0                                        ; +0x22, 0x14042e502\ntest    rax, rax                                                       ; +0x29, 0x14042e509\njnz     short loc_14042E540                                            ; +0x2c, 0x14042e50c\nmov     ecx, 690h; Size                                                ; +0x2e, 0x14042e50e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33, 0x14042e513\nmov     [rsp+48h+arg_0], rax                                           ; +0x38, 0x14042e518\nmov     rcx, rax                                                       ; +0x3d, 0x14042e51d\ncall    GameLevelManager__GameLevelManager                             ; +0x40, 0x14042e520\nnop                                                                    ; +0x45, 0x14042e525\nmov     cs:qword_14090BFB0, rax                                        ; +0x46, 0x14042e526\nmov     rcx, [rax]                                                     ; +0x4d, 0x14042e52d\nmov     rdx, [rcx+48h]                                                 ; +0x50, 0x14042e530\nmov     rcx, rax                                                       ; +0x54, 0x14042e534\ncall    rdx                                                            ; +0x57, 0x14042e537\nmov     rax, cs:qword_14090BFB0                                        ; +0x59, 0x14042e539\nmov     [rax+548h], rbx                                                ; +0x60, 0x14042e540\nmov     rcx, [rdi+288h]                                                ; +0x67, 0x14042e547\ntest    rcx, rcx                                                       ; +0x6e, 0x14042e54e\njz      short loc_14042E55E                                            ; +0x71, 0x14042e551\nmov     rax, [rcx]                                                     ; +0x73, 0x14042e553\nxor     edx, edx                                                       ; +0x76, 0x14042e556\ncall    qword ptr [rax+150h]                                           ; +0x78, 0x14042e558\nmov     rcx, [rdi+2E0h]                                                ; +0x7e, 0x14042e55e\nmov     rax, [rcx]                                                     ; +0x85, 0x14042e565\nmov     dl, 1                                                          ; +0x88, 0x14042e568\ncall    qword ptr [rax+150h]                                           ; +0x8a, 0x14042e56a\nxor     edx, edx                                                       ; +0x90, 0x14042e570\nmov     rcx, rdi                                                       ; +0x92, 0x14042e572\ncall    LevelBrowserLayer__setupLevelBrowser                           ; +0x95, 0x14042e575\nxor     ecx, ecx                                                       ; +0x9a, 0x14042e57a\ncall    GJSearchObject__create_2                                       ; +0x9c, 0x14042e57c\nmov     rsi, rax                                                       ; +0xa1, 0x14042e581\nmov     rdx, [rdi+398h]                                                ; +0xa4, 0x14042e584\nmov     edx, [rdx+158h]                                                ; +0xab, 0x14042e58b\nlea     rcx, [rsp+48h+var_28]                                          ; +0xb1, 0x14042e591\ncall    GameToolbox__intToString                                       ; +0xb6, 0x14042e596\nmov     rbx, rax                                                       ; +0xbb, 0x14042e59b\nmov     [rsp+48h+arg_0], rax                                           ; +0xbe, 0x14042e59e\nlea     rcx, [rsi+148h]; void *                                        ; +0xc3, 0x14042e5a3\ncmp     rcx, rax                                                       ; +0xca, 0x14042e5aa\njz      short loc_14042E5C6                                            ; +0xcd, 0x14042e5ad\nmov     rdx, rax                                                       ; +0xcf, 0x14042e5af\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xd2, 0x14042e5b2\njbe     short loc_14042E5BC                                            ; +0xd7, 0x14042e5b7\nmov     rdx, [rax]; Src                                                ; +0xd9, 0x14042e5b9\nmov     r8, [rax+10h]; Size                                            ; +0xdc, 0x14042e5bc\ncall    sub_1400405A0                                                  ; +0xe0, 0x14042e5c0\nnop                                                                    ; +0xe5, 0x14042e5c5\nmov     rcx, rbx                                                       ; +0xe6, 0x14042e5c6\ncall    sub_14003D310                                                  ; +0xe9, 0x14042e5c9\nmov     dword ptr [rsi+1D0h], 1                                        ; +0xee, 0x14042e5ce\nmov     rcx, rsi                                                       ; +0xf8, 0x14042e5d8\ncall    GJSearchObject__getKey                                         ; +0xfb, 0x14042e5db\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x100, 0x14042e5e0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x107, 0x14042e5e7\ninc     r8; Size                                                       ; +0x110, 0x14042e5f0\ncmp     byte ptr [rax+r8], 0                                           ; +0x113, 0x14042e5f3\njnz     short loc_14042E5F0                                            ; +0x118, 0x14042e5f8\nlea     rbx, [rdi+3A0h]                                                ; +0x11a, 0x14042e5fa\nmov     rdx, rax; Src                                                  ; +0x121, 0x14042e601\nmov     rcx, rbx; void *                                               ; +0x124, 0x14042e604\ncall    sub_1400405A0                                                  ; +0x127, 0x14042e607\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x12c, 0x14042e60c\njbe     short loc_14042E616                                            ; +0x131, 0x14042e611\nmov     rbx, [rbx]                                                     ; +0x133, 0x14042e613\nmov     rcx, cs:qword_14090BFB0                                        ; +0x136, 0x14042e616\ntest    rcx, rcx                                                       ; +0x13d, 0x14042e61d\njnz     short loc_14042E652                                            ; +0x140, 0x14042e620\nmov     ecx, 690h; Size                                                ; +0x142, 0x14042e622\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x147, 0x14042e627\nmov     [rsp+48h+arg_0], rax                                           ; +0x14c, 0x14042e62c\nmov     rcx, rax                                                       ; +0x151, 0x14042e631\ncall    GameLevelManager__GameLevelManager                             ; +0x154, 0x14042e634\nnop                                                                    ; +0x159, 0x14042e639\nmov     cs:qword_14090BFB0, rax                                        ; +0x15a, 0x14042e63a\nmov     r8, [rax]                                                      ; +0x161, 0x14042e641\nmov     rcx, rax                                                       ; +0x164, 0x14042e644\ncall    qword ptr [r8+48h]                                             ; +0x167, 0x14042e647\nmov     rcx, cs:qword_14090BFB0                                        ; +0x16b, 0x14042e64b\nmov     rdx, rbx                                                       ; +0x172, 0x14042e652\ncall    GameLevelManager__resetTimerForKey                             ; +0x175, 0x14042e655\nmov     rcx, cs:qword_14090BFB0                                        ; +0x17a, 0x14042e65a\ntest    rcx, rcx                                                       ; +0x181, 0x14042e661\njnz     short loc_14042E698                                            ; +0x184, 0x14042e664\nmov     ecx, 690h; Size                                                ; +0x186, 0x14042e666\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18b, 0x14042e66b\nmov     [rsp+48h+arg_0], rax                                           ; +0x190, 0x14042e670\nmov     rcx, rax                                                       ; +0x195, 0x14042e675\ncall    GameLevelManager__GameLevelManager                             ; +0x198, 0x14042e678\nnop                                                                    ; +0x19d, 0x14042e67d\nmov     cs:qword_14090BFB0, rax                                        ; +0x19e, 0x14042e67e\nmov     rcx, [rax]                                                     ; +0x1a5, 0x14042e685\nmov     rdx, [rcx+48h]                                                 ; +0x1a8, 0x14042e688\nmov     rcx, rax                                                       ; +0x1ac, 0x14042e68c\ncall    rdx                                                            ; +0x1af, 0x14042e68f\nmov     rcx, cs:qword_14090BFB0                                        ; +0x1b1, 0x14042e691\nmov     rdx, rsi                                                       ; +0x1b8, 0x14042e698\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x1bb, 0x14042e69b\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x1c0, 0x14042e6a0\nadd     rsp, 40h                                                       ; +0x1c5, 0x14042e6a5\npop     rdi                                                            ; +0x1c9, 0x14042e6a9\njmp     GameLevelManager__getLevelLists                                ; +0x1ca, 0x14042e6aa", "xrefs": ["LevelListLayer::init @ 0x14042c250", "<???> @ 0x140926b58"], "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"}