// // GameLevelManager::getLevelControls from 0x140259cb0 to 0x140259f4e (670 bytes) // // 2 xrefs: // > PlatformerControlsPopup::onUpdate @ 0x140451420 // > @ 0x14091c6d0 // // 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=6 void __fastcall GameLevelManager::getLevelControls(cocos2d::CCActionManager **a1, int a2) { _QWORD *v4; // rax __int64 v5; // rax __int64 v6; // rcx cocos2d::CCString *v7; // rax const char *CString; // rax cocos2d::CCString *v9; // rax char *v10; // rax size_t v11; // rbx size_t v12; // r8 void **v13; // rdx size_t v14; // r8 _QWORD *v15; // rdx void *v16; // rcx int Reserved; // [rsp+20h] [rbp-E0h] int v18; // [rsp+28h] [rbp-D8h] __int128 v19; // [rsp+48h] [rbp-B8h] BYREF __int64 v20; // [rsp+58h] [rbp-A8h] __int64 v21; // [rsp+60h] [rbp-A0h] __int128 v22; // [rsp+68h] [rbp-98h] BYREF __int64 v23; // [rsp+78h] [rbp-88h] __int64 v24; // [rsp+80h] [rbp-80h] void *Block[2]; // [rsp+88h] [rbp-78h] BYREF __m128i v26; // [rsp+98h] [rbp-68h] __int128 *v27; // [rsp+A8h] [rbp-58h] __int128 v28; // [rsp+B8h] [rbp-48h] __m128i v29; // [rsp+C8h] [rbp-38h] __int128 v30; // [rsp+D8h] [rbp-28h] BYREF __int64 v31; // [rsp+E8h] [rbp-18h] __int64 v32; // [rsp+F0h] [rbp-10h] _QWORD Src[4]; // [rsp+F8h] [rbp-8h] BYREF v4 = sub_1400D2750(&v30, a2); v5 = sub_140059D70(v4, 0, "lctrlget_", 9u); v28 = *(_OWORD *)v5; *(_OWORD *)Block = v28; v29 = *(__m128i *)(v5 + 16); v26 = v29; *(_QWORD *)(v5 + 16) = 0; *(_QWORD *)(v5 + 24) = 15; *(_BYTE *)v5 = 0; sub_14003D310((__int64)&v30); GameLevelManager::getBasePostString(v6, Src); v18 = 98; Reserved = 103; v7 = cocos2d::CCString::createWithFormat( "%c%s%s%c%c%s", 87, "mfd", "2893", Reserved, v18, (const char *)&word_14070D040); CString = cocos2d::CCString::getCString(v7); v9 = cocos2d::CCString::createWithFormat("&levelID=%i&secret=%s", a2, CString); v10 = (char *)cocos2d::CCString::getCString(v9); v11 = -1; v12 = -1; do ++v12; while ( v10[v12] ); sub_140044D80(Src, v10, v12); v27 = &v30; v13 = Block; if ( _mm_srli_si128(v29, 8).m128i_u64[0] > 0xF ) v13 = (void **)v28; v22 = 0; v23 = 0; v24 = 0; v14 = -1; do ++v14; while ( *((_BYTE *)v13 + v14) ); sub_14003D230(&v22, v13, v14); v15 = Src; if ( Src[3] > 0xFu ) v15 = (_QWORD *)Src[0]; v30 = 0; v31 = 0; v32 = 0; do ++v11; while ( *((_BYTE *)v15 + v11) ); sub_14003D230(&v30, v15, v11); v19 = 0; *(_QWORD *)&v19 = sub_14003D460(0x40u); v20 = 57; v21 = 63; strcpy((char *)v19, "https://www.boomlings.com/database/getGJLevelControls.php"); GameLevelManager::ProcessHttpRequest(a1, (__int64)&v19, (const char *)&v30, (const char *)&v22, 0x1Eu); sub_14003D310((__int64)Src); if ( v26.m128i_i64[1] > 0xFuLL ) { v16 = Block[0]; if ( (unsigned __int64)(v26.m128i_i64[1] + 1) >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source