{"type": "func", "start": 5373382400, "end": 5373382544, "name": "MenuLayer::onCreator", "pseudocode": "// \n// MenuLayer::onCreator from 0x140474f00 to 0x140474f90 (144 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::keyDown @ 0x140475575\n// > MenuLayer::init @ 0x140472553\n// > <???> @ 0x1409282f8\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:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MenuLayer::onCreator(__int64 a1)\n{\n  __int64 v1; // rax\n  struct cocos2d::CCScene *v2; // rax\n  struct cocos2d::CCScene *v3; // rbx\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 432) )\n  {\n    MenuLayer::willClose(a1);\n    v1 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v6 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v1 = qword_14090BFD0;\n    }\n    *(_BYTE *)(v1 + 960) = 1;\n    v2 = (struct cocos2d::CCScene *)CreatorLayer::scene();\n    v3 = cocos2d::CCTransitionFade::create(0.5, v2);\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n    cocos2d::CCDirector::replaceScene(v5, v3);\n  }\n}", "assembly": "; \n; MenuLayer::onCreator from 0x140474f00 to 0x140474f90 (144 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::keyDown @ 0x140475575\n; > MenuLayer::init @ 0x140472553\n; > <???> @ 0x1409282f8\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:40 +0000\n; \npush    rbx                                                            ; +0x0, 0x140474f00\nsub     rsp, 20h                                                       ; +0x2, 0x140474f02\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0x6, 0x140474f06\njnz     short loc_140474F8A                                            ; +0xd, 0x140474f0d\ncall    MenuLayer__willClose                                           ; +0xf, 0x140474f0f\nmov     rax, cs:qword_14090BFD0                                        ; +0x14, 0x140474f14\ntest    rax, rax                                                       ; +0x1b, 0x140474f1b\njnz     short loc_140474F52                                            ; +0x1e, 0x140474f1e\nmov     ecx, 6E8h; Size                                                ; +0x20, 0x140474f20\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140474f25\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x140474f2a\nmov     rcx, rax                                                       ; +0x2f, 0x140474f2f\ncall    GameManager__GameManager                                       ; +0x32, 0x140474f32\nnop                                                                    ; +0x37, 0x140474f37\nmov     cs:qword_14090BFD0, rax                                        ; +0x38, 0x140474f38\nmov     rcx, [rax]                                                     ; +0x3f, 0x140474f3f\nmov     rdx, [rcx+48h]                                                 ; +0x42, 0x140474f42\nmov     rcx, rax                                                       ; +0x46, 0x140474f46\ncall    rdx                                                            ; +0x49, 0x140474f49\nmov     rax, cs:qword_14090BFD0                                        ; +0x4b, 0x140474f4b\nmov     byte ptr [rax+3C0h], 1                                         ; +0x52, 0x140474f52\ncall    CreatorLayer__scene                                            ; +0x59, 0x140474f59\nmov     rdx, rax                                                       ; +0x5e, 0x140474f5e\nmovss   xmm0, cs:dword_140834F20                                       ; +0x61, 0x140474f61\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x69, 0x140474f69\nmov     rbx, rax                                                       ; +0x6f, 0x140474f6f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x72, 0x140474f72\nmov     rcx, rax                                                       ; +0x78, 0x140474f78\nmov     rdx, rbx                                                       ; +0x7b, 0x140474f7b\nadd     rsp, 20h                                                       ; +0x7e, 0x140474f7e\npop     rbx                                                            ; +0x82, 0x140474f82\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x83, 0x140474f83\nadd     rsp, 20h                                                       ; +0x8a, 0x140474f8a\npop     rbx                                                            ; +0x8e, 0x140474f8e\nretn                                                                   ; +0x8f, 0x140474f8f", "xrefs": ["MenuLayer::keyDown @ 0x140475575", "MenuLayer::init @ 0x140472553", "<???> @ 0x1409282f8"], "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"}