{"type": "func", "start": 5369976080, "end": 5369976487, "name": "CreatorLayer::scene", "pseudocode": "// \n// CreatorLayer::scene from 0x140135510 to 0x1401356a7 (407 bytes)\n// \n// 7 xrefs:\n// > GameManager::returnToLastScene @ 0x140287335\n// > GameManager::returnToLastScene @ 0x1402874d8\n// > GauntletSelectLayer::onBack @ 0x1402ff622\n// > MenuLayer::onCreator @ 0x140474f59\n// > SecretRewardsLayer::onBack @ 0x14056d8a3\n// > SecretLayer2::onBack @ 0x14057f4a0\n// > <???> @ 0x1409170fc\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:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *CreatorLayer::scene()\n{\n  _QWORD *v0; // rsi\n  __int64 v1; // rcx\n  char *v2; // rdi\n\n  v0 = (_QWORD *)cocos2d::CCScene::create();\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v1) + 232) = v0;\n  v2 = (char *)operator new(0x1E8u);\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);\n  cocos2d::CCSceneTransitionDelegate::CCSceneTransitionDelegate((cocos2d::CCSceneTransitionDelegate *)(v2 + 408));\n  *(_QWORD *)v2 = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 52) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 53) = &CreatorLayer::`vftable';\n  *((_QWORD *)v2 + 54) = 0;\n  *((_QWORD *)v2 + 55) = 0;\n  *((_QWORD *)v2 + 56) = 0;\n  *((_QWORD *)v2 + 57) = 0;\n  *((_QWORD *)v2 + 58) = 0;\n  *((_QWORD *)v2 + 59) = 0;\n  *((_DWORD *)v2 + 120) = -1;\n  *((_DWORD *)v2 + 121) = 0;\n  if ( (unsigned __int8)CreatorLayer::init(v2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    (*(void (__fastcall **)(_QWORD *, char *))(*v0 + 464LL))(v0, v2);\n    if ( v2 )\n    {\n      v0[40] = v2 + 408;\n      return v0;\n    }\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*v0 + 464LL))(v0, 0);\n  }\n  v0[40] = 0;\n  return v0;\n}", "assembly": "; \n; CreatorLayer::scene from 0x140135510 to 0x1401356a7 (407 bytes)\n; \n; 7 xrefs:\n; > GameManager::returnToLastScene @ 0x140287335\n; > GameManager::returnToLastScene @ 0x1402874d8\n; > GauntletSelectLayer::onBack @ 0x1402ff622\n; > MenuLayer::onCreator @ 0x140474f59\n; > SecretRewardsLayer::onBack @ 0x14056d8a3\n; > SecretLayer2::onBack @ 0x14057f4a0\n; > <???> @ 0x1409170fc\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:04 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140135510\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140135515\npush    rdi                                                            ; +0xa, 0x14013551a\nsub     rsp, 20h                                                       ; +0xb, 0x14013551b\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0xf, 0x14013551f\nmov     rsi, rax                                                       ; +0x15, 0x140135525\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x18, 0x140135528\nmov     [rax+0E8h], rsi                                                ; +0x1e, 0x14013552e\nmov     ecx, 1E8h; Size                                                ; +0x25, 0x140135535\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x14013553a\nmov     rdi, rax                                                       ; +0x2f, 0x14013553f\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x140135542\nmov     rcx, rax                                                       ; +0x37, 0x140135547\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3a, 0x14013554a\nlea     rcx, [rdi+198h]                                                ; +0x40, 0x140135550\ncall    cs:??0CCSceneTransitionDelegate@cocos2d@@QEAA@XZ; cocos2d::CCSceneTransitionDelegate::CCSceneTransitionDelegate(void) ; +0x47, 0x140135557\nlea     rax, ??_7CreatorLayer@@6B@; const CreatorLayer::`vftable'      ; +0x4d, 0x14013555d\nmov     [rdi], rax                                                     ; +0x54, 0x140135564\nlea     rax, ??_7CreatorLayer@@6B@_0; const CreatorLayer::`vftable'    ; +0x57, 0x140135567\nmov     [rdi+140h], rax                                                ; +0x5e, 0x14013556e\nlea     rax, ??_7CreatorLayer@@6B@_1; const CreatorLayer::`vftable'    ; +0x65, 0x140135575\nmov     [rdi+148h], rax                                                ; +0x6c, 0x14013557c\nlea     rax, ??_7CreatorLayer@@6B@_2; const CreatorLayer::`vftable'    ; +0x73, 0x140135583\nmov     [rdi+150h], rax                                                ; +0x7a, 0x14013558a\nlea     rax, ??_7CreatorLayer@@6B@_3; const CreatorLayer::`vftable'    ; +0x81, 0x140135591\nmov     [rdi+158h], rax                                                ; +0x88, 0x140135598\nlea     rax, ??_7CreatorLayer@@6B@_4; const CreatorLayer::`vftable'    ; +0x8f, 0x14013559f\nmov     [rdi+160h], rax                                                ; +0x96, 0x1401355a6\nlea     rax, ??_7CreatorLayer@@6B@_5; const CreatorLayer::`vftable'    ; +0x9d, 0x1401355ad\nmov     [rdi+198h], rax                                                ; +0xa4, 0x1401355b4\nlea     rax, ??_7CreatorLayer@@6B@_6; const CreatorLayer::`vftable'    ; +0xab, 0x1401355bb\nmov     [rdi+1A0h], rax                                                ; +0xb2, 0x1401355c2\nlea     rax, ??_7CreatorLayer@@6B@_7; const CreatorLayer::`vftable'    ; +0xb9, 0x1401355c9\nmov     [rdi+1A8h], rax                                                ; +0xc0, 0x1401355d0\nxor     ebx, ebx                                                       ; +0xc7, 0x1401355d7\nmov     [rdi+1B0h], rbx                                                ; +0xc9, 0x1401355d9\nmov     [rdi+1B8h], rbx                                                ; +0xd0, 0x1401355e0\nmov     [rdi+1C0h], rbx                                                ; +0xd7, 0x1401355e7\nmov     [rdi+1C8h], rbx                                                ; +0xde, 0x1401355ee\nmov     [rdi+1D0h], rbx                                                ; +0xe5, 0x1401355f5\nmov     [rdi+1D8h], rbx                                                ; +0xec, 0x1401355fc\nmov     dword ptr [rdi+1E0h], 0FFFFFFFFh                               ; +0xf3, 0x140135603\nmov     [rdi+1E4h], ebx                                                ; +0xfd, 0x14013560d\nmov     rax, cs:off_1407379A8                                          ; +0x103, 0x140135613\nlea     rcx, CreatorLayer__init                                        ; +0x10a, 0x14013561a\ncmp     rax, rcx                                                       ; +0x111, 0x140135621\nmov     rcx, rdi                                                       ; +0x114, 0x140135624\njnz     short loc_140135630                                            ; +0x117, 0x140135627\ncall    CreatorLayer__init                                             ; +0x119, 0x140135629\njmp     short loc_140135632                                            ; +0x11e, 0x14013562e\ncall    rax ; CreatorLayer__init                                       ; +0x120, 0x140135630\nmov     rcx, rdi                                                       ; +0x122, 0x140135632\ntest    al, al                                                         ; +0x125, 0x140135635\njz      short loc_140135674                                            ; +0x127, 0x140135637\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x129, 0x140135639\nmov     rax, [rsi]                                                     ; +0x12f, 0x14013563f\nmov     rdx, rdi                                                       ; +0x132, 0x140135642\nmov     rcx, rsi                                                       ; +0x135, 0x140135645\ncall    qword ptr [rax+1D0h]                                           ; +0x138, 0x140135648\ntest    rdi, rdi                                                       ; +0x13e, 0x14013564e\njz      short loc_14013568D                                            ; +0x141, 0x140135651\nlea     rax, [rdi+198h]                                                ; +0x143, 0x140135653\nmov     [rsi+140h], rax                                                ; +0x14a, 0x14013565a\nmov     rax, rsi                                                       ; +0x151, 0x140135661\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x154, 0x140135664\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x159, 0x140135669\nadd     rsp, 20h                                                       ; +0x15e, 0x14013566e\npop     rdi                                                            ; +0x162, 0x140135672\nretn                                                                   ; +0x163, 0x140135673\nmov     rax, [rdi]                                                     ; +0x164, 0x140135674\nmov     edx, 1                                                         ; +0x167, 0x140135677\ncall    qword ptr [rax+8]                                              ; +0x16c, 0x14013567c\nmov     rax, [rsi]                                                     ; +0x16f, 0x14013567f\nxor     edx, edx                                                       ; +0x172, 0x140135682\nmov     rcx, rsi                                                       ; +0x174, 0x140135684\ncall    qword ptr [rax+1D0h]                                           ; +0x177, 0x140135687\nmov     [rsi+140h], rbx                                                ; +0x17d, 0x14013568d\nmov     rax, rsi                                                       ; +0x184, 0x140135694\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x187, 0x140135697\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x18c, 0x14013569c\nadd     rsp, 20h                                                       ; +0x191, 0x1401356a1\npop     rdi                                                            ; +0x195, 0x1401356a5\nretn                                                                   ; +0x196, 0x1401356a6", "xrefs": ["GameManager::returnToLastScene @ 0x140287335", "GameManager::returnToLastScene @ 0x1402874d8", "GauntletSelectLayer::onBack @ 0x1402ff622", "MenuLayer::onCreator @ 0x140474f59", "SecretRewardsLayer::onBack @ 0x14056d8a3", "SecretLayer2::onBack @ 0x14057f4a0", "<???> @ 0x1409170fc"], "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"}