{"type": "func", "start": 5371850416, "end": 5371850585, "name": "LevelInfoLayer::onViewProfile", "pseudocode": "// \n// LevelInfoLayer::onViewProfile from 0x1402feeb0 to 0x1402fef59 (169 bytes)\n// \n// 3 xrefs:\n// > LevelInfoLayer::init @ 0x1402f7bcf\n// > <???> @ 0x1406d42ec\n// > <???> @ 0x1406d42f8\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 LevelInfoLayer::onViewProfile(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  ProfilePage *v4; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_isBusy && a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed > 0 )\n  {\n    v3 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::setGameVariable(v3, \"0047\", 1);\n    v4 = ProfilePage::create(a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed, 0);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onViewProfile from 0x1402feeb0 to 0x1402fef59 (169 bytes)\n; \n; 3 xrefs:\n; > LevelInfoLayer::init @ 0x1402f7bcf\n; > <???> @ 0x1406d42ec\n; > <???> @ 0x1406d42f8\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, 0x1402feeb0\nsub     rsp, 20h                                                       ; +0x2, 0x1402feeb2\nmov     rbx, rcx                                                       ; +0x6, 0x1402feeb6\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x9, 0x1402feeb9\njnz     loc_1402FEF53                                                  ; +0x10, 0x1402feec0\nmov     rax, [rcx+1F0h]                                                ; +0x16, 0x1402feec6\nmov     edx, [rax+28Ch]                                                ; +0x1d, 0x1402feecd\nsub     edx, [rax+290h]                                                ; +0x23, 0x1402feed3\ntest    edx, edx                                                       ; +0x29, 0x1402feed9\njle     short loc_1402FEF53                                            ; +0x2b, 0x1402feedb\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2d, 0x1402feedd\ntest    rcx, rcx                                                       ; +0x34, 0x1402feee4\njnz     short loc_1402FEF18                                            ; +0x37, 0x1402feee7\nmov     ecx, 668h; Size                                                ; +0x39, 0x1402feee9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x1402feeee\nmov     [rsp+28h+arg_0], rax                                           ; +0x43, 0x1402feef3\nmov     rcx, rax                                                       ; +0x48, 0x1402feef8\ncall    sub_14017AB00                                                  ; +0x4b, 0x1402feefb\nnop                                                                    ; +0x50, 0x1402fef00\nmov     cs:qword_1406C2ED8, rax                                        ; +0x51, 0x1402fef01\nmov     rdx, [rax]                                                     ; +0x58, 0x1402fef08\nmov     rcx, rax                                                       ; +0x5b, 0x1402fef0b\ncall    qword ptr [rdx+48h]                                            ; +0x5e, 0x1402fef0e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x61, 0x1402fef11\nmov     r8b, 1                                                         ; +0x68, 0x1402fef18\nlea     rdx, a0047; \"0047\"                                             ; +0x6b, 0x1402fef1b\ncall    GameManager__setGameVariable                                   ; +0x72, 0x1402fef22\nmov     rax, [rbx+1F0h]                                                ; +0x77, 0x1402fef27\nmov     ecx, [rax+28Ch]                                                ; +0x7e, 0x1402fef2e\nsub     ecx, [rax+290h]                                                ; +0x84, 0x1402fef34\nxor     edx, edx                                                       ; +0x8a, 0x1402fef3a\ncall    ProfilePage__create                                            ; +0x8c, 0x1402fef3c\nmov     rdx, [rax]                                                     ; +0x91, 0x1402fef41\nmov     rcx, rax                                                       ; +0x94, 0x1402fef44\nadd     rsp, 20h                                                       ; +0x97, 0x1402fef47\npop     rbx                                                            ; +0x9b, 0x1402fef4b\njmp     qword ptr [rdx+410h]                                           ; +0x9c, 0x1402fef4c\nadd     rsp, 20h                                                       ; +0xa3, 0x1402fef53\npop     rbx                                                            ; +0xa7, 0x1402fef57\nretn                                                                   ; +0xa8, 0x1402fef58", "xrefs": ["LevelInfoLayer::init @ 0x1402f7bcf", "<???> @ 0x1406d42ec", "<???> @ 0x1406d42f8"], "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"}