{"type": "func", "start": 5371627968, "end": 5371628434, "name": "LevelBrowserLayer::dLevelBrowserLayer", "pseudocode": "// \n// LevelBrowserLayer::dLevelBrowserLayer from 0x1402c89c0 to 0x1402c8b92 (466 bytes)\n// \n// 5 xrefs:\n// > sub_1402C8980 @ 0x1402c898f\n// > sub_140302F20 @ 0x1403030f6\n// > sub_140502A5D @ 0x140502a64\n// > <???> @ 0x1406915b0\n// > <???> @ 0x1406d2c48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall LevelBrowserLayer::dLevelBrowserLayer(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n  cocos2d::CCObject *v7; // rcx\n  __int64 v8; // rax\n  void *v9; // rax\n  __int64 v10; // rax\n  void *v11; // rax\n\n  *(_QWORD *)a1 = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 320) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 328) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 336) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 344) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 352) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 408) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 432) = &LevelBrowserLayer::`vftable';\n  v2 = a1 + 544;\n  *(_QWORD *)(a1 + 544) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 552) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 560) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 568) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 576) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 584) = &LevelBrowserLayer::`vftable';\n  if ( *(_BYTE *)(a1 + 748) )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)a1);\n  }\n  v5 = *(cocos2d::CCObject **)(a1 + 656);\n  if ( v5 )\n    cocos2d::CCObject::release(v5);\n  v6 = *(cocos2d::CCObject **)(a1 + 736);\n  if ( v6 )\n    cocos2d::CCObject::release(v6);\n  v7 = *(cocos2d::CCObject **)(a1 + 664);\n  if ( v7 )\n    cocos2d::CCObject::release(v7);\n  if ( !*(_BYTE *)(a1 + 748) )\n  {\n    v8 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v9 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v8 = qword_1406C2ED8;\n    }\n    *(_DWORD *)(v8 + 700) = 7;\n  }\n  v10 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v11 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v10 = qword_1406C2EC0;\n  }\n  if ( *(_QWORD *)(v10 + 720) == v2 )\n    *(_QWORD *)(v10 + 720) = 0;\n  cocos2d::CCLayerColor::~CCLayerColor((cocos2d::CCLayerColor *)a1);\n}", "assembly": "; \n; LevelBrowserLayer::dLevelBrowserLayer from 0x1402c89c0 to 0x1402c8b92 (466 bytes)\n; \n; 5 xrefs:\n; > sub_1402C8980 @ 0x1402c898f\n; > sub_140302F20 @ 0x1403030f6\n; > sub_140502A5D @ 0x140502a64\n; > <???> @ 0x1406915b0\n; > <???> @ 0x1406d2c48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402c89c0\npush    rdi                                                            ; +0x5, 0x1402c89c5\nsub     rsp, 20h                                                       ; +0x6, 0x1402c89c6\nmov     rbx, rcx                                                       ; +0xa, 0x1402c89ca\nlea     rax, ??_7LevelBrowserLayer@@6B@; const LevelBrowserLayer::`vftable' ; +0xd, 0x1402c89cd\nmov     [rcx], rax                                                     ; +0x14, 0x1402c89d4\nlea     rax, ??_7LevelBrowserLayer@@6B@_0; const LevelBrowserLayer::`vftable' ; +0x17, 0x1402c89d7\nmov     [rcx+140h], rax                                                ; +0x1e, 0x1402c89de\nlea     rax, ??_7LevelBrowserLayer@@6B@_1; const LevelBrowserLayer::`vftable' ; +0x25, 0x1402c89e5\nmov     [rcx+148h], rax                                                ; +0x2c, 0x1402c89ec\nlea     rax, ??_7LevelBrowserLayer@@6B@_2; const LevelBrowserLayer::`vftable' ; +0x33, 0x1402c89f3\nmov     [rcx+150h], rax                                                ; +0x3a, 0x1402c89fa\nlea     rax, ??_7LevelBrowserLayer@@6B@_3; const LevelBrowserLayer::`vftable' ; +0x41, 0x1402c8a01\nmov     [rcx+158h], rax                                                ; +0x48, 0x1402c8a08\nlea     rax, ??_7LevelBrowserLayer@@6B@_4; const LevelBrowserLayer::`vftable' ; +0x4f, 0x1402c8a0f\nmov     [rcx+160h], rax                                                ; +0x56, 0x1402c8a16\nlea     rax, ??_7LevelBrowserLayer@@6B@_5; const LevelBrowserLayer::`vftable' ; +0x5d, 0x1402c8a1d\nmov     [rcx+198h], rax                                                ; +0x64, 0x1402c8a24\nlea     rax, ??_7LevelBrowserLayer@@6B@_6; const LevelBrowserLayer::`vftable' ; +0x6b, 0x1402c8a2b\nmov     [rcx+1B0h], rax                                                ; +0x72, 0x1402c8a32\nlea     rdi, [rcx+220h]                                                ; +0x79, 0x1402c8a39\nlea     rax, ??_7LevelBrowserLayer@@6B@_7; const LevelBrowserLayer::`vftable' ; +0x80, 0x1402c8a40\nmov     [rdi], rax                                                     ; +0x87, 0x1402c8a47\nlea     rax, ??_7LevelBrowserLayer@@6B@_8; const LevelBrowserLayer::`vftable' ; +0x8a, 0x1402c8a4a\nmov     [rcx+228h], rax                                                ; +0x91, 0x1402c8a51\nlea     rax, ??_7LevelBrowserLayer@@6B@_9; const LevelBrowserLayer::`vftable' ; +0x98, 0x1402c8a58\nmov     [rcx+230h], rax                                                ; +0x9f, 0x1402c8a5f\nlea     rax, ??_7LevelBrowserLayer@@6B@_10; const LevelBrowserLayer::`vftable' ; +0xa6, 0x1402c8a66\nmov     [rcx+238h], rax                                                ; +0xad, 0x1402c8a6d\nlea     rax, ??_7LevelBrowserLayer@@6B@_11; const LevelBrowserLayer::`vftable' ; +0xb4, 0x1402c8a74\nmov     [rcx+240h], rax                                                ; +0xbb, 0x1402c8a7b\nlea     rax, ??_7LevelBrowserLayer@@6B@_12; const LevelBrowserLayer::`vftable' ; +0xc2, 0x1402c8a82\nmov     [rcx+248h], rax                                                ; +0xc9, 0x1402c8a89\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0xd0, 0x1402c8a90\njz      short loc_1402C8AB7                                            ; +0xd7, 0x1402c8a97\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd9, 0x1402c8a99\nmov     rdx, [rax]                                                     ; +0xdf, 0x1402c8a9f\nmov     rcx, rax                                                       ; +0xe2, 0x1402c8aa2\ncall    qword ptr [rdx+90h]                                            ; +0xe5, 0x1402c8aa5\nmov     rcx, rax                                                       ; +0xeb, 0x1402c8aab\nmov     rdx, rbx                                                       ; +0xee, 0x1402c8aae\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0xf1, 0x1402c8ab1\nmov     rcx, [rbx+290h]                                                ; +0xf7, 0x1402c8ab7\ntest    rcx, rcx                                                       ; +0xfe, 0x1402c8abe\njz      short loc_1402C8AC9                                            ; +0x101, 0x1402c8ac1\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x103, 0x1402c8ac3\nmov     rcx, [rbx+2E0h]                                                ; +0x109, 0x1402c8ac9\ntest    rcx, rcx                                                       ; +0x110, 0x1402c8ad0\njz      short loc_1402C8ADB                                            ; +0x113, 0x1402c8ad3\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x115, 0x1402c8ad5\nmov     rcx, [rbx+298h]                                                ; +0x11b, 0x1402c8adb\ntest    rcx, rcx                                                       ; +0x122, 0x1402c8ae2\njz      short loc_1402C8AED                                            ; +0x125, 0x1402c8ae5\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x127, 0x1402c8ae7\ncmp     byte ptr [rbx+2ECh], 0                                         ; +0x12d, 0x1402c8aed\njnz     short loc_1402C8B35                                            ; +0x134, 0x1402c8af4\nmov     rax, cs:qword_1406C2ED8                                        ; +0x136, 0x1402c8af6\ntest    rax, rax                                                       ; +0x13d, 0x1402c8afd\njnz     short loc_1402C8B2B                                            ; +0x140, 0x1402c8b00\nmov     ecx, 668h; Size                                                ; +0x142, 0x1402c8b02\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x147, 0x1402c8b07\nmov     rcx, rax                                                       ; +0x14c, 0x1402c8b0c\ncall    sub_14017AB00                                                  ; +0x14f, 0x1402c8b0f\nmov     cs:qword_1406C2ED8, rax                                        ; +0x154, 0x1402c8b14\nmov     rdx, [rax]                                                     ; +0x15b, 0x1402c8b1b\nmov     rcx, rax                                                       ; +0x15e, 0x1402c8b1e\ncall    qword ptr [rdx+48h]                                            ; +0x161, 0x1402c8b21\nmov     rax, cs:qword_1406C2ED8                                        ; +0x164, 0x1402c8b24\nmov     dword ptr [rax+2BCh], 7                                        ; +0x16b, 0x1402c8b2b\nmov     rax, cs:qword_1406C2EC0                                        ; +0x175, 0x1402c8b35\ntest    rax, rax                                                       ; +0x17c, 0x1402c8b3c\njnz     short loc_1402C8B6A                                            ; +0x17f, 0x1402c8b3f\nmov     ecx, 3D0h; Size                                                ; +0x181, 0x1402c8b41\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x186, 0x1402c8b46\nmov     rcx, rax                                                       ; +0x18b, 0x1402c8b4b\ncall    sub_140141280                                                  ; +0x18e, 0x1402c8b4e\nmov     cs:qword_1406C2EC0, rax                                        ; +0x193, 0x1402c8b53\nmov     rdx, [rax]                                                     ; +0x19a, 0x1402c8b5a\nmov     rcx, rax                                                       ; +0x19d, 0x1402c8b5d\ncall    qword ptr [rdx+48h]                                            ; +0x1a0, 0x1402c8b60\nmov     rax, cs:qword_1406C2EC0                                        ; +0x1a3, 0x1402c8b63\ncmp     [rax+2D0h], rdi                                                ; +0x1aa, 0x1402c8b6a\njnz     short loc_1402C8B7E                                            ; +0x1b1, 0x1402c8b71\nmov     qword ptr [rax+2D0h], 0                                        ; +0x1b3, 0x1402c8b73\nmov     rcx, rbx                                                       ; +0x1be, 0x1402c8b7e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1c1, 0x1402c8b81\nadd     rsp, 20h                                                       ; +0x1c6, 0x1402c8b86\npop     rdi                                                            ; +0x1ca, 0x1402c8b8a\njmp     cs:__imp_??1CCLayerColor@cocos2d@@UEAA@XZ; cocos2d::CCLayerColor::~CCLayerColor(void) ; +0x1cb, 0x1402c8b8b", "xrefs": ["sub_1402C8980 @ 0x1402c898f", "sub_140302F20 @ 0x1403030f6", "sub_140502A5D @ 0x140502a64", "<???> @ 0x1406915b0", "<???> @ 0x1406d2c48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}