{"type": "func", "start": 4297320784, "end": 4297321205, "name": "GJScoreCell::onViewProfile", "pseudocode": "// \n// GJScoreCell::onViewProfile from 0x10023e950 to 0x10023eaf5 (421 bytes)\n// \n// 1 xrefs:\n// > GJScoreCell::loadFromScore @ 0x10022fb8d\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 12:27:17 +0000\n// \n\nvoid __fastcall GJScoreCell::onViewProfile(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // r15\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  const char *CString; // r15\n  size_t v10; // rax\n  size_t v11; // r14\n  char *v12; // r12\n  size_t v13; // r13\n  __int64 v14; // rax\n  __int64 v15; // rax\n  char *v16; // rax\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  v2 = *(_QWORD *)(a1 + 560);\n  if ( v2 )\n  {\n    a1 = *(unsigned int *)(v2 + 376);\n    if ( (int)a1 > 0 )\n    {\n      v3 = ProfilePage::create(a1, 0);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n      return;\n    }\n  }\n  if ( *(_DWORD *)(v2 + 368) == 1 && !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 176) )\n  {\n    if ( *(_DWORD *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 272) + 28LL) != 15 )\n    {\n      v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 96);\n      v5 = cocos2d::CCDirector::sharedDirector(a1, a2);\n      v6 = cocos2d::CCDirector::sharedDirector(a1, a2);\n      if ( v4 )\n      {\n        a2 = *(_QWORD *)(v6 + 96);\n        a1 = v5;\n        cocos2d::CCDirector::popToSceneInStack(v5, a2);\n      }\n      else\n      {\n        *(_QWORD *)(v5 + 96) = *(_QWORD *)(v6 + 272);\n      }\n    }\n    v7 = cocos2d::CCDirector::sharedDirector(a1, a2);\n    v8 = sub_10088E820(\"%i\", __dst[0]);\n    CString = (const char *)cocos2d::CCString::getCString(v8);\n    v10 = strlen(CString);\n    if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100003630();\n    v11 = v10;\n    if ( v10 >= 0x17 )\n    {\n      v13 = 26;\n      if ( (v10 | 7) != 0x17 )\n        v13 = (v10 | 7) + 1;\n      v12 = (char *)operator new(v13);\n      __p = v12;\n      __dst[0] = v13 + 1;\n      __dst[1] = v11;\n    }\n    else\n    {\n      LOBYTE(__dst[0]) = 2 * v10;\n      v12 = (char *)__dst + 1;\n      if ( !v10 )\n      {\nLABEL_18:\n        v12[v11] = 0;\n        v14 = GJSearchObject::create_1(5, __dst);\n        v15 = LevelBrowserLayer::scene(v14);\n        v16 = cocos2d::CCTransitionFade::create_1(v15, 0.5);\n        cocos2d::CCDirector::pushScene(v7, v16);\n        if ( (__dst[0] & 1) != 0 )\n          operator delete(__p);\n        return;\n      }\n    }\n    memmove(v12, CString, v11);\n    goto LABEL_18;\n  }\n}", "assembly": "; \n; GJScoreCell::onViewProfile from 0x10023e950 to 0x10023eaf5 (421 bytes)\n; \n; 1 xrefs:\n; > GJScoreCell::loadFromScore @ 0x10022fb8d\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 12:27:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x10023e950\nmov     rbp, rsp                                                       ; +0x1, 0x10023e951\npush    r15                                                            ; +0x4, 0x10023e954\npush    r14                                                            ; +0x6, 0x10023e956\npush    r13                                                            ; +0x8, 0x10023e958\npush    r12                                                            ; +0xa, 0x10023e95a\npush    rbx                                                            ; +0xc, 0x10023e95c\nsub     rsp, 18h                                                       ; +0xd, 0x10023e95d\nmov     r14, rdi                                                       ; +0x11, 0x10023e961\nmov     rax, [rdi+230h]                                                ; +0x14, 0x10023e964\ntest    rax, rax                                                       ; +0x1b, 0x10023e96b\njz      short loc_10023E99B                                            ; +0x1e, 0x10023e96e\nmov     edi, [rax+178h]                                                ; +0x20, 0x10023e970\ntest    edi, edi                                                       ; +0x26, 0x10023e976\njle     short loc_10023E99B                                            ; +0x28, 0x10023e978\nxor     esi, esi                                                       ; +0x2a, 0x10023e97a\ncall    ProfilePage__create                                            ; +0x2c, 0x10023e97c\nmov     rcx, [rax]                                                     ; +0x31, 0x10023e981\nmov     rdi, rax                                                       ; +0x34, 0x10023e984\nadd     rsp, 18h                                                       ; +0x37, 0x10023e987\npop     rbx                                                            ; +0x3b, 0x10023e98b\npop     r12                                                            ; +0x3c, 0x10023e98c\npop     r13                                                            ; +0x3e, 0x10023e98e\npop     r14                                                            ; +0x40, 0x10023e990\npop     r15                                                            ; +0x42, 0x10023e992\npop     rbp                                                            ; +0x44, 0x10023e994\njmp     qword ptr [rcx+520h]                                           ; +0x45, 0x10023e995\ncmp     dword ptr [rax+170h], 1                                        ; +0x4b, 0x10023e99b\njnz     loc_10023EAE1                                                  ; +0x52, 0x10023e9a2\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x58, 0x10023e9a8\ncmp     byte ptr [rax+0B0h], 0                                         ; +0x5d, 0x10023e9ad\njnz     loc_10023EAE1                                                  ; +0x64, 0x10023e9b4\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x6a, 0x10023e9ba\nmov     rax, [rax+110h]                                                ; +0x6f, 0x10023e9bf\ncmp     dword ptr [rax+1Ch], 0Fh                                       ; +0x76, 0x10023e9c6\njz      short loc_10023EA00                                            ; +0x7a, 0x10023e9ca\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7c, 0x10023e9cc\nmov     r15, [rax+60h]                                                 ; +0x81, 0x10023e9d1\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x85, 0x10023e9d5\nmov     rbx, rax                                                       ; +0x8a, 0x10023e9da\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8d, 0x10023e9dd\ntest    r15, r15                                                       ; +0x92, 0x10023e9e2\njz      short loc_10023E9F5                                            ; +0x95, 0x10023e9e5\nmov     rsi, [rax+60h]                                                 ; +0x97, 0x10023e9e7\nmov     rdi, rbx                                                       ; +0x9b, 0x10023e9eb\ncall    cocos2d__CCDirector__popToSceneInStack                         ; +0x9e, 0x10023e9ee\njmp     short loc_10023EA00                                            ; +0xa3, 0x10023e9f3\nmov     rax, [rax+110h]                                                ; +0xa5, 0x10023e9f5\nmov     [rbx+60h], rax                                                 ; +0xac, 0x10023e9fc\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xb0, 0x10023ea00\nmov     rbx, rax                                                       ; +0xb5, 0x10023ea05\nmov     rax, [r14+230h]                                                ; +0xb8, 0x10023ea08\nmov     esi, [rax+174h]                                                ; +0xbf, 0x10023ea0f\nlea     rdi, aI_14; \"%i\"                                               ; +0xc5, 0x10023ea15\nxor     eax, eax                                                       ; +0xcc, 0x10023ea1c\ncall    sub_10088E820                                                  ; +0xce, 0x10023ea1e\nmov     rdi, rax                                                       ; +0xd3, 0x10023ea23\ncall    cocos2d__CCString__getCString                                  ; +0xd6, 0x10023ea26\nmov     r15, rax                                                       ; +0xdb, 0x10023ea2b\nmov     rdi, rax; __s                                                  ; +0xde, 0x10023ea2e\ncall    _strlen                                                        ; +0xe1, 0x10023ea31\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xe6, 0x10023ea36\njnb     loc_10023EAF0                                                  ; +0xea, 0x10023ea3a\nmov     r14, rax                                                       ; +0xf0, 0x10023ea40\ncmp     rax, 17h                                                       ; +0xf3, 0x10023ea43\njnb     short loc_10023EA5B                                            ; +0xf7, 0x10023ea47\nlea     eax, [r14+r14]                                                 ; +0xf9, 0x10023ea49\nmov     byte ptr [rbp+__dst], al                                       ; +0xfd, 0x10023ea4d\nlea     r12, [rbp+__dst+1]                                             ; +0x100, 0x10023ea50\ntest    r14, r14                                                       ; +0x104, 0x10023ea54\njnz     short loc_10023EA8E                                            ; +0x107, 0x10023ea57\njmp     short loc_10023EA9C                                            ; +0x109, 0x10023ea59\nmov     rax, r14                                                       ; +0x10b, 0x10023ea5b\nor      rax, 7                                                         ; +0x10e, 0x10023ea5e\nlea     rcx, [rax+1]                                                   ; +0x112, 0x10023ea62\ncmp     rax, 17h                                                       ; +0x116, 0x10023ea66\nmov     r13d, 1Ah                                                      ; +0x11a, 0x10023ea6a\ncmovnz  r13, rcx                                                       ; +0x120, 0x10023ea70\nmov     rdi, r13; __sz                                                 ; +0x124, 0x10023ea74\ncall    __Znwm; operator new(ulong)                                    ; +0x127, 0x10023ea77\nmov     r12, rax                                                       ; +0x12c, 0x10023ea7c\nmov     [rbp+__p], rax                                                 ; +0x12f, 0x10023ea7f\ninc     r13                                                            ; +0x133, 0x10023ea83\nmov     [rbp+__dst], r13                                               ; +0x136, 0x10023ea86\nmov     [rbp+var_38], r14                                              ; +0x13a, 0x10023ea8a\nmov     rdi, r12; __dst                                                ; +0x13e, 0x10023ea8e\nmov     rsi, r15; __src                                                ; +0x141, 0x10023ea91\nmov     rdx, r14; __len                                                ; +0x144, 0x10023ea94\ncall    _memmove                                                       ; +0x147, 0x10023ea97\nmov     byte ptr [r12+r14], 0                                          ; +0x14c, 0x10023ea9c\nlea     rsi, [rbp+__dst]                                               ; +0x151, 0x10023eaa1\nmov     edi, 5                                                         ; +0x155, 0x10023eaa5\ncall    GJSearchObject__create_1                                       ; +0x15a, 0x10023eaaa\nmov     rdi, rax                                                       ; +0x15f, 0x10023eaaf\ncall    LevelBrowserLayer__scene                                       ; +0x162, 0x10023eab2\nmovss   xmm0, cs:dword_100A03578                                       ; +0x167, 0x10023eab7\nmov     rdi, rax                                                       ; +0x16f, 0x10023eabf\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x172, 0x10023eac2\nmov     rdi, rbx                                                       ; +0x177, 0x10023eac7\nmov     rsi, rax                                                       ; +0x17a, 0x10023eaca\ncall    cocos2d__CCDirector__pushScene                                 ; +0x17d, 0x10023eacd\ntest    byte ptr [rbp+__dst], 1                                        ; +0x182, 0x10023ead2\njz      short loc_10023EAE1                                            ; +0x186, 0x10023ead6\nmov     rdi, [rbp+__p]; __p                                            ; +0x188, 0x10023ead8\ncall    __ZdlPv; operator delete(void *)                               ; +0x18c, 0x10023eadc\nadd     rsp, 18h                                                       ; +0x191, 0x10023eae1\npop     rbx                                                            ; +0x195, 0x10023eae5\npop     r12                                                            ; +0x196, 0x10023eae6\npop     r13                                                            ; +0x198, 0x10023eae8\npop     r14                                                            ; +0x19a, 0x10023eaea\npop     r15                                                            ; +0x19c, 0x10023eaec\npop     rbp                                                            ; +0x19e, 0x10023eaee\nretn                                                                   ; +0x19f, 0x10023eaef\ncall    sub_100003630                                                  ; +0x1a0, 0x10023eaf0", "xrefs": ["GJScoreCell::loadFromScore @ 0x10022fb8d"], "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"}