// // GameLevelManager::updateDescription from 0x1401636b0 to 0x1401639f6 (838 bytes) // // 2 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x1400d9040 // > @ 0x1406cac50 // // 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=5 char __fastcall GameLevelManager::updateDescription(__int64 a1, int a2, const char *a3) { cocos2d::CCString *v6; // rax const char *CString; // rax const char *v8; // rdi size_t v9; // rbx size_t v10; // r8 __int64 v11; // r14 void *v12; // rcx size_t v14; // r8 __int64 v15; // rax void *v16; // rcx __int64 v17; // rax __int64 v18; // rcx __int64 v19; // rcx const char *v20; // r14 cocos2d::CCString *v21; // rax const char *v22; // rax cocos2d::CCString *v23; // rax char *v24; // rax size_t v25; // r8 size_t v26; // r8 _QWORD *v27; // rdx __int128 v28; // [rsp+48h] [rbp-81h] BYREF __int64 v29; // [rsp+58h] [rbp-71h] __int64 v30; // [rsp+60h] [rbp-69h] __int128 v31; // [rsp+68h] [rbp-61h] BYREF __int64 v32; // [rsp+78h] [rbp-51h] __int64 v33; // [rsp+80h] [rbp-49h] __int128 *v34; // [rsp+88h] [rbp-41h] const char *v35; // [rsp+98h] [rbp-31h] void *Block[2]; // [rsp+A0h] [rbp-29h] BYREF __int128 v37; // [rsp+B0h] [rbp-19h] _QWORD Src[4]; // [rsp+C0h] [rbp-9h] BYREF v35 = a3; v6 = cocos2d::CCString::createWithFormat("desc_%i", a2); CString = cocos2d::CCString::getCString(v6); v8 = CString; *(_OWORD *)Block = 0; v37 = 0; v9 = -1; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(Block, CString, v10); v11 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 592), Block); if ( *((_QWORD *)&v37 + 1) > 0xFu ) { v12 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v37 + 1) + 1LL) >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } if ( v11 ) { sub_14003A830((__int64)a3); return 0; } else { *(_OWORD *)Block = 0; v37 = 0; v14 = -1; do ++v14; while ( v8[v14] ); sub_14003A930(Block, v8, v14); v15 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 592), v15, Block); if ( *((_QWORD *)&v37 + 1) > 0xFu ) { v16 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v37 + 1) + 1LL) >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } v17 = sub_14003BDB0((__int64)&v28, (__int64)a3); GameLevelManager::removeDelimiterChars(v18, v17, 0); GameLevelManager::getBasePostString(v19, Src); v20 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v20 = *(const char **)a3; v21 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_140531E88); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCString::createWithFormat("&levelID=%i&levelDesc=%s&secret=%s", a2, v20, v22); v24 = (char *)cocos2d::CCString::getCString(v23); v25 = -1; do ++v25; while ( v24[v25] ); sub_140041270(Src, v24, v25); v34 = &v28; v31 = 0; v32 = 0; v33 = 0; v26 = -1; do ++v26; while ( v8[v26] ); sub_14003A930(&v31, v8, v26); v27 = Src; if ( Src[3] > 0xFu ) v27 = (_QWORD *)Src[0]; v28 = 0; v29 = 0; v30 = 0; do ++v9; while ( *((_BYTE *)v27 + v9) ); sub_14003A930(&v28, v27, v9); *(_OWORD *)Block = 0; *(_QWORD *)&v37 = 0; *((_QWORD *)&v37 + 1) = 15; Block[0] = sub_14003AA10(0x40u); *(_QWORD *)&v37 = 53; *((_QWORD *)&v37 + 1) = 63; strcpy((char *)Block[0], "https://www.boomlings.com/database/updateGJDesc20.php"); GameLevelManager::ProcessHttpRequest( (cocos2d::CCObject *)a1, (__int64)Block, (const char *)&v28, (const char *)&v31, 24); sub_14003A830((__int64)Src); sub_14003A830((__int64)a3); return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source