// // LabelGameObject::updatePreviewLabel from 0x140654ce0 to 0x140654e90 (432 bytes) // // 6 xrefs: // > LevelEditorLayer::init @ 0x1403eeca3 // > LevelEditorLayer::init @ 0x1403eece3 // > LevelEditorLayer::onStopPlaytest @ 0x140400523 // > LevelEditorLayer::onStopPlaytest @ 0x140400563 // > SetItemIDLayer::onClose @ 0x140598b23 // > @ 0x140931688 // // 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:35:44 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall LabelGameObject::updatePreviewLabel(__int64 a1) { int v2; // eax const char *v4; // rax _BYTE *v5; // rax size_t v6; // r8 __int128 v7; // [rsp+20h] [rbp-E0h] BYREF __int64 v8; // [rsp+30h] [rbp-D0h] __int64 v9; // [rsp+38h] [rbp-C8h] __int128 v10; // [rsp+40h] [rbp-C0h] BYREF __int64 v11; // [rsp+50h] [rbp-B0h] __int64 v12; // [rsp+58h] [rbp-A8h] _BYTE v13[528]; // [rsp+60h] [rbp-A0h] BYREF v2 = *(_DWORD *)(a1 + 1916); switch ( v2 ) { case -1: v7 = 0; v8 = 4; v9 = 15; strcpy((char *)&v7, "C:GT"); return LabelGameObject::updateLabel(a1, &v7); case -2: v7 = 0; v8 = 4; v9 = 15; strcpy((char *)&v7, "C:GP"); return LabelGameObject::updateLabel(a1, &v7); case -3: v7 = 0; v8 = 4; v9 = 15; strcpy((char *)&v7, "C:AT"); return LabelGameObject::updateLabel(a1, &v7); default: fmt::BasicWriter::BasicWriter(v13); *((_QWORD *)&v7 + 1) = 0; v4 = "T:"; if ( !*(_BYTE *)(a1 + 1920) ) v4 = "C:"; *(_QWORD *)&v7 = v4; fmt::BasicWriter::operator<<(v13, &v7); fmt::BasicWriter::operator<<(v13, *(unsigned int *)(a1 + 1696)); v5 = (_BYTE *)fmt::BasicWriter::c_str(v13); v10 = 0; v11 = 0; v12 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003D230(&v10, v5, v6); LabelGameObject::updateLabel(a1, &v10); return fmt::BasicWriter::~BasicWriter(v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source