{"type": "func", "start": 5373379264, "end": 5373379415, "name": "MenuLayer::onMyProfile", "pseudocode": "// \n// MenuLayer::onMyProfile from 0x1404742c0 to 0x140474357 (151 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x1404734a3\n// > <???> @ 0x140928238\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\n__int64 MenuLayer::onMyProfile()\n{\n  __int64 result; // rax\n  __int64 v1; // rcx\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rax\n  void *v5; // [rsp+40h] [rbp+18h]\n\n  result = GJAccountManager::sharedState();\n  if ( *(_DWORD *)(result + 360) - *(_DWORD *)(result + 364) > 0 )\n  {\n    v1 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v5 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v1 = qword_14090BFD0;\n    }\n    GameManager::setGameVariable(v1, \"0048\", 1u);\n    v2 = GJAccountManager::sharedState();\n    LOBYTE(v3) = 1;\n    v4 = ProfilePage::create((unsigned int)(*(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364)), v3);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);\n  }\n  return result;\n}", "assembly": "; \n; MenuLayer::onMyProfile from 0x1404742c0 to 0x140474357 (151 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x1404734a3\n; > <???> @ 0x140928238\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; \nsub     rsp, 28h                                                       ; +0x0, 0x1404742c0\ncall    GJAccountManager__sharedState                                  ; +0x4, 0x1404742c4\nmov     ecx, [rax+168h]                                                ; +0x9, 0x1404742c9\nsub     ecx, [rax+16Ch]                                                ; +0xf, 0x1404742cf\ntest    ecx, ecx                                                       ; +0x15, 0x1404742d5\njle     short loc_140474352                                            ; +0x17, 0x1404742d7\nmov     rcx, cs:qword_14090BFD0                                        ; +0x19, 0x1404742d9\ntest    rcx, rcx                                                       ; +0x20, 0x1404742e0\njnz     short loc_140474317                                            ; +0x23, 0x1404742e3\nmov     ecx, 6E8h; Size                                                ; +0x25, 0x1404742e5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1404742ea\nmov     [rsp+28h+arg_10], rax                                          ; +0x2f, 0x1404742ef\nmov     rcx, rax                                                       ; +0x34, 0x1404742f4\ncall    GameManager__GameManager                                       ; +0x37, 0x1404742f7\nnop                                                                    ; +0x3c, 0x1404742fc\nmov     cs:qword_14090BFD0, rax                                        ; +0x3d, 0x1404742fd\nmov     rcx, [rax]                                                     ; +0x44, 0x140474304\nmov     rdx, [rcx+48h]                                                 ; +0x47, 0x140474307\nmov     rcx, rax                                                       ; +0x4b, 0x14047430b\ncall    rdx                                                            ; +0x4e, 0x14047430e\nmov     rcx, cs:qword_14090BFD0                                        ; +0x50, 0x140474310\nmov     r8b, 1                                                         ; +0x57, 0x140474317\nlea     rdx, a0048; \"0048\"                                             ; +0x5a, 0x14047431a\ncall    GameManager__setGameVariable                                   ; +0x61, 0x140474321\ncall    GJAccountManager__sharedState                                  ; +0x66, 0x140474326\nmov     ecx, [rax+168h]                                                ; +0x6b, 0x14047432b\nsub     ecx, [rax+16Ch]                                                ; +0x71, 0x140474331\nmov     dl, 1                                                          ; +0x77, 0x140474337\ncall    ProfilePage__create                                            ; +0x79, 0x140474339\nmov     rcx, [rax]                                                     ; +0x7e, 0x14047433e\nmov     rdx, [rcx+428h]                                                ; +0x81, 0x140474341\nmov     rcx, rax                                                       ; +0x88, 0x140474348\nadd     rsp, 28h                                                       ; +0x8b, 0x14047434b\njmp     rdx                                                            ; +0x8f, 0x14047434f\nadd     rsp, 28h                                                       ; +0x92, 0x140474352\nretn                                                                   ; +0x96, 0x140474356", "xrefs": ["MenuLayer::init @ 0x1404734a3", "<???> @ 0x140928238"], "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"}