// // GameLevelManager::deleteServerLevel from 0x1401544e0 to 0x1401548ca (1002 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x140300385 // > @ 0x1406ca8fc // // 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=6 void GameLevelManager::deleteServerLevel(GameLevelManager *a1, int a2) { cocos2d::CCString *v4; // rax const char *CString; // rax const char *v6; // rdi size_t v7; // rbx size_t v8; // r8 __int64 v9; // rsi void *v10; // rcx size_t v11; // r8 __int64 v12; // rax void *v13; // rcx cocos2d::CCString *v14; // rax const char *v15; // rax size_t v16; // r8 _QWORD *v17; // rsi __int64 v18; // rcx void **v19; // r8 cocos2d::CCString *v20; // rax char *v21; // rax size_t v22; // r8 size_t v23; // r8 _QWORD *v24; // rdx size_t v25; // r8 void *v26; // rcx void *v27; // rcx __int128 v28; // [rsp+40h] [rbp-C0h] BYREF __int64 v29; // [rsp+50h] [rbp-B0h] __int64 v30; // [rsp+58h] [rbp-A8h] __int128 v31; // [rsp+60h] [rbp-A0h] BYREF __int64 v32; // [rsp+70h] [rbp-90h] __int64 v33; // [rsp+78h] [rbp-88h] void **v34; // [rsp+80h] [rbp-80h] __int128 *v35; // [rsp+88h] [rbp-78h] void *Block[2]; // [rsp+98h] [rbp-68h] BYREF __int128 v37; // [rsp+A8h] [rbp-58h] void *v38[2]; // [rsp+B8h] [rbp-48h] BYREF __int128 v39; // [rsp+C8h] [rbp-38h] _QWORD Src[4]; // [rsp+D8h] [rbp-28h] BYREF void *v41[2]; // [rsp+F8h] [rbp-8h] __int64 v42; // [rsp+108h] [rbp+8h] unsigned __int64 v43; // [rsp+110h] [rbp+10h] v4 = cocos2d::CCString::createWithFormat("%i", a2); CString = cocos2d::CCString::getCString(v4); v6 = CString; *(_OWORD *)Block = 0; v37 = 0; v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Block, CString, v8); v9 = cocos2d::CCDictionary::objectForKey(a1->m_friendReqAndUserBlocks, Block); if ( *((_QWORD *)&v37 + 1) > 0xFu ) { v10 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v37 + 1) + 1LL) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } if ( !v9 ) { *(_OWORD *)Block = 0; v37 = 0; v11 = -1; do ++v11; while ( v6[v11] ); sub_14003A930(Block, v6, v11); v12 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(a1->m_friendReqAndUserBlocks, v12, Block); if ( *((_QWORD *)&v37 + 1) > 0xFu ) { v13 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v37 + 1) + 1LL) >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v13); } v14 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfv", "2898", 103, 99, "9"); v15 = cocos2d::CCString::getCString(v14); *(_OWORD *)v38 = 0; v39 = 0; v16 = -1; do ++v16; while ( v15[v16] ); sub_14003A930(v38, v15, v16); *(_OWORD *)v41 = 0; v17 = sub_14003AA10(0x40u); v41[0] = v17; v42 = 58; v43 = 63; strcpy((char *)v17, "https://www.boomlings.com/database/deleteGJLevelUser20.php"); GameLevelManager::getBasePostString(v18, Src); v19 = v38; if ( *((_QWORD *)&v39 + 1) > 0xFu ) v19 = (void **)v38[0]; v20 = cocos2d::CCString::createWithFormat("&levelID=%i&secret=%s", a2, (const char *)v19); v21 = (char *)cocos2d::CCString::getCString(v20); v22 = -1; do ++v22; while ( v21[v22] ); sub_140041270(Src, v21, v22); v34 = Block; v35 = &v28; *(_OWORD *)Block = 0; v37 = 0u; v23 = -1; do ++v23; while ( v6[v23] ); sub_14003A930(Block, v6, v23); v24 = Src; if ( Src[3] > 0xFu ) v24 = (_QWORD *)Src[0]; v28 = 0; v29 = 0; v30 = 0; v25 = -1; do ++v25; while ( *((_BYTE *)v24 + v25) ); sub_14003A930(&v28, v24, v25); v31 = 0; v32 = 0; v33 = 0; do ++v7; while ( *((_BYTE *)v17 + v7) ); sub_14003A930(&v31, v17, v7); GameLevelManager::ProcessHttpRequest(a1, (__int64)&v31, (const char *)&v28, (const char *)Block, 7); sub_14003A830((__int64)Src); if ( v43 > 0xF ) { v26 = v41[0]; if ( v43 + 1 >= 0x1000 ) { v26 = *((void **)v41[0] - 1); if ( (unsigned __int64)((char *)v41[0] - (char *)v26 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v26); } if ( *((_QWORD *)&v39 + 1) > 0xFu ) { v27 = v38[0]; if ( (unsigned __int64)(*((_QWORD *)&v39 + 1) + 1LL) >= 0x1000 ) { v27 = *((void **)v38[0] - 1); if ( (unsigned __int64)((char *)v38[0] - (char *)v27 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v27); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source