{"type": "func", "start": 5370943696, "end": 5370943950, "name": "GameLevelManager::getPageInfo", "pseudocode": "// \n// GameLevelManager::getPageInfo from 0x1402218d0 to 0x1402219ce (254 bytes)\n// \n// 9 xrefs:\n// > LevelPickerPopup::doPageRequest @ 0x1400ea259\n// > FRequestProfilePage::loadPage @ 0x14021260a\n// > InfoLayer::loadPage @ 0x1403d1889\n// > LevelBrowserLayer::loadPage @ 0x1403e4655\n// > MessagesProfilePage::loadPage @ 0x1404774b0\n// > ProfilePage::loadPage @ 0x14055a12f\n// > TopArtistsLayer::init @ 0x14066e61b\n// > TopArtistsLayer::loadPage @ 0x14066edee\n// > <???> @ 0x14091bbcc\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:28:24 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall GameLevelManager::getPageInfo(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  cocos2d::CCString *v4; // rbx\n  void *v5; // r8\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(Block, a2, v3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1160), 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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  if ( v4 )\n    return (char *)cocos2d::CCString::getCString(v4);\n  else\n    return &byte_1406ED6E0;\n}", "assembly": "; \n; GameLevelManager::getPageInfo from 0x1402218d0 to 0x1402219ce (254 bytes)\n; \n; 9 xrefs:\n; > LevelPickerPopup::doPageRequest @ 0x1400ea259\n; > FRequestProfilePage::loadPage @ 0x14021260a\n; > InfoLayer::loadPage @ 0x1403d1889\n; > LevelBrowserLayer::loadPage @ 0x1403e4655\n; > MessagesProfilePage::loadPage @ 0x1404774b0\n; > ProfilePage::loadPage @ 0x14055a12f\n; > TopArtistsLayer::init @ 0x14066e61b\n; > TopArtistsLayer::loadPage @ 0x14066edee\n; > <???> @ 0x14091bbcc\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:28:24 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402218d0\nsub     rsp, 60h                                                       ; +0x2, 0x1402218d2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402218d6\nxor     rax, rsp                                                       ; +0xd, 0x1402218dd\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402218e0\nmov     rbx, rcx                                                       ; +0x15, 0x1402218e5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x1402218e8\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x1402218eb\nxorps   xmm1, xmm1                                                     ; +0x20, 0x1402218f0\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x1402218f3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x1402218f9\ninc     r8                                                             ; +0x30, 0x140221900\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x140221903\njnz     short loc_140221900                                            ; +0x38, 0x140221908\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x14022190a\ncall    sub_14003D230                                                  ; +0x3f, 0x14022190f\nnop                                                                    ; +0x44, 0x140221914\nlea     rdx, [rsp+68h+Block]                                           ; +0x45, 0x140221915\nmov     rcx, [rbx+488h]                                                ; +0x4a, 0x14022191a\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, 0x140221921\nmov     rbx, rax                                                       ; +0x57, 0x140221927\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x5a, 0x14022192a\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x14022192f\njbe     short loc_140221980                                            ; +0x63, 0x140221933\ninc     rdx                                                            ; +0x65, 0x140221935\nmov     r8, [rsp+68h+Block]                                            ; +0x68, 0x140221938\nmov     rcx, r8                                                        ; +0x6d, 0x14022193d\ncmp     rdx, 1000h                                                     ; +0x70, 0x140221940\njb      short loc_140221978                                            ; +0x77, 0x140221947\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x140221949\nmov     r8, [r8-8]                                                     ; +0x7d, 0x14022194d\nsub     rcx, r8                                                        ; +0x81, 0x140221951\nsub     rcx, 8                                                         ; +0x84, 0x140221954\ncmp     rcx, 1Fh                                                       ; +0x88, 0x140221958\njbe     short loc_140221978                                            ; +0x8c, 0x14022195c\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x8e, 0x14022195e\nxor     r9d, r9d; LineNo                                               ; +0x97, 0x140221967\nxor     r8d, r8d; FileName                                             ; +0x9a, 0x14022196a\nxor     edx, edx; FunctionName                                         ; +0x9d, 0x14022196d\nxor     ecx, ecx; Expression                                           ; +0x9f, 0x14022196f\ncall    cs:_invoke_watson                                              ; +0xa1, 0x140221971\nalign 8                                                                ; +0xa7, 0x140221977\nmov     rcx, r8; Block                                                 ; +0xa8, 0x140221978\ncall    j_j_free                                                       ; +0xab, 0x14022197b\nmovdqa  xmm0, cs:Size                                                  ; +0xb0, 0x140221980\nmovdqu  [rsp+68h+var_28], xmm0                                         ; +0xb8, 0x140221988\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0xbe, 0x14022198e\ntest    rbx, rbx                                                       ; +0xc3, 0x140221993\njz      short loc_1402219B4                                            ; +0xc6, 0x140221996\nmov     rcx, rbx                                                       ; +0xc8, 0x140221998\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xcb, 0x14022199b\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd1, 0x1402219a1\nxor     rcx, rsp; StackCookie                                          ; +0xd6, 0x1402219a6\ncall    __security_check_cookie                                        ; +0xd9, 0x1402219a9\nadd     rsp, 60h                                                       ; +0xde, 0x1402219ae\npop     rbx                                                            ; +0xe2, 0x1402219b2\nretn                                                                   ; +0xe3, 0x1402219b3\nlea     rax, byte_1406ED6E0                                            ; +0xe4, 0x1402219b4\nmov     rcx, [rsp+68h+var_18]                                          ; +0xeb, 0x1402219bb\nxor     rcx, rsp; StackCookie                                          ; +0xf0, 0x1402219c0\ncall    __security_check_cookie                                        ; +0xf3, 0x1402219c3\nadd     rsp, 60h                                                       ; +0xf8, 0x1402219c8\npop     rbx                                                            ; +0xfc, 0x1402219cc\nretn                                                                   ; +0xfd, 0x1402219cd", "xrefs": ["LevelPickerPopup::doPageRequest @ 0x1400ea259", "FRequestProfilePage::loadPage @ 0x14021260a", "InfoLayer::loadPage @ 0x1403d1889", "LevelBrowserLayer::loadPage @ 0x1403e4655", "MessagesProfilePage::loadPage @ 0x1404774b0", "ProfilePage::loadPage @ 0x14055a12f", "TopArtistsLayer::init @ 0x14066e61b", "TopArtistsLayer::loadPage @ 0x14066edee", "<???> @ 0x14091bbcc"], "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"}