{"type": "func", "start": 5372805664, "end": 5372805888, "name": "LevelBrowserLayer::onLocalMode", "pseudocode": "// \n// LevelBrowserLayer::onLocalMode from 0x1403e8220 to 0x1403e8300 (224 bytes)\n// \n// 3 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e391b\n// > <???> @ 0x140924fd4\n// > <???> @ 0x140924fe0\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:31:44 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::onLocalMode(_QWORD *a1)\n{\n  int v2; // edi\n  int v3; // ebx\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  __int64 v8; // r9\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  void *v13; // [rsp+30h] [rbp+8h]\n\n  if ( a1[83] )\n  {\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1008LL))(a1, 0);\n    v2 = *(_DWORD *)(a1[83] + 320LL);\n    v3 = 98;\n    if ( v2 == 98 )\n      v3 = 102;\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v13 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    *(_DWORD *)(v4 + 1296) = v3;\n    v5 = GJSearchObject::create_2(v3);\n    if ( v2 == 98 )\n      *(_DWORD *)(v5 + 464) = 1;\n    v9 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v5, v6, v7, v8);\n    v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n    v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n    cocos2d::CCDirector::replaceScene(v12, v10);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onLocalMode from 0x1403e8220 to 0x1403e8300 (224 bytes)\n; \n; 3 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e391b\n; > <???> @ 0x140924fd4\n; > <???> @ 0x140924fe0\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:31:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403e8220\npush    rdi                                                            ; +0x5, 0x1403e8225\nsub     rsp, 20h                                                       ; +0x6, 0x1403e8226\nmov     rbx, rcx                                                       ; +0xa, 0x1403e822a\ncmp     qword ptr [rcx+298h], 0                                        ; +0xd, 0x1403e822d\njz      loc_1403E82F5                                                  ; +0x15, 0x1403e8235\nmov     rax, [rcx]                                                     ; +0x1b, 0x1403e823b\nxor     edx, edx                                                       ; +0x1e, 0x1403e823e\ncall    qword ptr [rax+3E0h]                                           ; +0x20, 0x1403e8240\nmov     rax, [rbx]                                                     ; +0x26, 0x1403e8246\nxor     edx, edx                                                       ; +0x29, 0x1403e8249\nmov     rcx, rbx                                                       ; +0x2b, 0x1403e824b\ncall    qword ptr [rax+3F0h]                                           ; +0x2e, 0x1403e824e\nmov     rax, [rbx+298h]                                                ; +0x34, 0x1403e8254\nmov     edi, [rax+140h]                                                ; +0x3b, 0x1403e825b\nmov     ebx, 62h ; 'b'                                                 ; +0x41, 0x1403e8261\nmov     eax, 66h ; 'f'                                                 ; +0x46, 0x1403e8266\ncmp     edi, ebx                                                       ; +0x4b, 0x1403e826b\ncmovz   ebx, eax                                                       ; +0x4d, 0x1403e826d\nmov     rax, cs:qword_14090BFD0                                        ; +0x50, 0x1403e8270\ntest    rax, rax                                                       ; +0x57, 0x1403e8277\njnz     short loc_1403E82AB                                            ; +0x5a, 0x1403e827a\nmov     ecx, 6E8h; Size                                                ; +0x5c, 0x1403e827c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x61, 0x1403e8281\nmov     [rsp+28h+arg_0], rax                                           ; +0x66, 0x1403e8286\nmov     rcx, rax                                                       ; +0x6b, 0x1403e828b\ncall    GameManager__GameManager                                       ; +0x6e, 0x1403e828e\nnop                                                                    ; +0x73, 0x1403e8293\nmov     cs:qword_14090BFD0, rax                                        ; +0x74, 0x1403e8294\nmov     rdx, [rax]                                                     ; +0x7b, 0x1403e829b\nmov     rcx, rax                                                       ; +0x7e, 0x1403e829e\ncall    qword ptr [rdx+48h]                                            ; +0x81, 0x1403e82a1\nmov     rax, cs:qword_14090BFD0                                        ; +0x84, 0x1403e82a4\nmov     [rax+510h], ebx                                                ; +0x8b, 0x1403e82ab\nmov     ecx, ebx                                                       ; +0x91, 0x1403e82b1\ncall    GJSearchObject__create_2                                       ; +0x93, 0x1403e82b3\ncmp     edi, 62h ; 'b'                                                 ; +0x98, 0x1403e82b8\njnz     short loc_1403E82C7                                            ; +0x9b, 0x1403e82bb\nmov     dword ptr [rax+1D0h], 1                                        ; +0x9d, 0x1403e82bd\nmov     rcx, rax                                                       ; +0xa7, 0x1403e82c7\ncall    LevelBrowserLayer__scene                                       ; +0xaa, 0x1403e82ca\nmov     rdx, rax                                                       ; +0xaf, 0x1403e82cf\nmovss   xmm0, cs:dword_140834F20                                       ; +0xb2, 0x1403e82d2\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xba, 0x1403e82da\nmov     rbx, rax                                                       ; +0xc0, 0x1403e82e0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc3, 0x1403e82e3\nmov     rcx, rax                                                       ; +0xc9, 0x1403e82e9\nmov     rdx, rbx                                                       ; +0xcc, 0x1403e82ec\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xcf, 0x1403e82ef\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd5, 0x1403e82f5\nadd     rsp, 20h                                                       ; +0xda, 0x1403e82fa\npop     rdi                                                            ; +0xde, 0x1403e82fe\nretn                                                                   ; +0xdf, 0x1403e82ff", "xrefs": ["LevelBrowserLayer::init @ 0x1403e391b", "<???> @ 0x140924fd4", "<???> @ 0x140924fe0"], "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"}