// // EditorBuildStats::toString from 0x140266920 to 0x140266bbb (667 bytes) // // 3 xrefs: // > GameLevelManager::uploadLevel @ 0x1402299d1 // > GJGameLevel::encodeWithCoder @ 0x14026a0cd // > @ 0x14091c9ac // // 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:50 +0000 // // Hidden C++ exception states: #wind=2 _QWORD *__fastcall EditorBuildStats::toString(__int64 a1, _QWORD *a2) { unsigned __int64 i; // rbx cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // rbx size_t v8; // r8 void *v9; // rcx _BYTE *v10; // rax __int128 v12; // [rsp+30h] [rbp-D0h] BYREF _DWORD v13[22]; // [rsp+40h] [rbp-C0h] _BYTE v14[16]; // [rsp+98h] [rbp-68h] BYREF void *Block[2]; // [rsp+A8h] [rbp-58h] BYREF __int128 v16; // [rsp+B8h] [rbp-48h] _BYTE v17[528]; // [rsp+D0h] [rbp-30h] BYREF *(_QWORD *)&v12 = a2; v13[0] = *(_DWORD *)a1; v13[1] = *(_DWORD *)(a1 + 4); v13[2] = *(_DWORD *)(a1 + 8); v13[3] = *(_DWORD *)(a1 + 12); v13[4] = *(_DWORD *)(a1 + 16); v13[5] = *(_DWORD *)(a1 + 20); v13[6] = *(_DWORD *)(a1 + 24); v13[7] = (int)*(float *)(a1 + 28); v13[8] = *(_DWORD *)(a1 + 32); v13[9] = *(_DWORD *)(a1 + 64); v13[10] = *(_DWORD *)(a1 + 68); v13[11] = *(_DWORD *)(a1 + 72); v13[12] = *(_DWORD *)(a1 + 76); v13[13] = *(_DWORD *)(a1 + 80); v13[14] = *(_DWORD *)(a1 + 84); v13[15] = *(_DWORD *)(a1 + 88); v13[16] = *(_DWORD *)(a1 + 92); v13[17] = *(_DWORD *)(a1 + 36); v13[18] = *(_DWORD *)(a1 + 40); fmt::BasicWriter::BasicWriter(v17); fmt::BasicWriter::operator<<(v17, 1); for ( i = 0; i < 0x13; ++i ) { *(_QWORD *)&v12 = byte_14070ECF8; *((_QWORD *)&v12 + 1) = 0; fmt::BasicWriter::operator<<(v17, &v12); fmt::BasicWriter::operator<<(v17, (unsigned int)v13[i]); } *(_QWORD *)&v12 = byte_14070ECF8; *((_QWORD *)&v12 + 1) = 0; fmt::BasicWriter::operator<<(v17, &v12); v5 = cocos2d::CCString::createWithFormat("%llu", *(_QWORD *)(a1 + 48)); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Block = 0; v16 = 0; v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003D230(Block, CString, v8); v12 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v14, Block); fmt::BasicWriter::operator<<(v17, &v12); if ( *((_QWORD *)&v16 + 1) > 0xFu ) { v9 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } *(_QWORD *)&v12 = byte_14070ECF8; *((_QWORD *)&v12 + 1) = 0; fmt::BasicWriter::operator<<(v17, &v12); fmt::BasicWriter::operator<<(v17, *(unsigned int *)(a1 + 56)); *(_QWORD *)&v12 = byte_14070ECF8; *((_QWORD *)&v12 + 1) = 0; fmt::BasicWriter::operator<<(v17, &v12); fmt::BasicWriter::operator<<(v17, *(unsigned int *)(a1 + 60)); v10 = (_BYTE *)fmt::BasicWriter::c_str(v17); *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 0; do ++v7; while ( v10[v7] ); sub_14003D230(a2, v10, v7); fmt::BasicWriter::~BasicWriter(v17); return a2; }