// // sub_1402190E0 from 0x1402190e0 to 0x140219276 (406 bytes) // // 11 xrefs: // > GameLevelManager::uploadLevel @ 0x140229d4c // > GameLevelManager::uploadLevelList @ 0x14022d2b2 // > GameLevelManager::downloadLevel @ 0x140231dc3 // > GameLevelManager::rateStars @ 0x1402340ff // > GameLevelManager::updateUserScore @ 0x140237a9e // > GameLevelManager::getLevelLeaderboard @ 0x140238c65 // > GameLevelManager::getLevelLeaderboard @ 0x140238c74 // > GameLevelManager::likeItem @ 0x14025ad6f // > GameLevelManager::getGJChallenges @ 0x14025e4b1 // > GameLevelManager::rewardSessionToken @ 0x14025fb31 // > @ 0x14091b9d4 // // 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:28:22 +0000 // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall sub_1402190E0(_QWORD *a1, unsigned int a2) { __int64 v2; // rbx __m128i si128; // xmm6 cocos2d::CCString *v5; // rbp void *v6; // rcx __int64 v7; // rsi int v8; // eax __int64 v9; // rdx unsigned int v10; // ebx const char *CString; // rax const char *v12; // rax size_t v13; // r8 void *Block[2]; // [rsp+40h] [rbp-68h] BYREF __m128i v16; // [rsp+50h] [rbp-58h] v2 = a2; *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&Size); v16 = si128; LOBYTE(Block[0]) = 0; v5 = (cocos2d::CCString *)cocos2d::CCString::create(Block); if ( v16.m128i_i64[1] > 0xFuLL ) { v6 = Block[0]; if ( (unsigned __int64)(v16.m128i_i64[1] + 1) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v6); si128 = _mm_load_si128((const __m128i *)&Size); } v16 = si128; LOBYTE(Block[0]) = 0; if ( (int)v2 > 0 ) { v7 = v2; do { v8 = rand(); v9 = ((unsigned __int64)v8 * (unsigned __int128)0x842108421084211uLL) >> 64; v10 = a0123456789abcd[v8 - 62 * ((v9 + ((unsigned __int64)(v8 - v9) >> 1)) >> 5)]; CString = cocos2d::CCString::getCString(v5); v5 = cocos2d::CCString::createWithFormat("%s%c", CString, v10); --v7; } while ( v7 ); } v12 = cocos2d::CCString::getCString(v5); *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 0; v13 = -1; do ++v13; while ( v12[v13] ); sub_14003D230(a1, v12, v13); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source