// // GJSmartBlockPreview::addPreview from 0x1403bcb70 to 0x1403bcce7 (375 bytes) // // 3 xrefs: // > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1405f0107 // > BrowseSmartKeyLayer::init @ 0x1405f13cf // > @ 0x140923e40 // // 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:31:27 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GJSmartBlockPreview::addPreview(__int64 a1, _QWORD *a2, __int64 a3, __int64 a4) { cocos2d::CCArray *v8; // r13 __int64 v9; // rax __int64 v10; // r12 __int64 v11; // rdx __int64 v12; // rcx __int64 v13; // r8 __int64 v14; // r9 char *v15; // rax cocos2d::CCPoint *v16; // rdi float *v17; // rbx __int64 v18; // rax __int64 v19; // rax _BYTE v20[8]; // [rsp+40h] [rbp-98h] BYREF _BYTE v21[8]; // [rsp+48h] [rbp-90h] BYREF _BYTE v22[8]; // [rsp+50h] [rbp-88h] BYREF _BYTE v23[32]; // [rsp+58h] [rbp-80h] BYREF _QWORD *v24; // [rsp+78h] [rbp-60h] __int64 v25; // [rsp+80h] [rbp-58h] v24 = a2; v25 = a3; if ( *(_QWORD *)(a3 + 16) ) { v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v9 = sub_14003F4F0((__int64)v23, a3); v10 = EditorUI::spriteFromObjectString(*(_QWORD *)(a4 + 14904), v9, 0, 0, 0, v8, nullptr, 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v10, 10); if ( !a2[2] ) sub_14003F4D0(v12, v11, v13, v14); v15 = (char *)a2; if ( a2[3] > 0xFu ) v15 = (char *)*a2; v16 = GJSmartTemplate::offsetForType((cocos2d::CCPoint *)v21, *v15); v17 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, *v17 * 0.5, *(float *)(v18 + 4) * 0.5); cocos2d::CCPoint::operator+(v19, v20, v16); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL))(v10, v20); LevelEditorLayer::updateObjectColors(a4, v8); } sub_14003D310((__int64)a2); sub_14003D310(a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source