{"type": "func", "start": 5370059120, "end": 5370059352, "name": "GameLevelManager::getPageInfo", "pseudocode": "// \n// GameLevelManager::getPageInfo from 0x140149970 to 0x140149a58 (232 bytes)\n// \n// 8 xrefs:\n// > FRequestProfilePage::loadPage @ 0x14013f529\n// > InfoLayer::loadPage @ 0x1402be661\n// > LevelBrowserLayer::loadPage @ 0x1402caafe\n// > MessagesProfilePage::loadPage @ 0x140337ee7\n// > ProfilePage::loadPage @ 0x1403c63b3\n// > TopArtistsLayer::init @ 0x1404cb240\n// > TopArtistsLayer::loadPage @ 0x1404cb9c5\n// > <???> @ 0x1406ca6bc\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\nconst char *GameLevelManager::getPageInfo(GameLevelManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  cocos2d::CCString *v4; // rbx\n  void *v5; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_pageInfo, Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v5);\n  }\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);\n  LOBYTE(Block[0]) = 0;\n  if ( v4 )\n    return cocos2d::CCString::getCString(v4);\n  else\n    return byte_140518980;\n}", "assembly": "; \n; GameLevelManager::getPageInfo from 0x140149970 to 0x140149a58 (232 bytes)\n; \n; 8 xrefs:\n; > FRequestProfilePage::loadPage @ 0x14013f529\n; > InfoLayer::loadPage @ 0x1402be661\n; > LevelBrowserLayer::loadPage @ 0x1402caafe\n; > MessagesProfilePage::loadPage @ 0x140337ee7\n; > ProfilePage::loadPage @ 0x1403c63b3\n; > TopArtistsLayer::init @ 0x1404cb240\n; > TopArtistsLayer::loadPage @ 0x1404cb9c5\n; > <???> @ 0x1406ca6bc\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, 0x140149970\nsub     rsp, 50h                                                       ; +0x2, 0x140149972\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140149976\nxor     rax, rsp                                                       ; +0xd, 0x14014997d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x140149980\nmov     rbx, rcx                                                       ; +0x15, 0x140149985\nxorps   xmm0, xmm0                                                     ; +0x18, 0x140149988\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x14014998b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x140149990\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x140149993\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x140149999\ninc     r8                                                             ; +0x30, 0x1401499a0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x1401499a3\njnz     short loc_1401499A0                                            ; +0x38, 0x1401499a8\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x1401499aa\ncall    sub_14003A930                                                  ; +0x3f, 0x1401499af\nnop                                                                    ; +0x44, 0x1401499b4\nlea     rdx, [rsp+58h+Block]                                           ; +0x45, 0x1401499b5\nmov     rcx, [rbx+228h]                                                ; +0x4a, 0x1401499ba\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x51, 0x1401499c1\nmov     rbx, rax                                                       ; +0x57, 0x1401499c7\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x5a, 0x1401499ca\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x1401499cf\njbe     short loc_140149A0A                                            ; +0x63, 0x1401499d3\ninc     rdx                                                            ; +0x65, 0x1401499d5\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x68, 0x1401499d8\nmov     rax, rcx                                                       ; +0x6d, 0x1401499dd\ncmp     rdx, 1000h                                                     ; +0x70, 0x1401499e0\njb      short loc_140149A05                                            ; +0x77, 0x1401499e7\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x1401499e9\nmov     rcx, [rcx-8]                                                   ; +0x7d, 0x1401499ed\nsub     rax, rcx                                                       ; +0x81, 0x1401499f1\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x84, 0x1401499f4\ncmp     rax, 1Fh                                                       ; +0x88, 0x1401499f8\njbe     short loc_140149A05                                            ; +0x8c, 0x1401499fc\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8e, 0x1401499fe\ndb 0CCh                                                                ; +0x94, 0x140149a04\ncall    j_j_free                                                       ; +0x95, 0x140149a05\nmovdqa  xmm0, cs:xmmword_140623F30                                     ; +0x9a, 0x140149a0a\nmovdqu  [rsp+58h+var_28], xmm0                                         ; +0xa2, 0x140149a12\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0xa8, 0x140149a18\ntest    rbx, rbx                                                       ; +0xad, 0x140149a1d\njz      short loc_140149A3E                                            ; +0xb0, 0x140149a20\nmov     rcx, rbx                                                       ; +0xb2, 0x140149a22\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xb5, 0x140149a25\nmov     rcx, [rsp+58h+var_18]                                          ; +0xbb, 0x140149a2b\nxor     rcx, rsp; StackCookie                                          ; +0xc0, 0x140149a30\ncall    __security_check_cookie                                        ; +0xc3, 0x140149a33\nadd     rsp, 50h                                                       ; +0xc8, 0x140149a38\npop     rbx                                                            ; +0xcc, 0x140149a3c\nretn                                                                   ; +0xcd, 0x140149a3d\nlea     rax, byte_140518980                                            ; +0xce, 0x140149a3e\nmov     rcx, [rsp+58h+var_18]                                          ; +0xd5, 0x140149a45\nxor     rcx, rsp; StackCookie                                          ; +0xda, 0x140149a4a\ncall    __security_check_cookie                                        ; +0xdd, 0x140149a4d\nadd     rsp, 50h                                                       ; +0xe2, 0x140149a52\npop     rbx                                                            ; +0xe6, 0x140149a56\nretn                                                                   ; +0xe7, 0x140149a57", "xrefs": ["FRequestProfilePage::loadPage @ 0x14013f529", "InfoLayer::loadPage @ 0x1402be661", "LevelBrowserLayer::loadPage @ 0x1402caafe", "MessagesProfilePage::loadPage @ 0x140337ee7", "ProfilePage::loadPage @ 0x1403c63b3", "TopArtistsLayer::init @ 0x1404cb240", "TopArtistsLayer::loadPage @ 0x1404cb9c5", "<???> @ 0x1406ca6bc"], "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"}