{"type": "func", "start": 5372073440, "end": 5372073585, "name": "MenuLayer::onMyProfile", "pseudocode": "// \n// MenuLayer::onMyProfile from 0x1403355e0 to 0x140335671 (145 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x140334c5e\n// > <???> @ 0x1406d5138\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=1\nvoid MenuLayer::onMyProfile(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  GJAccountManager *v2; // rax\n  GameManager *v3; // rcx\n  GJAccountManager *v4; // rax\n  ProfilePage *v5; // rax\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  v2 = GJAccountManager::sharedState();\n  if ( v2->m_accountID - v2->m_unkInt1 > 0 )\n  {\n    v3 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v6 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::setGameVariable(v3, \"0048\", 1);\n    v4 = GJAccountManager::sharedState();\n    v5 = ProfilePage::create(v4->m_accountID - v4->m_unkInt1, 1);\n    v5->show(v5);\n  }\n}", "assembly": "; \n; MenuLayer::onMyProfile from 0x1403355e0 to 0x140335671 (145 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x140334c5e\n; > <???> @ 0x1406d5138\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\nsub     rsp, 28h                                                       ; +0x0, 0x1403355e0\ncall    GJAccountManager__sharedState                                  ; +0x4, 0x1403355e4\nmov     ecx, [rax+168h]                                                ; +0x9, 0x1403355e9\nsub     ecx, [rax+16Ch]                                                ; +0xf, 0x1403355ef\ntest    ecx, ecx                                                       ; +0x15, 0x1403355f5\njle     short loc_14033566C                                            ; +0x17, 0x1403355f7\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x19, 0x1403355f9\ntest    rcx, rcx                                                       ; +0x20, 0x140335600\njnz     short loc_140335634                                            ; +0x23, 0x140335603\nmov     ecx, 668h; Size                                                ; +0x25, 0x140335605\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x14033560a\nmov     [rsp+28h+arg_10], rax                                          ; +0x2f, 0x14033560f\nmov     rcx, rax                                                       ; +0x34, 0x140335614\ncall    sub_14017AB00                                                  ; +0x37, 0x140335617\nnop                                                                    ; +0x3c, 0x14033561c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3d, 0x14033561d\nmov     rdx, [rax]                                                     ; +0x44, 0x140335624\nmov     rcx, rax                                                       ; +0x47, 0x140335627\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x14033562a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4d, 0x14033562d\nmov     r8b, 1                                                         ; +0x54, 0x140335634\nlea     rdx, a0048; \"0048\"                                             ; +0x57, 0x140335637\ncall    GameManager__setGameVariable                                   ; +0x5e, 0x14033563e\ncall    GJAccountManager__sharedState                                  ; +0x63, 0x140335643\nmov     ecx, [rax+168h]                                                ; +0x68, 0x140335648\nsub     ecx, [rax+16Ch]                                                ; +0x6e, 0x14033564e\nmov     dl, 1                                                          ; +0x74, 0x140335654\ncall    ProfilePage__create                                            ; +0x76, 0x140335656\nmov     rdx, [rax]                                                     ; +0x7b, 0x14033565b\nmov     rcx, rax                                                       ; +0x7e, 0x14033565e\nadd     rsp, 28h                                                       ; +0x81, 0x140335661\njmp     qword ptr [rdx+410h]                                           ; +0x85, 0x140335665\nadd     rsp, 28h                                                       ; +0x8c, 0x14033566c\nretn                                                                   ; +0x90, 0x140335670", "xrefs": ["MenuLayer::init @ 0x140334c5e", "<???> @ 0x1406d5138"], "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"}