{"type": "func", "start": 4300441408, "end": 4300441622, "name": "GameLevelManager::getPageInfo", "pseudocode": "// \n// GameLevelManager::getPageInfo from 0x100538740 to 0x100538816 (214 bytes)\n// \n// 7 xrefs:\n// > MessagesProfilePage::loadPage @ 0x10022ebda\n// > TopArtistsLayer::init @ 0x100310d74\n// > TopArtistsLayer::loadPage @ 0x100311a79\n// > LevelBrowserLayer::loadPage @ 0x10048e65b\n// > FRequestProfilePage::loadPage @ 0x100791077\n// > InfoLayer::loadPage @ 0x1007b149b\n// > ProfilePage::loadPage @ 0x1007c00ca\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\nconst char *__fastcall GameLevelManager::getPageInfo(GameLevelManager *a1, const char *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCDictionary *m_pageInfo; // rbx\n  size_t v4; // rax\n  size_t v5; // r15\n  char *v6; // r12\n  size_t v7; // r13\n  cocos2d::CCString *v8; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  m_pageInfo = a1->m_pageInfo;\n  v4 = strlen(a2);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v2);\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 + 1;\n    __dst[1] = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_8:\n    memcpy(v6, a2, v5);\n  v6[v5] = 0;\n  v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1((__int64)m_pageInfo, (char *)__dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  if ( v8 )\n    return cocos2d::CCString::getCString(v8);\n  else\n    return \"\";\n}", "assembly": "; \n; GameLevelManager::getPageInfo from 0x100538740 to 0x100538816 (214 bytes)\n; \n; 7 xrefs:\n; > MessagesProfilePage::loadPage @ 0x10022ebda\n; > TopArtistsLayer::init @ 0x100310d74\n; > TopArtistsLayer::loadPage @ 0x100311a79\n; > LevelBrowserLayer::loadPage @ 0x10048e65b\n; > FRequestProfilePage::loadPage @ 0x100791077\n; > InfoLayer::loadPage @ 0x1007b149b\n; > ProfilePage::loadPage @ 0x1007c00ca\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    rbp                                                            ; +0x0, 0x100538740\nmov     rbp, rsp                                                       ; +0x1, 0x100538741\npush    r15                                                            ; +0x4, 0x100538744\npush    r14                                                            ; +0x6, 0x100538746\npush    r13                                                            ; +0x8, 0x100538748\npush    r12                                                            ; +0xa, 0x10053874a\npush    rbx                                                            ; +0xc, 0x10053874c\nsub     rsp, 18h                                                       ; +0xd, 0x10053874d\nmov     r14, rsi                                                       ; +0x11, 0x100538751\nmov     rbx, [rdi+238h]                                                ; +0x14, 0x100538754\nmov     rdi, rsi; __s                                                  ; +0x1b, 0x10053875b\ncall    _strlen                                                        ; +0x1e, 0x10053875e\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x23, 0x100538763\njnb     loc_100538811                                                  ; +0x27, 0x100538767\nmov     r15, rax                                                       ; +0x2d, 0x10053876d\ncmp     rax, 17h                                                       ; +0x30, 0x100538770\njnb     short loc_100538788                                            ; +0x34, 0x100538774\nlea     eax, [r15+r15]                                                 ; +0x36, 0x100538776\nmov     byte ptr [rbp+__dst], al                                       ; +0x3a, 0x10053877a\nlea     r12, [rbp+__dst+1]                                             ; +0x3d, 0x10053877d\ntest    r15, r15                                                       ; +0x41, 0x100538781\njnz     short loc_1005387BB                                            ; +0x44, 0x100538784\njmp     short loc_1005387C9                                            ; +0x46, 0x100538786\nmov     rax, r15                                                       ; +0x48, 0x100538788\nor      rax, 7                                                         ; +0x4b, 0x10053878b\nlea     rcx, [rax+1]                                                   ; +0x4f, 0x10053878f\ncmp     rax, 17h                                                       ; +0x53, 0x100538793\nmov     r13d, 1Ah                                                      ; +0x57, 0x100538797\ncmovnz  r13, rcx                                                       ; +0x5d, 0x10053879d\nmov     rdi, r13; __sz                                                 ; +0x61, 0x1005387a1\ncall    __Znwm; operator new(ulong)                                    ; +0x64, 0x1005387a4\nmov     r12, rax                                                       ; +0x69, 0x1005387a9\nmov     [rbp+__p], rax                                                 ; +0x6c, 0x1005387ac\ninc     r13                                                            ; +0x70, 0x1005387b0\nmov     [rbp+__dst], r13                                               ; +0x73, 0x1005387b3\nmov     [rbp+var_38], r15                                              ; +0x77, 0x1005387b7\nmov     rdi, r12; __dst                                                ; +0x7b, 0x1005387bb\nmov     rsi, r14; __src                                                ; +0x7e, 0x1005387be\nmov     rdx, r15; __n                                                  ; +0x81, 0x1005387c1\ncall    _memcpy                                                        ; +0x84, 0x1005387c4\nmov     byte ptr [r12+r15], 0                                          ; +0x89, 0x1005387c9\nlea     rsi, [rbp+__dst]                                               ; +0x8e, 0x1005387ce\nmov     rdi, rbx                                                       ; +0x92, 0x1005387d2\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x95, 0x1005387d5\nmov     rbx, rax                                                       ; +0x9a, 0x1005387da\ntest    byte ptr [rbp+__dst], 1                                        ; +0x9d, 0x1005387dd\njz      short loc_1005387EC                                            ; +0xa1, 0x1005387e1\nmov     rdi, [rbp+__p]; __p                                            ; +0xa3, 0x1005387e3\ncall    __ZdlPv; operator delete(void *)                               ; +0xa7, 0x1005387e7\ntest    rbx, rbx                                                       ; +0xac, 0x1005387ec\njz      short loc_1005387FB                                            ; +0xaf, 0x1005387ef\nmov     rdi, rbx                                                       ; +0xb1, 0x1005387f1\ncall    cocos2d__CCString__getCString                                  ; +0xb4, 0x1005387f4\njmp     short loc_100538802                                            ; +0xb9, 0x1005387f9\nlea     rax, __src; \"\"                                                 ; +0xbb, 0x1005387fb\nadd     rsp, 18h                                                       ; +0xc2, 0x100538802\npop     rbx                                                            ; +0xc6, 0x100538806\npop     r12                                                            ; +0xc7, 0x100538807\npop     r13                                                            ; +0xc9, 0x100538809\npop     r14                                                            ; +0xcb, 0x10053880b\npop     r15                                                            ; +0xcd, 0x10053880d\npop     rbp                                                            ; +0xcf, 0x10053880f\nretn                                                                   ; +0xd0, 0x100538810\ncall    sub_100006BF0                                                  ; +0xd1, 0x100538811", "xrefs": ["MessagesProfilePage::loadPage @ 0x10022ebda", "TopArtistsLayer::init @ 0x100310d74", "TopArtistsLayer::loadPage @ 0x100311a79", "LevelBrowserLayer::loadPage @ 0x10048e65b", "FRequestProfilePage::loadPage @ 0x100791077", "InfoLayer::loadPage @ 0x1007b149b", "ProfilePage::loadPage @ 0x1007c00ca"], "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"}