// // GameLevelManager::onUploadLevelControlsCompleted from 0x834500 to 0x8347a0 (672 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85b610 // > @ 0xd22b0 // // 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:10 +0000 // __int64 __fastcall GameLevelManager::onUploadLevelControlsCompleted( GameLevelManager *a1, __int64 a2, unsigned __int8 *a3) { cocos2d::CCString *v6; // x0 const char *CString; // x1 size_t v8; // x0 const char *v9; // x0 unsigned int v10; // w24 _BOOL4 v11; // w22 __int64 v12; // x0 char *v13; // x20 char *v14; // x0 __int64 v16; // x1 void (__fastcall ***v17)(_QWORD, _QWORD, __int64); // x0 char *v18; // x20 char *v19; // [xsp+48h] [xbp+48h] __int64 v20; // [xsp+50h] [xbp+50h] BYREF __int64 v21; // [xsp+58h] [xbp+58h] void *v22; // [xsp+60h] [xbp+60h] void *v23; // [xsp+68h] [xbp+68h] BYREF char *v24; // [xsp+70h] [xbp+70h] __int64 v25; // [xsp+78h] [xbp+78h] __int64 v26[2]; // [xsp+80h] [xbp+80h] BYREF void *v27; // [xsp+90h] [xbp+90h] v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)a1 + 136), a3); if ( v6 ) CString = (const char *)cocos2d::CCString::getCString(v6); else CString = &byte_11B8890; v19 = (char *)CString; v20 = 0; v21 = 0; v22 = nullptr; v8 = strlen(CString); std::string::__init(&v20, v19, v8); cocos2d::CCDictionary::removeObjectForKey(*((_QWORD *)a1 + 136), a3); v23 = nullptr; v24 = nullptr; v25 = 0; sub_833ACC(a3, &byte_11528B0, (__int64 *)&v23); if ( 0xAAAAAAAAAAAAAAABLL * ((v24 - (_BYTE *)v23) >> 3) <= 1 ) { v10 = 0; } else { v9 = (char *)v23 + 25; if ( (*((_BYTE *)&off_18 + (_QWORD)v23) & 1) != 0 ) v9 = *(const char **)((char *)&word_10 + (_QWORD)v23 + 24); v10 = atoi(v9); } v26[0] = 0; v26[1] = 0; v27 = nullptr; std::string::__init(v26, &word_117CE08, 2u); v11 = sub_7FEA60(a2, (__int64)v26); if ( (v26[0] & 1) != 0 ) operator delete(v27); if ( v11 ) { v12 = *((_QWORD *)a1 + 170); if ( v12 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v12 + 8LL))(v12, v10, 28); v13 = (char *)v23; if ( v23 ) { v14 = v24; if ( v23 != v24 ) { do { v24 = v14 - 24; std::string::~string((__int64)(v14 - 24)); v14 = v24; } while ( v13 != v24 ); v14 = (char *)v23; } LABEL_16: operator delete(v14); goto LABEL_17; } goto LABEL_17; } v16 = (unsigned __int8)v20 >> 1; if ( (v20 & 1) != 0 ) v16 = v21; if ( !v16 ) { v17 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64))a1 + 170); if ( !v17 ) goto LABEL_25; goto LABEL_24; } GameLevelManager::setLevelControlsTemplate(a1, (const char *)v10, (__int64)&v20, -1); v17 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64))a1 + 170); if ( v17 ) LABEL_24: (**v17)(v17, v10, 28); LABEL_25: v18 = (char *)v23; if ( v23 ) { v14 = v24; if ( v23 != v24 ) { do { v24 = v14 - 24; std::string::~string((__int64)(v14 - 24)); v14 = v24; } while ( v18 != v24 ); v14 = (char *)v23; } goto LABEL_16; } LABEL_17: if ( (v20 & 1) != 0 ) operator delete(v22); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source