// // GameObject::getColorKey from 0x140299db0 to 0x14029a207 (1111 bytes) // // 4 xrefs: // > GameObject::getColorKey @ 0x140299f90 // > LevelEditorLayer::getLevelString @ 0x1403f33f1 // > PlayLayer::processCreateObjectsFromSetup @ 0x14050bf51 // > @ 0x14091d7d4 // // 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:29:12 +0000 // // Hidden C++ exception states: #wind=2 _QWORD *__fastcall GameObject::getColorKey(__int64 a1, _QWORD *a2, bool a3, unsigned __int8 a4) { bool v5; // r12 _QWORD *v6; // r13 int v8; // r14d unsigned int *v9; // rax __int64 v10; // rdx unsigned int v11; // ecx unsigned int *v12; // rax unsigned int v13; // edi __int64 v14; // r8 __int64 ColorKey; // rax __int64 v16; // rax int v17; // esi __int64 v18; // rdi __int64 v19; // rsi unsigned __int64 v20; // rdi __int64 v21; // rax __int64 v22; // rdx _BYTE *v23; // rax size_t v24; // r8 __int128 v26; // [rsp+20h] [rbp-E0h] BYREF _QWORD *v27; // [rsp+38h] [rbp-C8h] _BYTE v28[16]; // [rsp+40h] [rbp-C0h] BYREF _BYTE v29[32]; // [rsp+50h] [rbp-B0h] BYREF _BYTE v30[528]; // [rsp+70h] [rbp-90h] BYREF v5 = a3; v6 = a2; v27 = a2; *(_QWORD *)&v26 = a2; v8 = 0; if ( !a3 ) v5 = *(_BYTE *)(a1 + 1046) != 0; fmt::BasicWriter::BasicWriter(v30); if ( v5 ) { v9 = *(unsigned int **)(a1 + 1104); if ( v9 ) { v10 = *v9; v11 = v9[1]; if ( v11 == (_DWORD)v10 || !(_DWORD)v10 ) v10 = v11; } else { v10 = 0; } fmt::BasicWriter::operator<<(v30, v10); if ( *(_BYTE *)(*(_QWORD *)(a1 + 1104) + 32LL) ) { *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1104) + 28LL)); fmt::BasicWriter::operator<<(v30, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1104) + 29LL)); } if ( *(_BYTE *)(a1 + 1046) ) { *(_QWORD *)&v26 = "d"; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); } } else { v12 = *(unsigned int **)(a1 + 1112); if ( v12 ) { v13 = *v12; if ( v12[1] == *v12 || !v13 ) v13 = v12[1]; fmt::BasicWriter::operator<<(v30, v13); if ( v13 == 1012 ) { *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); LOBYTE(v14) = 1; ColorKey = GameObject::getColorKey(a1, v29, v14, a4); v26 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v28, ColorKey); fmt::BasicWriter::operator<<(v30, &v26); sub_14003D310((__int64)v29); } } else { fmt::BasicWriter::operator<<(v30, 0); } v16 = *(_QWORD *)(a1 + 1112); if ( v16 && *(_BYTE *)(v16 + 32) ) { *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30); fmt::BasicWriter::operator<<(v30, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1112) + 28LL)); fmt::BasicWriter::operator<<(v30, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1112) + 29LL)); } } *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); if ( a4 ) { v17 = 0; if ( *(__int16 *)(a1 + 1192) > 0 ) { v18 = 0; do { fmt::BasicWriter::operator<<(v30, (unsigned int)*(__int16 *)(v18 + *(_QWORD *)(a1 + 1184))); *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); ++v17; v18 += 2; } while ( v17 < *(__int16 *)(a1 + 1192) ); } } else if ( *(__int16 *)(a1 + 1176) > 0 ) { v19 = 0; v20 = 0; do { if ( v20 <= 9 && (v21 = *(_QWORD *)(a1 + 1168)) != 0 ) v22 = (unsigned int)*(__int16 *)(v19 + v21); else v22 = 0; fmt::BasicWriter::operator<<(v30, v22); *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); ++v8; ++v20; v19 += 2; } while ( v8 < *(__int16 *)(a1 + 1176) ); v6 = v27; } *(_QWORD *)&v26 = "."; *((_QWORD *)&v26 + 1) = 0; fmt::BasicWriter::operator<<(v30, &v26); fmt::BasicWriter::operator<<(v30, v5); v23 = (_BYTE *)fmt::BasicWriter::c_str(v30); *(_OWORD *)v6 = 0; v6[2] = 0; v6[3] = 0; v24 = -1; do ++v24; while ( v23[v24] ); sub_14003D230(v6, v23, v24); fmt::BasicWriter::~BasicWriter(v30); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source