// // GameLevelManager::submitUserInfo from 0x140169e40 to 0x14016a27a (1082 bytes) // // 2 xrefs: // > GameLevelManager::onUpdateUserScoreCompleted @ 0x140157847 // > @ 0x1406cad28 // // 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=7 void GameLevelManager::submitUserInfo(GameLevelManager *a1) { GameLevelManager *v1; // r12 unsigned __int64 v2; // r14 GameLevelManager *v3; // rcx cocos2d::CCArray *CompletedLevels; // r15 unsigned int v5; // edi size_t v6; // rsi struct cocos2d::CCObject *v7; // r14 __int128 *v8; // rcx __int64 v9; // rbx cocos2d::CCString *v10; // rax char *CString; // rax size_t v12; // r8 __int64 v13; // rdx GJAccountManager *v14; // rax int v15; // edi const char *v16; // rbx cocos2d::CCString *v17; // rax const char *v18; // rax cocos2d::CCString *v19; // rax const char *v20; // rax size_t v21; // r8 __int128 *p_Src; // rdx size_t v23; // r8 __int128 *v24; // rdx __int64 v25; // [rsp+20h] [rbp-E0h] __int64 v26; // [rsp+28h] [rbp-D8h] void *v28; // [rsp+50h] [rbp-B0h] void *v29; // [rsp+58h] [rbp-A8h] __int128 v30; // [rsp+60h] [rbp-A0h] BYREF __int64 v31; // [rsp+70h] [rbp-90h] __int64 v32; // [rsp+78h] [rbp-88h] __int128 v33; // [rsp+80h] [rbp-80h] BYREF __int64 v34; // [rsp+90h] [rbp-70h] __int64 v35; // [rsp+98h] [rbp-68h] __int128 v36; // [rsp+A8h] [rbp-58h] BYREF __int64 v37; // [rsp+B8h] [rbp-48h] unsigned __int64 v38; // [rsp+C0h] [rbp-40h] __int128 v39; // [rsp+C8h] [rbp-38h] BYREF __int64 v40; // [rsp+D8h] [rbp-28h] unsigned __int64 v41; // [rsp+E0h] [rbp-20h] __int128 Src; // [rsp+E8h] [rbp-18h] BYREF __int64 v43; // [rsp+F8h] [rbp-8h] __int64 v44; // [rsp+100h] [rbp+0h] _QWORD v45[4]; // [rsp+108h] [rbp+8h] BYREF v1 = a1; Src = 0; v43 = 0; v2 = 15; v44 = 15; LOBYTE(Src) = 0; v3 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v29 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v3 = (GameLevelManager *)qword_1406C2EC0; } CompletedLevels = GameLevelManager::getCompletedLevels(v3, 0); v5 = 0; v6 = -1; if ( cocos2d::CCArray::count(CompletedLevels) ) { do { v7 = cocos2d::CCArray::objectAtIndex(CompletedLevels, v5); if ( v5 ) sub_140041270(&Src, ";", 1u); sub_14003BDB0((__int64)&v36, (__int64)&v7[7].m_nTag); v8 = &v36; if ( v38 > 0xF ) v8 = (__int128 *)v36; v9 = -1; do ++v9; while ( *((_BYTE *)v8 + v9) ); sub_14003A830((__int64)&v36); v10 = cocos2d::CCString::createWithFormat( "%s,%i,%s,%i,%s,%i,%s,%i", (const char *)&word_140531EA4, v7[5].m_uOrderOfArrival - v7[5].m_unknown5, (const char *)&word_140531EA0, v7[13].m_uAutoReleaseCount - v7[13].m_eObjType, (const char *)&word_140531E9C, v7[13].m_uUnknown - v7[13].m_unknown2, (const char *)&word_140531E94, v9); CString = (char *)cocos2d::CCString::getCString(v10); v12 = -1; do ++v12; while ( CString[v12] ); sub_140041270(&Src, CString, v12); ++v5; } while ( v5 < cocos2d::CCArray::count(CompletedLevels) ); v2 = v44; v1 = a1; } v13 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v28 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v28); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v13 = qword_1406C2ED8; } sub_14003BDB0((__int64)v45, v13 + 584); v14 = GJAccountManager::sharedState(); v15 = v14->m_accountID - v14->m_unkInt1; v16 = (const char *)v45; if ( v45[3] > 0xFu ) v16 = (const char *)v45[0]; LODWORD(v26) = 98; LODWORD(v25) = 103; v17 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", v25, v26, (const char *)&word_140531E88); v18 = cocos2d::CCString::getCString(v17); v19 = cocos2d::CCString::createWithFormat("udid=%s&accountID=%i&secret=%s", v16, v15, v18); v20 = cocos2d::CCString::getCString(v19); v39 = 0; v40 = 0; v41 = 0; v21 = -1; do ++v21; while ( v20[v21] ); sub_14003A930(&v39, v20, v21); sub_140041270(&v39, "&levelsInfo=", 0xCu); p_Src = &Src; if ( v2 > 0xF ) p_Src = (__int128 *)Src; v23 = -1; do ++v23; while ( *((_BYTE *)p_Src + v23) ); sub_140041270(&v39, p_Src, v23); v24 = &v39; if ( v41 > 0xF ) v24 = (__int128 *)v39; v33 = 0; v34 = 0; v35 = 15; LOBYTE(v33) = 0; v36 = 0; v37 = 0; v38 = 0; do ++v6; while ( *((_BYTE *)v24 + v6) ); sub_14003A930(&v36, v24, v6); v30 = 0; *(_QWORD *)&v30 = sub_14003AA10(0x40u); v31 = 55; v32 = 63; strcpy((char *)v30, "https://www.boomlings.com/database/submitGJUserInfo.php"); GameLevelManager::ProcessHttpRequest(v1, (__int64)&v30, (const char *)&v36, (const char *)&v33, 17); sub_14003A830((__int64)&v39); sub_14003A830((__int64)v45); sub_14003A830((__int64)&Src); }
GD Web Decomp Icon

GD Web Decomp

Raw Source