// // LevelControlConfig::encode from 0x7996c8 to 0x799a42 (890 bytes) // // 1 xrefs: // > LevelControlConfig::encodeB64 @ 0x799ab6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:48 +0000 // LevelControlConfig *__fastcall LevelControlConfig::encode(LevelControlConfig *this, int *a2) { unsigned int *v4; // r0 unsigned int *v5; // r0 unsigned int *v6; // r0 unsigned int *v7; // r0 int i; // r5 unsigned int *v9; // r0 unsigned int *v10; // r0 unsigned int *v11; // r0 unsigned int *v12; // r0 unsigned int *v13; // r0 unsigned int *v14; // r0 unsigned int *v15; // r0 unsigned int *v16; // r0 unsigned int *v17; // r0 unsigned int *v18; // r0 unsigned int *v19; // r0 unsigned int *v20; // r0 unsigned int *v21; // r0 unsigned int *v22; // r0 unsigned int *v23; // r0 unsigned int *v24; // r0 unsigned int *v25; // r0 unsigned int *v26; // r0 unsigned int *v27; // r0 unsigned int *v28; // r0 unsigned int *v29; // r0 unsigned int *v30; // r0 unsigned int *v31; // r0 unsigned int *v32; // r0 unsigned int *v33; // r0 unsigned int *v34; // r0 unsigned int *v35; // r0 unsigned int *v36; // r0 unsigned int *v37; // r0 unsigned int *v38; // r0 unsigned int *v39; // r0 unsigned int *v40; // r0 unsigned int v41; // r4 const char *v42; // r4 size_t v43; // r0 int v45; // [sp+0h] [bp-2A4h] unsigned int v46; // [sp+9Ch] [bp-208h] BYREF unsigned int v47; // [sp+A0h] [bp-204h] char *v48; // [sp+A4h] [bp-200h] _BYTE v49[500]; // [sp+A8h] [bp-1FCh] BYREF v47 = 500; v46 = 0; v48 = v49; v4 = fmt::BasicWriter::operator<<(&v46, "1:", 0); fmt::BasicWriter::operator<<(v4, a2[13]); fmt::BasicWriter::operator<<(&v46, "|2:", 0); sub_7995D4(&v46, (int)(a2 + 17)); fmt::BasicWriter::operator<<(&v46, "|3:", 0); v5 = fmt::BasicWriter::operator<<(&v46, "cw=", 0); v6 = (unsigned int *)fmt::BasicWriter::operator<<((int)v5); v7 = fmt::BasicWriter::operator<<(v6, ",ch=", 0); fmt::BasicWriter::operator<<((int)v7); v45 = a2[28]; for ( i = a2[27] + 60; v45 != i - 60; i += 60 ) { v9 = fmt::BasicWriter::operator<<(&v46, ";ax=", 0); v10 = fmt::BasicWriter::operator<<(v9, *(_DWORD *)(i - 12)); v11 = fmt::BasicWriter::operator<<(v10, ",ay=", 0); v12 = fmt::BasicWriter::operator<<(v11, *(_DWORD *)(i - 8)); v13 = fmt::BasicWriter::operator<<(v12, ",rx=", 0); v14 = fmt::BasicWriter::operator<<(v13, *(unsigned __int8 *)(i - 4)); v15 = fmt::BasicWriter::operator<<(v14, ",ry=", 0); v16 = fmt::BasicWriter::operator<<(v15, *(unsigned __int8 *)(i - 3)); v17 = fmt::BasicWriter::operator<<(v16, ",ox=", 0); v18 = (unsigned int *)fmt::BasicWriter::operator<<((int)v17); v19 = fmt::BasicWriter::operator<<(v18, ",oy=", 0); v20 = (unsigned int *)fmt::BasicWriter::operator<<((int)v19); v21 = fmt::BasicWriter::operator<<(v20, ",w=", 0); v22 = fmt::BasicWriter::operator<<(v21, *(_DWORD *)(i - 60)); v23 = fmt::BasicWriter::operator<<(v22, ",h=", 0); v24 = fmt::BasicWriter::operator<<(v23, *(_DWORD *)(i - 56)); v25 = fmt::BasicWriter::operator<<(v24, ",s=", 0); v26 = (unsigned int *)fmt::BasicWriter::operator<<((int)v25); v27 = fmt::BasicWriter::operator<<(v26, ",o=", 0); v28 = fmt::BasicWriter::operator<<(v27, *(_DWORD *)(i - 44)); v29 = fmt::BasicWriter::operator<<(v28, ",dz=", 0); v30 = (unsigned int *)fmt::BasicWriter::operator<<((int)v29); v31 = fmt::BasicWriter::operator<<(v30, ",rd=", 0); v32 = (unsigned int *)fmt::BasicWriter::operator<<((int)v31); v33 = fmt::BasicWriter::operator<<(v32, ",mb=", 0); v34 = fmt::BasicWriter::operator<<(v33, *(unsigned __int8 *)(i - 36)); v35 = fmt::BasicWriter::operator<<(v34, ",sr=", 0); v36 = fmt::BasicWriter::operator<<(v35, *(unsigned __int8 *)(i - 35)); v37 = fmt::BasicWriter::operator<<(v36, ",ns=", 0); v38 = fmt::BasicWriter::operator<<(v37, *(unsigned __int8 *)(i - 22)); v39 = fmt::BasicWriter::operator<<(v38, ",ob=", 0); fmt::BasicWriter::operator<<(v39, *(unsigned __int8 *)(i - 24)); } v40 = fmt::BasicWriter::operator<<(&v46, "|4:", 0); fmt::BasicWriter::operator<<(v40, a2[16]); fmt::BasicWriter::operator<<(&v46, "|5:", 0); sub_7995D4(&v46, (int)(a2 + 22)); v41 = v46; if ( v46 + 1 > v47 ) fmt::internal::Array::grow((int)&v46, v46 + 1); v48[v41] = 0; v42 = v48; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v43 = strlen(v42); std::string::__init((int *)this, v42, v43); if ( v48 != v49 && v48 ) operator delete[](v48); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source