// // GameLevelManager::uploadLevelControls from 0x140258ed0 to 0x14025922c (860 bytes) // // 3 xrefs: // > GameLevelManager::onUploadLevelCompleted @ 0x14022a347 // > PlatformerControlsPopup::onUpload @ 0x140451c09 // > @ 0x14091c6a0 // // 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:45 +0000 // // Hidden C++ exception states: #wind=7 char __fastcall GameLevelManager::uploadLevelControls(__int64 a1, int a2, const char *a3) { _QWORD *v6; // rax __int64 v7; // rax void *v8; // rcx __int64 v10; // rbx __int64 v11; // rax __int64 v12; // rcx const char *v13; // rbx cocos2d::CCString *v14; // rax const char *CString; // rax cocos2d::CCString *v16; // rax char *v17; // rax size_t v18; // rbx size_t v19; // r8 void **v20; // rdx size_t v21; // r8 _QWORD *v22; // rdx void *v23; // rcx int Reserved; // [rsp+20h] [rbp-E0h] int v25; // [rsp+28h] [rbp-D8h] __int128 v26; // [rsp+48h] [rbp-B8h] BYREF __int64 v27; // [rsp+58h] [rbp-A8h] __int64 v28; // [rsp+60h] [rbp-A0h] __int128 v29; // [rsp+68h] [rbp-98h] BYREF __int64 v30; // [rsp+78h] [rbp-88h] __int64 v31; // [rsp+80h] [rbp-80h] __int128 *v32; // [rsp+88h] [rbp-78h] const char *v33; // [rsp+98h] [rbp-68h] void *Block[2]; // [rsp+A0h] [rbp-60h] BYREF __m128i si128; // [rsp+B0h] [rbp-50h] __int128 v36; // [rsp+C0h] [rbp-40h] BYREF __int64 v37; // [rsp+D0h] [rbp-30h] __int64 v38; // [rsp+D8h] [rbp-28h] _QWORD Src[4]; // [rsp+E0h] [rbp-20h] BYREF v33 = a3; v6 = sub_1400D2750(&v36, a2); v7 = sub_140059D70(v6, 0, "lctrlup_", 8u); *(_OWORD *)Block = 0; si128 = 0; *(_OWORD *)Block = *(_OWORD *)v7; si128 = *(__m128i *)(v7 + 16); *(_QWORD *)(v7 + 16) = 0; *(_QWORD *)(v7 + 24) = 15; *(_BYTE *)v7 = 0; sub_14003D310((__int64)&v36); if ( cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1200), Block) ) { if ( si128.m128i_i64[1] <= 0xFuLL ) { LABEL_6: si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; sub_14003D310((__int64)a3); return 0; } v8 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) < 0x1000 || (v8 = *((void **)Block[0] - 1), (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) <= 0x1F) ) { j_j_free(v8); goto LABEL_6; } LABEL_22: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } v10 = *(_QWORD *)(a1 + 1200); v11 = cocos2d::CCString::create(a3); cocos2d::CCDictionary::setObject(v10, v11, Block); GameLevelManager::getBasePostString(v12, Src); v13 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v13 = *(const char **)a3; v25 = 98; Reserved = 103; v14 = cocos2d::CCString::createWithFormat( "%c%s%s%c%c%s", 87, "mfd", "2893", Reserved, v25, (const char *)&word_14070D040); CString = cocos2d::CCString::getCString(v14); v16 = cocos2d::CCString::createWithFormat("&levelID=%i&data=%s&secret=%s", a2, v13, CString); v17 = (char *)cocos2d::CCString::getCString(v16); v18 = -1; v19 = -1; do ++v19; while ( v17[v19] ); sub_140044D80(Src, v17, v19); v32 = &v36; v20 = Block; if ( si128.m128i_i64[1] > 0xFuLL ) v20 = (void **)Block[0]; v29 = 0; v30 = 0; v31 = 0; v21 = -1; do ++v21; while ( *((_BYTE *)v20 + v21) ); sub_14003D230(&v29, v20, v21); v22 = Src; if ( Src[3] > 0xFu ) v22 = (_QWORD *)Src[0]; v36 = 0; v37 = 0; v38 = 0; do ++v18; while ( *((_BYTE *)v22 + v18) ); sub_14003D230(&v36, v22, v18); v26 = 0; *(_QWORD *)&v26 = sub_14003D460(0x40u); v27 = 60; v28 = 63; strcpy((char *)v26, "https://www.boomlings.com/database/uploadGJLevelControls.php"); GameLevelManager::ProcessHttpRequest( (cocos2d::CCActionManager **)a1, (__int64)&v26, (const char *)&v36, (const char *)&v29, 0x1Cu); sub_14003D310((__int64)Src); if ( si128.m128i_i64[1] > 0xFuLL ) { v23 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v23 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F ) goto LABEL_22; } j_j_free(v23); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; sub_14003D310((__int64)a3); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source