{"type": "func", "start": 5372073792, "end": 5372074011, "name": "MenuLayer::onMoreGames", "pseudocode": "// \n// MenuLayer::onMoreGames from 0x140335740 to 0x14033581b (219 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x1403345a2\n// > <???> @ 0x1406d518c\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\n// Hidden C++ exception states: #wind=2\nvoid MenuLayer::onMoreGames(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  bool v4; // r9\n  GameManager *v5; // rcx\n  GJMoreGamesLayer *v6; // rbx\n  void *v7; // [rsp+30h] [rbp+8h]\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v3 = (GameManager *)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    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setGameVariable(v3, \"0053\", 1);\n  v5 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::reportAchievementWithID(v5, \"geometry.ach.moreGames\", 100, v4);\n  v6 = GJMoreGamesLayer::create();\n  a1->addChild_0(a1, v6, 100);\n  v6->showLayer(v6, 0);\n}", "assembly": "; \n; MenuLayer::onMoreGames from 0x140335740 to 0x14033581b (219 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x1403345a2\n; > <???> @ 0x1406d518c\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_8], rbx                                               ; +0x0, 0x140335740\npush    rdi                                                            ; +0x5, 0x140335745\nsub     rsp, 20h                                                       ; +0x6, 0x140335746\nmov     rdi, rcx                                                       ; +0xa, 0x14033574a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd, 0x14033574d\ntest    rcx, rcx                                                       ; +0x14, 0x140335754\njnz     short loc_140335788                                            ; +0x17, 0x140335757\nmov     ecx, 668h; Size                                                ; +0x19, 0x140335759\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14033575e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x140335763\nmov     rcx, rax                                                       ; +0x28, 0x140335768\ncall    sub_14017AB00                                                  ; +0x2b, 0x14033576b\nnop                                                                    ; +0x30, 0x140335770\nmov     cs:qword_1406C2ED8, rax                                        ; +0x31, 0x140335771\nmov     rdx, [rax]                                                     ; +0x38, 0x140335778\nmov     rcx, rax                                                       ; +0x3b, 0x14033577b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x14033577e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x41, 0x140335781\nmov     r8b, 1                                                         ; +0x48, 0x140335788\nlea     rdx, a0053; \"0053\"                                             ; +0x4b, 0x14033578b\ncall    GameManager__setGameVariable                                   ; +0x52, 0x140335792\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x57, 0x140335797\ntest    rcx, rcx                                                       ; +0x5e, 0x14033579e\njnz     short loc_1403357D2                                            ; +0x61, 0x1403357a1\nmov     ecx, 668h; Size                                                ; +0x63, 0x1403357a3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x68, 0x1403357a8\nmov     [rsp+28h+arg_0], rax                                           ; +0x6d, 0x1403357ad\nmov     rcx, rax                                                       ; +0x72, 0x1403357b2\ncall    sub_14017AB00                                                  ; +0x75, 0x1403357b5\nnop                                                                    ; +0x7a, 0x1403357ba\nmov     cs:qword_1406C2ED8, rax                                        ; +0x7b, 0x1403357bb\nmov     rdx, [rax]                                                     ; +0x82, 0x1403357c2\nmov     rcx, rax                                                       ; +0x85, 0x1403357c5\ncall    qword ptr [rdx+48h]                                            ; +0x88, 0x1403357c8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8b, 0x1403357cb\nmov     r8d, 64h ; 'd'                                                 ; +0x92, 0x1403357d2\nlea     rdx, aGeometryAchMor; \"geometry.ach.moreGames\"                 ; +0x98, 0x1403357d8\ncall    GameManager__reportAchievementWithID                           ; +0x9f, 0x1403357df\ncall    GJMoreGamesLayer__create                                       ; +0xa4, 0x1403357e4\nmov     rbx, rax                                                       ; +0xa9, 0x1403357e9\nmov     r9, [rdi]                                                      ; +0xac, 0x1403357ec\nmov     r8d, 64h ; 'd'                                                 ; +0xaf, 0x1403357ef\nmov     rdx, rax                                                       ; +0xb5, 0x1403357f5\nmov     rcx, rdi                                                       ; +0xb8, 0x1403357f8\ncall    qword ptr [r9+1B8h]                                            ; +0xbb, 0x1403357fb\nmov     r8, [rbx]                                                      ; +0xc2, 0x140335802\nxor     edx, edx                                                       ; +0xc5, 0x140335805\nmov     rcx, rbx                                                       ; +0xc7, 0x140335807\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xca, 0x14033580a\nadd     rsp, 20h                                                       ; +0xcf, 0x14033580f\npop     rdi                                                            ; +0xd3, 0x140335813\njmp     qword ptr [r8+428h]                                            ; +0xd4, 0x140335814", "xrefs": ["MenuLayer::init @ 0x1403345a2", "<???> @ 0x1406d518c"], "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"}