{"type": "func", "start": 5372656000, "end": 5372656423, "name": "ProfilePage::onMyLevels", "pseudocode": "// \n// ProfilePage::onMyLevels from 0x1403c3980 to 0x1403c3b27 (423 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c25b0\n// > <???> @ 0x1406d7778\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 ProfilePage::onMyLevels(ProfilePage *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rbx\n  __int64 v9; // rcx\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  __int64 v13; // rcx\n  cocos2d::CCString *v14; // rax\n  int v15; // eax\n  cocos2d::CCString *v16; // rax\n  const char *CString; // rax\n  size_t v18; // r8\n  GJSearchObject *v19; // rbx\n  struct cocos2d::CCScene *v20; // rdi\n  __int64 v21; // rcx\n  LevelBrowserLayer *v22; // rax\n  struct cocos2d::CCTransitionFade *v23; // rbx\n  __int64 v24; // rcx\n  cocos2d::CCDirector *v25; // rax\n  __int128 v26; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v27; // [rsp+30h] [rbp-18h]\n  __int64 v28; // [rsp+38h] [rbp-10h]\n  void *v29; // [rsp+50h] [rbp+8h]\n\n  if ( a1->m_ownProfile )\n  {\n    v3 = (__int64)GJSearchObject::create_2(MyLevels);\n  }\n  else\n  {\n    if ( *(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 168) )\n      return;\n    v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v5) + 264);\n    if ( *(_DWORD *)(v6 + 28) != 15 )\n    {\n      if ( *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 96) )\n      {\n        v10 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v7) + 96);\n        v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n        cocos2d::CCDirector::popToSceneInStack(v12, v10);\n      }\n      else\n      {\n        v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v7) + 264);\n        *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 96) = v8;\n      }\n    }\n    v13 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v29 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v29);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v13 = qword_1406C2EC0;\n    }\n    v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(\n                                 *(cocos2d::CCDictionary **)(v13 + 528),\n                                 a1->m_accountID);\n    v15 = cocos2d::CCString::intValue(v14);\n    v16 = cocos2d::CCString::createWithFormat(\"%i\", v15);\n    CString = cocos2d::CCString::getCString(v16);\n    v26 = 0;\n    v27 = 0;\n    v28 = 0;\n    v18 = -1;\n    do\n      ++v18;\n    while ( CString[v18] );\n    sub_14003A930(&v26, CString, v18);\n    v3 = GJSearchObject::create_1(5, (__int64)&v26);\n  }\n  v19 = (GJSearchObject *)v3;\n  v20 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v21) + 224) = v20;\n  v22 = LevelBrowserLayer::create(v19);\n  v20->addChild_1(v20, v22);\n  v23 = cocos2d::CCTransitionFade::create(0.5, v20);\n  v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v24);\n  cocos2d::CCDirector::pushScene(v25, v23);\n}", "assembly": "; \n; ProfilePage::onMyLevels from 0x1403c3980 to 0x1403c3b27 (423 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c25b0\n; > <???> @ 0x1406d7778\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403c3980\npush    rdi                                                            ; +0x5, 0x1403c3985\nsub     rsp, 40h                                                       ; +0x6, 0x1403c3986\nmov     rdi, rcx                                                       ; +0xa, 0x1403c398a\ncmp     byte ptr [rcx+2BCh], 0                                         ; +0xd, 0x1403c398d\njz      short loc_1403C39A5                                            ; +0x14, 0x1403c3994\nmov     ecx, 62h ; 'b'                                                 ; +0x16, 0x1403c3996\ncall    GJSearchObject__create_2                                       ; +0x1b, 0x1403c399b\njmp     loc_1403C3AC5                                                  ; +0x20, 0x1403c39a0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x25, 0x1403c39a5\ncmp     byte ptr [rax+0A8h], 0                                         ; +0x2b, 0x1403c39ab\njnz     loc_1403C3B1C                                                  ; +0x32, 0x1403c39b2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x1403c39b8\nmov     rcx, [rax+108h]                                                ; +0x3e, 0x1403c39be\ncmp     dword ptr [rcx+1Ch], 0Fh                                       ; +0x45, 0x1403c39c5\njz      short loc_1403C3A0D                                            ; +0x49, 0x1403c39c9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4b, 0x1403c39cb\ncmp     qword ptr [rax+60h], 0                                         ; +0x51, 0x1403c39d1\njnz     short loc_1403C39F1                                            ; +0x56, 0x1403c39d6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x58, 0x1403c39d8\nmov     rbx, [rax+108h]                                                ; +0x5e, 0x1403c39de\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x1403c39e5\nmov     [rax+60h], rbx                                                 ; +0x6b, 0x1403c39eb\njmp     short loc_1403C3A0D                                            ; +0x6f, 0x1403c39ef\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x71, 0x1403c39f1\nmov     rbx, [rax+60h]                                                 ; +0x77, 0x1403c39f7\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7b, 0x1403c39fb\nmov     rcx, rax                                                       ; +0x81, 0x1403c3a01\nmov     rdx, rbx                                                       ; +0x84, 0x1403c3a04\ncall    cs:?popToSceneInStack@CCDirector@cocos2d@@QEAAXPEAVCCScene@2@@Z; cocos2d::CCDirector::popToSceneInStack(cocos2d::CCScene *) ; +0x87, 0x1403c3a07\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x8d, 0x1403c3a0d\ntest    rcx, rcx                                                       ; +0x94, 0x1403c3a14\njnz     short loc_1403C3A48                                            ; +0x97, 0x1403c3a17\nmov     ecx, 3D0h; Size                                                ; +0x99, 0x1403c3a19\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9e, 0x1403c3a1e\nmov     [rsp+48h+arg_0], rax                                           ; +0xa3, 0x1403c3a23\nmov     rcx, rax                                                       ; +0xa8, 0x1403c3a28\ncall    sub_140141280                                                  ; +0xab, 0x1403c3a2b\nnop                                                                    ; +0xb0, 0x1403c3a30\nmov     cs:qword_1406C2EC0, rax                                        ; +0xb1, 0x1403c3a31\nmov     rdx, [rax]                                                     ; +0xb8, 0x1403c3a38\nmov     rcx, rax                                                       ; +0xbb, 0x1403c3a3b\ncall    qword ptr [rdx+48h]                                            ; +0xbe, 0x1403c3a3e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xc1, 0x1403c3a41\nmovsxd  rdx, dword ptr [rdi+2B8h]                                      ; +0xc8, 0x1403c3a48\nmov     rcx, [rcx+210h]                                                ; +0xcf, 0x1403c3a4f\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@_J@Z; cocos2d::CCDictionary::valueForKey(__int64) ; +0xd6, 0x1403c3a56\nmov     rcx, rax                                                       ; +0xdc, 0x1403c3a5c\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xdf, 0x1403c3a5f\nmov     edx, eax                                                       ; +0xe5, 0x1403c3a65\nlea     rcx, aI_11; \"%i\"                                               ; +0xe7, 0x1403c3a67\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xee, 0x1403c3a6e\nmov     rcx, rax                                                       ; +0xf4, 0x1403c3a74\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xf7, 0x1403c3a77\nxorps   xmm0, xmm0                                                     ; +0xfd, 0x1403c3a7d\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x100, 0x1403c3a80\nxor     ecx, ecx                                                       ; +0x105, 0x1403c3a85\nmov     [rsp+48h+var_18], rcx                                          ; +0x107, 0x1403c3a87\nmov     [rsp+48h+var_10], rcx                                          ; +0x10c, 0x1403c3a8c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x111, 0x1403c3a91\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x118, 0x1403c3a98\ninc     r8                                                             ; +0x120, 0x1403c3aa0\ncmp     [rax+r8], cl                                                   ; +0x123, 0x1403c3aa3\njnz     short loc_1403C3AA0                                            ; +0x127, 0x1403c3aa7\nmov     rdx, rax                                                       ; +0x129, 0x1403c3aa9\nlea     rcx, [rsp+48h+var_28]                                          ; +0x12c, 0x1403c3aac\ncall    sub_14003A930                                                  ; +0x131, 0x1403c3ab1\nlea     rdx, [rsp+48h+var_28]                                          ; +0x136, 0x1403c3ab6\nmov     ecx, 5                                                         ; +0x13b, 0x1403c3abb\ncall    GJSearchObject__create_1                                       ; +0x140, 0x1403c3ac0\nmov     rbx, rax                                                       ; +0x145, 0x1403c3ac5\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x148, 0x1403c3ac8\nmov     rdi, rax                                                       ; +0x14e, 0x1403c3ace\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x151, 0x1403c3ad1\nmov     [rax+0E0h], rdi                                                ; +0x157, 0x1403c3ad7\nmov     rcx, rbx                                                       ; +0x15e, 0x1403c3ade\ncall    LevelBrowserLayer__create                                      ; +0x161, 0x1403c3ae1\nmov     r8, [rdi]                                                      ; +0x166, 0x1403c3ae6\nmov     rdx, rax                                                       ; +0x169, 0x1403c3ae9\nmov     rcx, rdi                                                       ; +0x16c, 0x1403c3aec\ncall    qword ptr [r8+1C0h]                                            ; +0x16f, 0x1403c3aef\nmov     rdx, rdi                                                       ; +0x176, 0x1403c3af6\nmovss   xmm0, cs:dword_140622B08                                       ; +0x179, 0x1403c3af9\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x181, 0x1403c3b01\nmov     rbx, rax                                                       ; +0x187, 0x1403c3b07\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18a, 0x1403c3b0a\nmov     rdx, rbx                                                       ; +0x190, 0x1403c3b10\nmov     rcx, rax                                                       ; +0x193, 0x1403c3b13\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x196, 0x1403c3b16\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x19c, 0x1403c3b1c\nadd     rsp, 40h                                                       ; +0x1a1, 0x1403c3b21\npop     rdi                                                            ; +0x1a5, 0x1403c3b25\nretn                                                                   ; +0x1a6, 0x1403c3b26", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x1403c25b0", "<???> @ 0x1406d7778"], "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"}