{"type": "func", "start": 5370112432, "end": 5370112813, "name": "GJScoreCell::onViewProfile", "pseudocode": "// \n// GJScoreCell::onViewProfile from 0x1401569b0 to 0x140156b2d (381 bytes)\n// \n// 4 xrefs:\n// > GJScoreCell::loadFromScore @ 0x1401556af\n// > <???> @ 0x14089af7c\n// > <???> @ 0x14089af8c\n// > <???> @ 0x140917948\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:27:20 +0000\n// \n\nchar __fastcall GJScoreCell::onViewProfile(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rdi\n  __int64 v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rbx\n  __int64 v8; // rcx\n  struct cocos2d::CCScene *v9; // rbx\n  __int64 v10; // rcx\n  cocos2d::CCDirector *v11; // rax\n  cocos2d::CCString *v12; // rax\n  const char *CString; // rax\n  size_t v14; // r8\n  __int64 v15; // rbx\n  __int64 v16; // rdx\n  __int64 v17; // rcx\n  __int64 v18; // r8\n  __int64 v19; // r9\n  struct cocos2d::CCScene *v20; // rdi\n  __int64 v21; // rcx\n  __int64 v22; // rax\n  struct cocos2d::CCScene *v23; // rbx\n  __int64 v24; // rcx\n  cocos2d::CCDirector *v25; // rax\n  __int128 v27; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v28; // [rsp+30h] [rbp-18h]\n  __int64 v29; // [rsp+38h] [rbp-10h]\n\n  v1 = *(_QWORD *)(a1 + 568);\n  v2 = a1;\n  if ( v1 && (a1 = *(unsigned int *)(v1 + 392), (int)a1 > 0) )\n  {\n    v3 = ProfilePage::create(a1, 0);\n    LOBYTE(v1) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n  else if ( *(_DWORD *)(v1 + 384) == 1 )\n  {\n    v1 = cocos2d::CCDirector::sharedDirector(a1);\n    if ( !*(_BYTE *)(v1 + 176) )\n    {\n      v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v4) + 272);\n      if ( *(_DWORD *)(v5 + 28) != 15 )\n      {\n        if ( *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v5) + 96) )\n        {\n          v9 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v6) + 96);\n          v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n          cocos2d::CCDirector::popToSceneInStack(v11, v9);\n        }\n        else\n        {\n          v7 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 272);\n          *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v8) + 96) = v7;\n        }\n      }\n      v12 = cocos2d::CCString::createWithFormat(\n              (const char *)&word_1406ED6F8,\n              *(unsigned int *)(*(_QWORD *)(v2 + 568) + 388LL));\n      CString = cocos2d::CCString::getCString(v12);\n      v27 = 0;\n      v28 = 0;\n      v14 = -1;\n      v29 = 0;\n      do\n        ++v14;\n      while ( CString[v14] );\n      sub_14003D230(&v27, CString, v14);\n      v15 = GJSearchObject::create_1(5, &v27);\n      v20 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v17, v16, v18, v19);\n      *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v21) + 232) = v20;\n      v22 = LevelBrowserLayer::create(v15);\n      (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v20 + 464LL))(v20, v22);\n      v23 = cocos2d::CCTransitionFade::create(0.5, v20);\n      v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v24);\n      LOBYTE(v1) = cocos2d::CCDirector::pushScene(v25, v23);\n    }\n  }\n  return v1;\n}", "assembly": "; \n; GJScoreCell::onViewProfile from 0x1401569b0 to 0x140156b2d (381 bytes)\n; \n; 4 xrefs:\n; > GJScoreCell::loadFromScore @ 0x1401556af\n; > <???> @ 0x14089af7c\n; > <???> @ 0x14089af8c\n; > <???> @ 0x140917948\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:27:20 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401569b0\nsub     rsp, 40h                                                       ; +0x2, 0x1401569b2\nmov     rax, [rcx+238h]                                                ; +0x6, 0x1401569b6\nmov     rdi, rcx                                                       ; +0xd, 0x1401569bd\ntest    rax, rax                                                       ; +0x10, 0x1401569c0\njz      short loc_1401569EB                                            ; +0x13, 0x1401569c3\nmov     ecx, [rax+188h]                                                ; +0x15, 0x1401569c5\ntest    ecx, ecx                                                       ; +0x1b, 0x1401569cb\njle     short loc_1401569EB                                            ; +0x1d, 0x1401569cd\nxor     edx, edx                                                       ; +0x1f, 0x1401569cf\ncall    ProfilePage__create                                            ; +0x21, 0x1401569d1\nmov     rcx, [rax]                                                     ; +0x26, 0x1401569d6\nmov     rdx, [rcx+428h]                                                ; +0x29, 0x1401569d9\nmov     rcx, rax                                                       ; +0x30, 0x1401569e0\nadd     rsp, 40h                                                       ; +0x33, 0x1401569e3\npop     rdi                                                            ; +0x37, 0x1401569e7\njmp     rdx                                                            ; +0x38, 0x1401569e8\ncmp     dword ptr [rax+180h], 1                                        ; +0x3b, 0x1401569eb\njnz     loc_140156B27                                                  ; +0x42, 0x1401569f2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x48, 0x1401569f8\ncmp     byte ptr [rax+0B0h], 0                                         ; +0x4e, 0x1401569fe\njnz     loc_140156B27                                                  ; +0x55, 0x140156a05\nmov     [rsp+48h+arg_8], rbx                                           ; +0x5b, 0x140156a0b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x60, 0x140156a10\nmov     rcx, [rax+110h]                                                ; +0x66, 0x140156a16\ncmp     dword ptr [rcx+1Ch], 0Fh                                       ; +0x6d, 0x140156a1d\njz      short loc_140156A65                                            ; +0x71, 0x140156a21\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x73, 0x140156a23\ncmp     qword ptr [rax+60h], 0                                         ; +0x79, 0x140156a29\njnz     short loc_140156A49                                            ; +0x7e, 0x140156a2e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x80, 0x140156a30\nmov     rbx, [rax+110h]                                                ; +0x86, 0x140156a36\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8d, 0x140156a3d\nmov     [rax+60h], rbx                                                 ; +0x93, 0x140156a43\njmp     short loc_140156A65                                            ; +0x97, 0x140156a47\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x99, 0x140156a49\nmov     rbx, [rax+60h]                                                 ; +0x9f, 0x140156a4f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xa3, 0x140156a53\nmov     rcx, rax                                                       ; +0xa9, 0x140156a59\nmov     rdx, rbx                                                       ; +0xac, 0x140156a5c\ncall    cs:?popToSceneInStack@CCDirector@cocos2d@@QEAAXPEAVCCScene@2@@Z; cocos2d::CCDirector::popToSceneInStack(cocos2d::CCScene *) ; +0xaf, 0x140156a5f\nmov     rdx, [rdi+238h]                                                ; +0xb5, 0x140156a65\nlea     rcx, word_1406ED6F8                                            ; +0xbc, 0x140156a6c\nmov     edx, [rdx+184h]                                                ; +0xc3, 0x140156a73\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc9, 0x140156a79\nmov     rcx, rax                                                       ; +0xcf, 0x140156a7f\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd2, 0x140156a82\nxor     ecx, ecx                                                       ; +0xd8, 0x140156a88\nxorps   xmm0, xmm0                                                     ; +0xda, 0x140156a8a\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xdd, 0x140156a8d\nmov     [rsp+48h+var_18], rcx                                          ; +0xe2, 0x140156a92\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xe7, 0x140156a97\nmov     [rsp+48h+var_10], rcx                                          ; +0xee, 0x140156a9e\ninc     r8                                                             ; +0xf3, 0x140156aa3\ncmp     [rax+r8], cl                                                   ; +0xf6, 0x140156aa6\njnz     short loc_140156AA3                                            ; +0xfa, 0x140156aaa\nmov     rdx, rax                                                       ; +0xfc, 0x140156aac\nlea     rcx, [rsp+48h+var_28]                                          ; +0xff, 0x140156aaf\ncall    sub_14003D230                                                  ; +0x104, 0x140156ab4\nlea     rdx, [rsp+48h+var_28]                                          ; +0x109, 0x140156ab9\nmov     ecx, 5                                                         ; +0x10e, 0x140156abe\ncall    GJSearchObject__create_1                                       ; +0x113, 0x140156ac3\nmov     rbx, rax                                                       ; +0x118, 0x140156ac8\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x11b, 0x140156acb\nmov     rdi, rax                                                       ; +0x121, 0x140156ad1\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x124, 0x140156ad4\nmov     rcx, rbx                                                       ; +0x12a, 0x140156ada\nmov     [rax+0E8h], rdi                                                ; +0x12d, 0x140156add\ncall    LevelBrowserLayer__create                                      ; +0x134, 0x140156ae4\nmov     rcx, [rdi]                                                     ; +0x139, 0x140156ae9\nmov     rdx, rax                                                       ; +0x13c, 0x140156aec\nmov     r8, [rcx+1D0h]                                                 ; +0x13f, 0x140156aef\nmov     rcx, rdi                                                       ; +0x146, 0x140156af6\ncall    r8                                                             ; +0x149, 0x140156af9\nmovss   xmm0, cs:dword_140834F20                                       ; +0x14c, 0x140156afc\nmov     rdx, rdi                                                       ; +0x154, 0x140156b04\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x157, 0x140156b07\nmov     rbx, rax                                                       ; +0x15d, 0x140156b0d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x160, 0x140156b10\nmov     rcx, rax                                                       ; +0x166, 0x140156b16\nmov     rdx, rbx                                                       ; +0x169, 0x140156b19\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x16c, 0x140156b1c\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x172, 0x140156b22\nadd     rsp, 40h                                                       ; +0x177, 0x140156b27\npop     rdi                                                            ; +0x17b, 0x140156b2b\nretn                                                                   ; +0x17c, 0x140156b2c", "xrefs": ["GJScoreCell::loadFromScore @ 0x1401556af", "<???> @ 0x14089af7c", "<???> @ 0x14089af8c", "<???> @ 0x140917948"], "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"}