// // GameLevelManager::getLevelRateInfo from 0x14015f860 to 0x14015fb8a (810 bytes) // // 2 xrefs: // > GJRateLevelLayer::init @ 0x1402f546c // > @ 0x1406cab18 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=4 void GameLevelManager::getLevelRateInfo(GameLevelManager *a1, int a2) { cocos2d::CCString *v4; // rax const char *CString; // rax size_t v6; // rbx size_t v7; // r8 void **v8; // rdx void **v9; // rdx __int64 v10; // rcx cocos2d::CCString *v11; // rax const char *v12; // rax cocos2d::CCString *v13; // rax char *v14; // rax size_t v15; // r8 __int64 v16; // rdx __int64 v17; // rcx __int64 v18; // r8 __int64 v19; // r9 void **v20; // r12 char *v21; // rsi unsigned __int64 v22; // r15 __int64 v23; // rdi unsigned __int64 v24; // r14 _QWORD *v25; // rdx char *v26; // rax int v27; // [rsp+20h] [rbp-B9h] int v28; // [rsp+28h] [rbp-B1h] __int128 v29; // [rsp+40h] [rbp-99h] BYREF unsigned __int64 v30; // [rsp+50h] [rbp-89h] __int64 v31; // [rsp+58h] [rbp-81h] __int128 v32; // [rsp+60h] [rbp-79h] BYREF __int64 v33; // [rsp+70h] [rbp-69h] __int64 v34; // [rsp+78h] [rbp-61h] __int128 v35; // [rsp+80h] [rbp-59h] BYREF __int64 v36; // [rsp+90h] [rbp-49h] __int64 v37; // [rsp+98h] [rbp-41h] __int128 *v38; // [rsp+A0h] [rbp-39h] __int128 *v39; // [rsp+A8h] [rbp-31h] void *Src[2]; // [rsp+B8h] [rbp-21h] BYREF unsigned __int64 v41; // [rsp+C8h] [rbp-11h] unsigned __int64 v42; // [rsp+D0h] [rbp-9h] _QWORD v43[4]; // [rsp+D8h] [rbp-1h] BYREF v4 = cocos2d::CCString::createWithFormat("rinfo_%i", a2); CString = cocos2d::CCString::getCString(v4); *(_OWORD *)Src = 0; v41 = 0; v42 = 0; v6 = -1; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003A930(Src, CString, v7); v8 = Src; if ( v42 > 0xF ) v8 = (void **)Src[0]; if ( GameLevelManager::isDLActive(a1, (const char *)v8) ) { v22 = v42; v21 = (char *)Src[0]; } else { v9 = Src; if ( v42 > 0xF ) v9 = (void **)Src[0]; GameLevelManager::addDLToActive(a1, (const char *)v9); GameLevelManager::getBasePostString(v10, v43); v28 = 98; v27 = 103; v11 = cocos2d::CCString::createWithFormat( "%c%s%s%c%c%s", 87, "mfd", "2893", v27, v28, (const char *)&word_140531E88); v12 = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCString::createWithFormat("&levelID=%i&secret=%s", a2, v12); v14 = (char *)cocos2d::CCString::getCString(v13); v15 = -1; do ++v15; while ( v14[v15] ); sub_140041270(v43, v14, v15); v38 = &v29; v39 = &v35; v29 = 0; v30 = 0; v31 = 0; v20 = Src; v21 = (char *)Src[0]; v22 = v42; if ( v42 > 0xF ) v20 = (void **)Src[0]; v23 = 0x7FFFFFFFFFFFFFFFLL; v24 = v41; if ( v41 > 0x7FFFFFFFFFFFFFFFLL ) sub_140007B50(v17, v16, v18, v19); v31 = 15; if ( v41 > 0xF ) { if ( (v41 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v23 = v41 | 0xF; if ( (v41 | 0xF) < 0x16 ) v23 = 22; } *(_QWORD *)&v29 = sub_14003AA10(v23 + 1); v30 = v24; v31 = v23; memcpy((void *)v29, v20, v24 + 1); } else { v30 = v41; v29 = *(_OWORD *)v20; } v25 = v43; if ( v43[3] > 0xFu ) v25 = (_QWORD *)v43[0]; v35 = 0; v36 = 0; v37 = 0; do ++v6; while ( *((_BYTE *)v25 + v6) ); sub_14003A930(&v35, v25, v6); v32 = 0; v33 = 0; v34 = 15; *(_QWORD *)&v32 = sub_14003AA10(0x40u); v33 = 55; v34 = 63; strcpy((char *)v32, "https://www.boomlings.com/database/getLevelRateInfo.php"); GameLevelManager::ProcessHttpRequest(a1, (__int64)&v32, (const char *)&v35, (const char *)&v29, 65); sub_14003A830((__int64)v43); } if ( v22 > 0xF ) { v26 = v21; if ( v22 + 1 >= 0x1000 ) { v21 = *((char **)v21 - 1); if ( (unsigned __int64)(v26 - v21 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v21); } }