// // LevelPickerPopup::doPageRequest from 0x1400e9fb0 to 0x1400ea365 (949 bytes) // // 2 xrefs: // > LevelPickerPopup::requestPage @ 0x1400e9f8d // > @ 0x140914e7c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:26:34 +0000 // // Hidden C++ exception states: #wind=7 __int64 __fastcall LevelPickerPopup::doPageRequest(__int64 a1) { __int64 v2; // rcx __int64 v4; // rax cocos2d::CCString *v5; // rax const char *CString; // rax unsigned int v7; // r15d __int128 *v8; // rbp __int64 v9; // rax cocos2d::CCString *v10; // rax size_t v11; // rbx size_t v12; // r8 __int64 v13; // rax __int64 v14; // rbp _BYTE *Key; // rax size_t v16; // r8 _QWORD *v17; // rsi _QWORD *v18; // r14 __int64 v19; // rcx __int64 StoredOnlineLevels; // r14 __int64 v21; // rcx _QWORD *v22; // rsi __int64 v23; // rcx _BYTE *PageInfo; // rax _QWORD *v25; // r8 __int64 v26; // rcx __int128 v27; // [rsp+20h] [rbp-58h] BYREF __int64 v28; // [rsp+30h] [rbp-48h] __int64 v29; // [rsp+38h] [rbp-40h] __int128 v30; // [rsp+40h] [rbp-38h] BYREF __int64 v31; // [rsp+50h] [rbp-28h] __int64 v32; // [rsp+58h] [rbp-20h] void *v33; // [rsp+80h] [rbp+8h] void *v34; // [rsp+80h] [rbp+8h] void *v35; // [rsp+80h] [rbp+8h] void *v36; // [rsp+80h] [rbp+8h] void *v37; // [rsp+80h] [rbp+8h] if ( *(_BYTE *)(a1 + 808) ) { if ( *(_BYTE *)(a1 + 809) ) { v4 = GJAccountManager::sharedState(a1); v5 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, (unsigned int)(*(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364))); CString = cocos2d::CCString::getCString(v5); v27 = 0; v7 = 0; v28 = 0; v29 = 0; v8 = &v27; } else { v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v33 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v33); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } v10 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, (unsigned int)(*(_DWORD *)(v9 + 692) - *(_DWORD *)(v9 + 696))); CString = cocos2d::CCString::getCString(v10); v30 = 0; v7 = 0; v31 = 0; v32 = 0; v8 = &v30; } v11 = -1; v12 = -1; do ++v12; while ( CString[v12] ); sub_14003D230(v8, CString, v12); v13 = GJSearchObject::create_1(5, v8); v14 = v13; if ( *(_BYTE *)(a1 + 809) ) *(_DWORD *)(v13 + 464) = 1; *(_DWORD *)(v13 + 424) = *(_DWORD *)(a1 + 832); Key = (_BYTE *)GJSearchObject::getKey(v13); v16 = -1; do ++v16; while ( Key[v16] ); v17 = (_QWORD *)(a1 + 840); sub_1400405A0((void **)(a1 + 840), Key, v16); v18 = (_QWORD *)(a1 + 840); if ( *(_QWORD *)(a1 + 864) > 0xFu ) v18 = (_QWORD *)*v17; v19 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v34 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v34); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v19 = *(_QWORD *)&qword_14090BFB0; } StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v19, v18); if ( !StoredOnlineLevels ) goto LABEL_35; if ( *(_QWORD *)(a1 + 864) > 0xFu ) v17 = (_QWORD *)*v17; v21 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v35 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v35); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v21 = *(_QWORD *)&qword_14090BFB0; } if ( (int)GameLevelManager::getTimeLeft(v21, v17) > 0 ) { v22 = (_QWORD *)(a1 + 840); if ( *(_QWORD *)(a1 + 864) > 0xFu ) v22 = (_QWORD *)*v22; v23 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v36 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v36); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v23 = *(_QWORD *)&qword_14090BFB0; } PageInfo = (_BYTE *)GameLevelManager::getPageInfo(v23, v22); v27 = 0; v28 = 0; v29 = 0; do ++v11; while ( PageInfo[v11] ); sub_14003D230(&v27, PageInfo, v11); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)(a1 + 776) + 32LL))(a1 + 776, &v27); v25 = (_QWORD *)(a1 + 840); if ( *(_QWORD *)(a1 + 864) > 0xFu ) v25 = (_QWORD *)*v25; LOBYTE(v7) = *(_BYTE *)(a1 + 809) != 0; return (**(__int64 (__fastcall ***)(__int64, __int64, _QWORD *, _QWORD, _QWORD, _QWORD, __int64, __int64, _QWORD, _QWORD, __int64, __int64))(a1 + 776))( a1 + 776, StoredOnlineLevels, v25, v7, v27, *((_QWORD *)&v27 + 1), v28, v29, v30, *((_QWORD *)&v30 + 1), v31, v32); } else { LABEL_35: v26 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v37 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v37); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v26 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v26 + 1352) = a1 + 776; if ( *(_BYTE *)(a1 + 809) ) return GameLevelManager::getLevelLists(v26, v14); else return GameLevelManager::getOnlineLevels(v26, v14); } } else { v2 = *(_QWORD *)(a1 + 696); if ( v2 ) LoadingCircle::fadeAndRemove(v2); return LevelPickerPopup::buildSavedPage(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source