// // GameLevelManager::onUploadCommentCompleted from 0x832ea0 to 0x833640 (1952 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85b0dc // > @ 0xca708 // // This function is hookable on this platform (idp: arm, 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 12:55:09 +0000 // __int64 __fastcall GameLevelManager::onUploadCommentCompleted(GameLevelManager *a1, __int64 a2, char *a3) { char *v5; // x20 size_t v6; // x0 __int64 v7; // x22 size_t v8; // x0 _BOOL4 v9; // w26 GJAccountManager *v10; // x0 __int64 v11; // x0 unsigned __int8 v12; // w23 unsigned int v13; // w22 const char *v14; // x27 __int64 v15; // x0 unsigned int v16; // w28 unsigned __int64 v17; // x23 __int64 v18; // x23 unsigned __int8 *v19; // x0 unsigned int v20; // w25 cocos2d::CCArray *v21; // x23 cocos2d::CCString *v22; // x0 __int64 v23; // x0 char *v24; // x1 cocos2d::CCString *v25; // x22 const char *v26; // x0 size_t v27; // x0 __int64 v28; // x19 unsigned int v30; // w0 __int64 v31; // x0 __int64 v32; // x0 GameLevelManager *v33; // x20 char *v34; // x1 GameLevelManager *v35; // x0 GameLevelManager *v36; // x20 char *v37; // x1 GameLevelManager *v38; // x0 GameLevelManager *v39; // x20 char *v40; // x1 GameLevelManager *v41; // x0 GameLevelManager *v42; // x20 char *v43; // x1 GameLevelManager *v44; // x0 GameLevelManager *v45; // x20 char *v46; // x1 GameLevelManager *v47; // x0 GameLevelManager *v48; // x20 char *v49; // x1 GameLevelManager *v50; // x0 GameLevelManager *v51; // x20 char *v52; // x1 GameLevelManager *v53; // x0 GameLevelManager *v54; // x20 char *v55; // x1 void (__fastcall ***v56)(_QWORD, _QWORD); // x0 GameLevelManager *v57; // x20 char *v58; // x1 GameLevelManager *v59; // x0 const char *CString; // x22 cocos2d::CCString *v61; // x0 __int64 v62; // x0 GameLevelManager *v63; // x19 const char *AccountCommentKey; // x0 char *v65; // [xsp+68h] [xbp+68h] GJAccountManager *v66[2]; // [xsp+78h] [xbp+78h] BYREF void *v67; // [xsp+88h] [xbp+88h] GameLevelManager *v68; // [xsp+90h] [xbp+90h] BYREF __int64 v69; // [xsp+98h] [xbp+98h] char *v70; // [xsp+A0h] [xbp+A0h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); v68 = nullptr; v69 = 0; v70 = nullptr; v6 = strlen(v5); v7 = *((_QWORD *)a1 + 136); std::string::__init((__int64 *)&v68, v5, v6); cocos2d::CCDictionary::removeObjectForKey(v7, &v68); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v66[0] = nullptr; v66[1] = nullptr; v67 = nullptr; v8 = strlen(v5); std::string::__init((__int64 *)v66, v5, v8); v68 = nullptr; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "acc_comment", 0xBu); v9 = sub_7FEA60((__int64)v66, (__int64)&v68); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v10 = (GJAccountManager *)LOBYTE(v66[0]); if ( ((__int64)v66[0] & 1) != 0 ) operator delete(v67); if ( v9 ) { v11 = GJAccountManager::sharedState(v10); v12 = *(_BYTE *)a2; v13 = *(_DWORD *)(v11 + 352) - *(_DWORD *)(v11 + 356); if ( (*(_BYTE *)a2 & 1) != 0 ) goto LABEL_11; } else { v30 = GameLevelManager::levelIDFromPostCommentKey(a1, v5); v12 = *(_BYTE *)a2; v13 = v30; if ( (*(_BYTE *)a2 & 1) != 0 ) { LABEL_11: v14 = *(const char **)(a2 + 16); v15 = atoi(v14); v16 = v15; if ( (v15 & 0x80000000) == 0 ) { v17 = *(_QWORD *)(a2 + 8); goto LABEL_13; } LABEL_33: v31 = *((_QWORD *)a1 + 156); if ( v31 ) (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v31 + 8LL))(v31, v13, v16); if ( v16 != -10 ) goto LABEL_29; v68 = nullptr; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "You have been permanently banned from making comments.", 0x3Eu); v32 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Banned", (char *)&v68, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v32 + 1312LL))(v32); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); return _stack_chk_guard; } } v14 = (const char *)(a2 + 1); v17 = v12 >> 1; v15 = atoi((const char *)(a2 + 1)); v16 = v15; if ( (v15 & 0x80000000) != 0 ) goto LABEL_33; LABEL_13: if ( v17 > 3 ) { v18 = (__int64)&v14[v17]; v15 = std::__search( (__int64)v14, v18, (unsigned __int8 *)"temp", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v18 != v15 && v15 - (_QWORD)v14 != -1 ) { v19 = (unsigned __int8 *)a2; v20 = 0; v21 = sub_80CFCC(v19, &byte_11528B0); if ( (unsigned int)cocos2d::CCArray::count(v21) > 1 ) { v22 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v21, 1u); v20 = cocos2d::CCString::intValue(v22); } v23 = *((_QWORD *)a1 + 156); if ( v23 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v23 + 8LL))(v23, v13, 4294967286LL); GameToolbox::getTimeString((GameToolbox *)v20, nullptr, (__int64 *)&v68); v24 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v24 = v70; v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You have been banned from making comments for: %s", v24); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); if ( (unsigned int)cocos2d::CCArray::count(v21) > 2 ) { CString = (const char *)cocos2d::CCString::getCString(v25); v61 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v21, 2u); v62 = cocos2d::CCString::getCString(v61); v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s.\n\nReason: %s", CString, v62); } v26 = (const char *)cocos2d::CCString::getCString(v25); v68 = nullptr; v65 = (char *)v26; v69 = 0; v70 = nullptr; v27 = strlen(v26); std::string::__init((__int64 *)&v68, v65, v27); v28 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Banned", (char *)&v68, (ButtonSprite *)"OK", nullptr, 380.0); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); (*(void (__fastcall **)(__int64))(*(_QWORD *)v28 + 1312LL))(v28); LABEL_29: GameLevelManager::resetTimerForKey(a1, v5); return _stack_chk_guard; } } if ( v9 ) { v63 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v15); AccountCommentKey = (const char *)GameLevelManager::getAccountCommentKey(a1, (const char *)v13); GameLevelManager::resetTimerForKey(v63, AccountCommentKey); } else { if ( (v13 & 0x80000000) != 0 ) { v57 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v15); GameLevelManager::sharedState(v57); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v58 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v58 = v70; GameLevelManager::resetTimerForKey(v57, v58); v59 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v54 = (GameLevelManager *)GameLevelManager::sharedState(v59); GameLevelManager::sharedState(v54); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v55 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v55 = v70; } else { v33 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v15); GameLevelManager::sharedState(v33); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v34 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v34 = v70; GameLevelManager::resetTimerForKey(v33, v34); v35 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v36 = (GameLevelManager *)GameLevelManager::sharedState(v35); GameLevelManager::sharedState(v36); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v37 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v37 = v70; GameLevelManager::resetTimerForKey(v36, v37); v38 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v39 = (GameLevelManager *)GameLevelManager::sharedState(v38); GameLevelManager::sharedState(v39); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v40 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v40 = v70; GameLevelManager::resetTimerForKey(v39, v40); v41 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v42 = (GameLevelManager *)GameLevelManager::sharedState(v41); GameLevelManager::sharedState(v42); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v43 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v43 = v70; GameLevelManager::resetTimerForKey(v42, v43); v44 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v45 = (GameLevelManager *)GameLevelManager::sharedState(v44); GameLevelManager::sharedState(v45); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v46 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v46 = v70; GameLevelManager::resetTimerForKey(v45, v46); v47 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v48 = (GameLevelManager *)GameLevelManager::sharedState(v47); GameLevelManager::sharedState(v48); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v49 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v49 = v70; GameLevelManager::resetTimerForKey(v48, v49); v50 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v51 = (GameLevelManager *)GameLevelManager::sharedState(v50); GameLevelManager::sharedState(v51); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v52 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v52 = v70; GameLevelManager::resetTimerForKey(v51, v52); v53 = (GameLevelManager *)(unsigned __int8)v68; if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); v54 = (GameLevelManager *)GameLevelManager::sharedState(v53); GameLevelManager::sharedState(v54); GameLevelManager::getCommentKey((const char *)v13, (__int64 *)&v68); v55 = (char *)&v68 + 1; if ( ((unsigned __int8)v68 & 1) != 0 ) v55 = v70; } GameLevelManager::resetTimerForKey(v54, v55); if ( ((unsigned __int8)v68 & 1) != 0 ) operator delete(v70); } v56 = *((void (__fastcall ****)(_QWORD, _QWORD))a1 + 156); if ( v56 ) (**v56)(v56, v13); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source