// // GameLevelManager::onDownloadUserMessageCompleted from 0x10052aef0 to 0x10052b0ba (458 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051e2b3 // // 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 12:31:47 +0000 // void __fastcall GameLevelManager::onDownloadUserMessageCompleted(__int64 a1, unsigned __int8 *a2, __int64 a3) { __int64 v3; // r15 unsigned int SplitIntFromKey; // r13d const void *v5; // r15 unsigned __int64 v6; // rcx size_t v7; // rdx __int64 v8; // rdi size_t v9; // rax size_t v10; // r12 char *v11; // r13 size_t v12; // r14 __int64 v13; // rax __int64 v14; // r15 unsigned int v15; // r14d void (__fastcall ***v16)(_QWORD, __int64); // rdi __int64 v17; // rdi _WORD __s2[11]; // [rsp+1h] [rbp-5Fh] BYREF _QWORD __dst[2]; // [rsp+18h] [rbp-48h] BYREF void *__p; // [rsp+28h] [rbp-38h] unsigned int v21; // [rsp+34h] [rbp-2Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v3 = *(_QWORD *)(a3 + 16); else v3 = a3 + 1; SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v3, 1); GameLevelManager::removeDLFromActive(a1, v3); strcpy((char *)__s2, "-1"); v5 = a2 + 1; v6 = *a2 >> 1; if ( (*a2 & 1) != 0 ) { v5 = *((const void **)a2 + 2); v6 = *((_QWORD *)a2 + 1); } v7 = 2; if ( v6 < 2 ) v7 = v6; if ( !((v6 != 2) | (memcmp(v5, __s2, v7) != 0)) ) { v8 = *(_QWORD *)(a1 + 1392); if ( v8 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 8LL))(v8, SplitIntFromKey); return; } v9 = strlen((const char *)v5); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v10 = v9; v21 = SplitIntFromKey; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; __dst[0] = v12 + 1; __dst[1] = v10; } else { LOBYTE(__dst[0]) = 2 * v9; v11 = (char *)__dst + 1; if ( !v9 ) goto LABEL_19; } memmove(v11, v5, v10); LABEL_19: v11[v10] = 0; v13 = GameLevelManager::responseToDict(__dst, 0); v14 = GJUserMessage::create(v13); v15 = v21; if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( v14 ) { cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 1136), v14, *(int *)(v14 + 316)); v16 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 1392); if ( v16 ) (**v16)(v16, v14); } else { v17 = *(_QWORD *)(a1 + 1392); if ( v17 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 8LL))(v17, v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source