{"type": "func", "start": 5369984336, "end": 5369984826, "name": "CreatorLayer::onLeaderboards", "pseudocode": "// \n// CreatorLayer::onLeaderboards from 0x140137550 to 0x14013773a (490 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x140135a22\n// > <???> @ 0x14091712c\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:27:05 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nbool CreatorLayer::onLeaderboards()\n{\n  __int64 v0; // rdi\n  __int64 v1; // rbx\n  unsigned int v2; // ebx\n  unsigned int v3; // edi\n  struct cocos2d::CCScene *v4; // r14\n  __int64 v5; // rcx\n  cocos2d::CCLayer *v6; // rsi\n  struct cocos2d::CCScene *v7; // rbx\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  void *v11; // [rsp+50h] [rbp+18h]\n  void *v12; // [rsp+50h] [rbp+18h]\n\n  v0 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v11 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v11);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v0 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v1 = v0;\n  if ( !v0 )\n  {\n    v12 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v12);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v0 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v2 = *(_DWORD *)(v1 + 1340);\n  v3 = *(_DWORD *)(v0 + 1336);\n  v4 = (struct cocos2d::CCScene *)cocos2d::CCScene::create();\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v5) + 232) = v4;\n  v6 = (cocos2d::CCLayer *)operator new(0x200u);\n  cocos2d::CCLayer::CCLayer(v6);\n  *(_QWORD *)v6 = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 40) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 41) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 42) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 43) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 44) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 51) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 52) = &LeaderboardsLayer::`vftable';\n  *((_QWORD *)v6 + 53) = 0;\n  *((_QWORD *)v6 + 54) = 0;\n  *((_QWORD *)v6 + 55) = 0;\n  *((_QWORD *)v6 + 56) = 0;\n  *((_QWORD *)v6 + 57) = 0;\n  *((_QWORD *)v6 + 58) = 0;\n  *((_QWORD *)v6 + 59) = 0;\n  *((_QWORD *)v6 + 60) = 0;\n  *((_QWORD *)v6 + 61) = 0;\n  *((_QWORD *)v6 + 63) = 0;\n  if ( (unsigned __int8)LeaderboardsLayer::init(v6, v3, v2) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    v6 = nullptr;\n  }\n  (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCLayer *))(*(_QWORD *)v4 + 464LL))(v4, v6);\n  v7 = cocos2d::CCTransitionFade::create(0.5, v4);\n  v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n  return cocos2d::CCDirector::pushScene(v9, v7);\n}", "assembly": "; \n; CreatorLayer::onLeaderboards from 0x140137550 to 0x14013773a (490 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x140135a22\n; > <???> @ 0x14091712c\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:27:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140137550\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140137555\npush    rsi                                                            ; +0xa, 0x14013755a\npush    rdi                                                            ; +0xb, 0x14013755b\npush    r14                                                            ; +0xc, 0x14013755c\nsub     rsp, 20h                                                       ; +0xe, 0x14013755e\nmov     rdi, cs:qword_14090BFB0                                        ; +0x12, 0x140137562\ntest    rdi, rdi                                                       ; +0x19, 0x140137569\njnz     short loc_14013759D                                            ; +0x1c, 0x14013756c\nmov     ecx, 690h; Size                                                ; +0x1e, 0x14013756e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x140137573\nmov     [rsp+38h+arg_10], rax                                          ; +0x28, 0x140137578\nmov     rcx, rax                                                       ; +0x2d, 0x14013757d\ncall    GameLevelManager__GameLevelManager                             ; +0x30, 0x140137580\nnop                                                                    ; +0x35, 0x140137585\nmov     cs:qword_14090BFB0, rax                                        ; +0x36, 0x140137586\nmov     rdx, [rax]                                                     ; +0x3d, 0x14013758d\nmov     rcx, rax                                                       ; +0x40, 0x140137590\ncall    qword ptr [rdx+48h]                                            ; +0x43, 0x140137593\nmov     rdi, cs:qword_14090BFB0                                        ; +0x46, 0x140137596\nmov     rbx, rdi                                                       ; +0x4d, 0x14013759d\ntest    rdi, rdi                                                       ; +0x50, 0x1401375a0\njnz     short loc_1401375D7                                            ; +0x53, 0x1401375a3\nmov     ecx, 690h; Size                                                ; +0x55, 0x1401375a5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5a, 0x1401375aa\nmov     [rsp+38h+arg_10], rax                                          ; +0x5f, 0x1401375af\nmov     rcx, rax                                                       ; +0x64, 0x1401375b4\ncall    GameLevelManager__GameLevelManager                             ; +0x67, 0x1401375b7\nnop                                                                    ; +0x6c, 0x1401375bc\nmov     cs:qword_14090BFB0, rax                                        ; +0x6d, 0x1401375bd\nmov     rcx, [rax]                                                     ; +0x74, 0x1401375c4\nmov     rdx, [rcx+48h]                                                 ; +0x77, 0x1401375c7\nmov     rcx, rax                                                       ; +0x7b, 0x1401375cb\ncall    rdx                                                            ; +0x7e, 0x1401375ce\nmov     rdi, cs:qword_14090BFB0                                        ; +0x80, 0x1401375d0\nmov     ebx, [rbx+53Ch]                                                ; +0x87, 0x1401375d7\nmov     edi, [rdi+538h]                                                ; +0x8d, 0x1401375dd\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x93, 0x1401375e3\nmov     r14, rax                                                       ; +0x99, 0x1401375e9\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x9c, 0x1401375ec\nmov     [rax+0E8h], r14                                                ; +0xa2, 0x1401375f2\nmov     ecx, 200h; Size                                                ; +0xa9, 0x1401375f9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xae, 0x1401375fe\nmov     rsi, rax                                                       ; +0xb3, 0x140137603\nmov     [rsp+38h+arg_10], rax                                          ; +0xb6, 0x140137606\nmov     rcx, rax                                                       ; +0xbb, 0x14013760b\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0xbe, 0x14013760e\nlea     rax, ??_7LeaderboardsLayer@@6B@; const LeaderboardsLayer::`vftable' ; +0xc4, 0x140137614\nmov     [rsi], rax                                                     ; +0xcb, 0x14013761b\nlea     rax, ??_7LeaderboardsLayer@@6B@_0; const LeaderboardsLayer::`vftable' ; +0xce, 0x14013761e\nmov     [rsi+140h], rax                                                ; +0xd5, 0x140137625\nlea     rax, ??_7LeaderboardsLayer@@6B@_1; const LeaderboardsLayer::`vftable' ; +0xdc, 0x14013762c\nmov     [rsi+148h], rax                                                ; +0xe3, 0x140137633\nlea     rax, ??_7LeaderboardsLayer@@6B@_2; const LeaderboardsLayer::`vftable' ; +0xea, 0x14013763a\nmov     [rsi+150h], rax                                                ; +0xf1, 0x140137641\nlea     rax, ??_7LeaderboardsLayer@@6B@_3; const LeaderboardsLayer::`vftable' ; +0xf8, 0x140137648\nmov     [rsi+158h], rax                                                ; +0xff, 0x14013764f\nlea     rax, ??_7LeaderboardsLayer@@6B@_4; const LeaderboardsLayer::`vftable' ; +0x106, 0x140137656\nmov     [rsi+160h], rax                                                ; +0x10d, 0x14013765d\nlea     rax, ??_7LeaderboardsLayer@@6B@_5; const LeaderboardsLayer::`vftable' ; +0x114, 0x140137664\nmov     [rsi+198h], rax                                                ; +0x11b, 0x14013766b\nlea     rax, ??_7LeaderboardsLayer@@6B@_6; const LeaderboardsLayer::`vftable' ; +0x122, 0x140137672\nmov     [rsi+1A0h], rax                                                ; +0x129, 0x140137679\nxor     ebp, ebp                                                       ; +0x130, 0x140137680\nmov     [rsi+1A8h], rbp                                                ; +0x132, 0x140137682\nmov     [rsi+1B0h], rbp                                                ; +0x139, 0x140137689\nmov     [rsi+1B8h], rbp                                                ; +0x140, 0x140137690\nmov     [rsi+1C0h], rbp                                                ; +0x147, 0x140137697\nmov     [rsi+1C8h], rbp                                                ; +0x14e, 0x14013769e\nmov     [rsi+1D0h], rbp                                                ; +0x155, 0x1401376a5\nmov     [rsi+1D8h], rbp                                                ; +0x15c, 0x1401376ac\nmov     [rsi+1E0h], rbp                                                ; +0x163, 0x1401376b3\nmov     [rsi+1E8h], rbp                                                ; +0x16a, 0x1401376ba\nmov     [rsi+1F8h], rbp                                                ; +0x171, 0x1401376c1\nmov     r8d, ebx                                                       ; +0x178, 0x1401376c8\nmov     edx, edi                                                       ; +0x17b, 0x1401376cb\nmov     rcx, rsi                                                       ; +0x17d, 0x1401376cd\ncall    LeaderboardsLayer__init                                        ; +0x180, 0x1401376d0\nmov     rcx, rsi                                                       ; +0x185, 0x1401376d5\ntest    al, al                                                         ; +0x188, 0x1401376d8\njz      short loc_1401376E4                                            ; +0x18a, 0x1401376da\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x18c, 0x1401376dc\njmp     short loc_1401376F2                                            ; +0x192, 0x1401376e2\nmov     rax, [rsi]                                                     ; +0x194, 0x1401376e4\nmov     edx, 1                                                         ; +0x197, 0x1401376e7\ncall    qword ptr [rax+8]                                              ; +0x19c, 0x1401376ec\nmov     rsi, rbp                                                       ; +0x19f, 0x1401376ef\nmov     rax, [r14]                                                     ; +0x1a2, 0x1401376f2\nmov     rdx, rsi                                                       ; +0x1a5, 0x1401376f5\nmov     rcx, r14                                                       ; +0x1a8, 0x1401376f8\ncall    qword ptr [rax+1D0h]                                           ; +0x1ab, 0x1401376fb\nmov     rdx, r14                                                       ; +0x1b1, 0x140137701\nmovss   xmm0, cs:dword_140834F20                                       ; +0x1b4, 0x140137704\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1bc, 0x14013770c\nmov     rbx, rax                                                       ; +0x1c2, 0x140137712\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c5, 0x140137715\nmov     rcx, rax                                                       ; +0x1cb, 0x14013771b\nmov     rdx, rbx                                                       ; +0x1ce, 0x14013771e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1d1, 0x140137721\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x1d6, 0x140137726\nadd     rsp, 20h                                                       ; +0x1db, 0x14013772b\npop     r14                                                            ; +0x1df, 0x14013772f\npop     rdi                                                            ; +0x1e1, 0x140137731\npop     rsi                                                            ; +0x1e2, 0x140137732\njmp     cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x1e3, 0x140137733", "xrefs": ["CreatorLayer::init @ 0x140135a22", "<???> @ 0x14091712c"], "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"}