{"type": "func", "start": 5372075312, "end": 5372075453, "name": "MenuLayer::onCreator", "pseudocode": "// \n// MenuLayer::onCreator from 0x140335d30 to 0x140335dbd (141 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::keyDown @ 0x140336385\n// > MenuLayer::init @ 0x140333f00\n// > <???> @ 0x1406d51d4\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 MenuLayer::onCreator(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCTransitionFade *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_showingTOS )\n  {\n    MenuLayer::willClose(a1);\n    v2 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v2 = qword_1406C2ED8;\n    }\n    *(_BYTE *)(v2 + 920) = 1;\n    v3 = CreatorLayer::scene();\n    v4 = cocos2d::CCTransitionFade::create(0.5, v3);\n    v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n    cocos2d::CCDirector::replaceScene(v6, v4);\n  }\n}", "assembly": "; \n; MenuLayer::onCreator from 0x140335d30 to 0x140335dbd (141 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::keyDown @ 0x140336385\n; > MenuLayer::init @ 0x140333f00\n; > <???> @ 0x1406d51d4\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\npush    rbx                                                            ; +0x0, 0x140335d30\nsub     rsp, 20h                                                       ; +0x2, 0x140335d32\ncmp     byte ptr [rcx+1A8h], 0                                         ; +0x6, 0x140335d36\njnz     short loc_140335DB7                                            ; +0xd, 0x140335d3d\ncall    MenuLayer__willClose                                           ; +0xf, 0x140335d3f\nmov     rax, cs:qword_1406C2ED8                                        ; +0x14, 0x140335d44\ntest    rax, rax                                                       ; +0x1b, 0x140335d4b\njnz     short loc_140335D7F                                            ; +0x1e, 0x140335d4e\nmov     ecx, 668h; Size                                                ; +0x20, 0x140335d50\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140335d55\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x140335d5a\nmov     rcx, rax                                                       ; +0x2f, 0x140335d5f\ncall    sub_14017AB00                                                  ; +0x32, 0x140335d62\nnop                                                                    ; +0x37, 0x140335d67\nmov     cs:qword_1406C2ED8, rax                                        ; +0x38, 0x140335d68\nmov     rdx, [rax]                                                     ; +0x3f, 0x140335d6f\nmov     rcx, rax                                                       ; +0x42, 0x140335d72\ncall    qword ptr [rdx+48h]                                            ; +0x45, 0x140335d75\nmov     rax, cs:qword_1406C2ED8                                        ; +0x48, 0x140335d78\nmov     byte ptr [rax+398h], 1                                         ; +0x4f, 0x140335d7f\ncall    CreatorLayer__scene                                            ; +0x56, 0x140335d86\nmov     rdx, rax                                                       ; +0x5b, 0x140335d8b\nmovss   xmm0, cs:dword_140622B08                                       ; +0x5e, 0x140335d8e\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x66, 0x140335d96\nmov     rbx, rax                                                       ; +0x6c, 0x140335d9c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6f, 0x140335d9f\nmov     rcx, rax                                                       ; +0x75, 0x140335da5\nmov     rdx, rbx                                                       ; +0x78, 0x140335da8\nadd     rsp, 20h                                                       ; +0x7b, 0x140335dab\npop     rbx                                                            ; +0x7f, 0x140335daf\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x80, 0x140335db0\nadd     rsp, 20h                                                       ; +0x87, 0x140335db7\npop     rbx                                                            ; +0x8b, 0x140335dbb\nretn                                                                   ; +0x8c, 0x140335dbc", "xrefs": ["MenuLayer::keyDown @ 0x140336385", "MenuLayer::init @ 0x140333f00", "<???> @ 0x1406d51d4"], "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"}