// // sub_140142B90 from 0x140142b90 to 0x140142d02 (370 bytes) // // 13 xrefs: // > GameLevelManager::uploadLevel @ 0x14014cf74 // > GameLevelManager::uploadLevelList @ 0x14014ffff // > GameLevelManager::downloadLevel @ 0x140151f28 // > GameLevelManager::rateStars @ 0x140153cd4 // > GameLevelManager::updateUserScore @ 0x1401573a1 // > GameLevelManager::getLevelLeaderboard @ 0x1401584eb // > GameLevelManager::getLevelLeaderboard @ 0x1401584fa // > GameLevelManager::likeItem @ 0x140163dff // > GameLevelManager::getGJSecretReward @ 0x140165147 // > GameLevelManager::getGJRewards @ 0x140166527 // > GameLevelManager::getGJChallenges @ 0x140167722 // > GameLevelManager::getGJDailyLevelState @ 0x140168aed // > @ 0x1406ca4d0 // // 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=1 _QWORD *__fastcall sub_140142B90(_QWORD *a1, unsigned int a2) { __int64 v2; // rbx cocos2d::CCString *v4; // rbp void *v5; // rcx __int64 v6; // rsi int v7; // eax __int64 v8; // rdx unsigned int v9; // ebx const char *CString; // rax const char *v11; // rax size_t v12; // r8 void *Block[2]; // [rsp+30h] [rbp-58h] BYREF __int64 v15; // [rsp+40h] [rbp-48h] unsigned __int64 v16; // [rsp+48h] [rbp-40h] v2 = a2; *(_OWORD *)Block = 0; v15 = 0; v16 = 15; LOBYTE(Block[0]) = 0; v4 = (cocos2d::CCString *)cocos2d::CCString::create(Block); if ( v16 > 0xF ) { v5 = Block[0]; if ( v16 + 1 >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v5); } v15 = 0; v16 = 15; LOBYTE(Block[0]) = 0; if ( (int)v2 > 0 ) { v6 = v2; do { v7 = rand(); v8 = ((unsigned __int64)v7 * (unsigned __int128)0x842108421084211uLL) >> 64; v9 = a0123456789abcd[v7 - 62 * ((v8 + ((unsigned __int64)(v7 - v8) >> 1)) >> 5)]; CString = cocos2d::CCString::getCString(v4); v4 = cocos2d::CCString::createWithFormat("%s%c", CString, v9); --v6; } while ( v6 ); } v11 = cocos2d::CCString::getCString(v4); *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 0; v12 = -1; do ++v12; while ( v11[v12] ); sub_14003A930(a1, v11, v12); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source