// // EditorUI::processSmartObjectsFromType from 0x1000152d0 to 0x100015658 (904 bytes) // // 2 xrefs: // > EditorUI::createSmartObjectsFromType @ 0x100015125 // > EditorUI::processSmartObjectsFromType @ 0x100015644 // // 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 12:18:54 +0000 // __int64 __fastcall EditorUI::processSmartObjectsFromType( __int64 a1, unsigned int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { int v6; // eax __int64 v8; // r15 _QWORD *v10; // rsi __int64 v11; // rax unsigned int v12; // r14d __int64 v13; // r13 __int64 Neighbor; // rax __int64 v15; // rbx __int64 v16; // r15 unsigned int v17; // eax unsigned int SmartObjectKey; // r13d __int64 v19; // rax __int64 v20; // r15 __int64 Object; // rax __int64 v22; // r13 __int64 v23; // rbx _QWORD *v24; // r14 __int64 v25; // rdi __int64 v26; // rsi __int64 v27; // rdx __int64 v28; // rcx __int64 v29; // r8 __int64 v30; // r9 __int64 result; // rax __int64 v32; // rax __int64 v33; // rsi unsigned int RandomStartKey; // ebx __int64 v35; // r15 unsigned int v36; // r13d __int64 v37; // r15 __int64 v38; // rax __int64 v39; // rbx __int64 v40; // rbx char v41[8]; // [rsp+8h] [rbp-88h] BYREF _QWORD *v42; // [rsp+10h] [rbp-80h] __int64 v43; // [rsp+18h] [rbp-78h] char v44[8]; // [rsp+20h] [rbp-70h] BYREF __int64 v45; // [rsp+28h] [rbp-68h] char v46[8]; // [rsp+30h] [rbp-60h] BYREF char v47[8]; // [rsp+38h] [rbp-58h] BYREF __int64 v48; // [rsp+40h] [rbp-50h] __int64 v49; // [rsp+48h] [rbp-48h] unsigned int v50; // [rsp+54h] [rbp-3Ch] __int64 v51; // [rsp+58h] [rbp-38h] unsigned int v52; // [rsp+60h] [rbp-30h] int v53; // [rsp+64h] [rbp-2Ch] v8 = a5; v48 = a4; v49 = a3; v51 = a1; LOBYTE(v6) = 1; v53 = v6; if ( a2 != 869 && a2 != 2703 && a2 != 2838 ) v53 = 0; v43 = a5; if ( (unsigned int)sub_1007FEF90(a5) ) { v52 = a2; v45 = a6; v10 = (_QWORD *)sub_1007FEFE0(v8, 0); v11 = *v10; v42 = v10; (*(void (__fastcall **)(char *))(v11 + 1360))(v47); v12 = 1; v13 = v48; do { sub_1002782D0(v46, v47); Neighbor = EditorUI::getNeighbor(v46, v52, v46, v12, v13); if ( Neighbor ) { v15 = Neighbor; v16 = v51; v17 = EditorUI::convertToBaseKey(v51, *((unsigned int *)v42 + 257)); SmartObjectKey = EditorUI::getSmartObjectKey(v17, v12); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15); sub_1002782D0(v44, v19); if ( (_BYTE)v53 ) { sub_1002782D0(v46, v44); v50 = EditorUI::convertKeyBasedOnNeighbors(v16, SmartObjectKey, v52, v46, v49); } else { v50 = SmartObjectKey; } sub_1002782D0(v41, v44); v20 = *(_QWORD *)(v16 + 1440); sub_1002782D0(v46, v41); Object = LevelEditorLayer::createObject(v20, v50, v46, 0); v22 = Object; if ( Object && (*(float *)(Object + 1312) != 1.0 || *(float *)(Object + 1316) != 1.0) ) { GameObject::updateCustomScaleX(Object); GameObject::updateCustomScaleY(v22, *(float *)(v22 + 1316)); } v8 = v43; sub_1007FEBF0(v43, v22); v13 = v48; sub_1007FF140(v48, v15, 1); } ++v12; } while ( v12 != 9 ); v23 = v45; v24 = v42; sub_1007FEBF0(v45, v42); sub_1007FF140(v8, v24, 1); v25 = v51; v26 = v52; v27 = v49; v28 = v13; v29 = v8; v30 = v23; } else { result = sub_1007FEF90(v48); if ( !(_DWORD)result ) return result; v45 = a6; v32 = sub_1007FEFE0(v48, 0); v33 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32); sub_1002782D0(v47, v33); RandomStartKey = EditorUI::getRandomStartKey(a2); if ( (_BYTE)v53 ) { sub_1002782D0(v46, v47); v35 = v51; v36 = a2; RandomStartKey = EditorUI::convertKeyBasedOnNeighbors(v51, RandomStartKey, a2, v46, v49); } else { v36 = a2; v35 = v51; } sub_1002782D0(v44, v47); v37 = *(_QWORD *)(v35 + 1440); sub_1002782D0(v46, v44); v38 = LevelEditorLayer::createObject(v37, RandomStartKey, v46, 0); v39 = v38; if ( v38 && (*(float *)(v38 + 1312) != 1.0 || *(float *)(v38 + 1316) != 1.0) ) { GameObject::updateCustomScaleX(v38); GameObject::updateCustomScaleY(v39, *(float *)(v39 + 1316)); } sub_1007FEBF0(v43, v39); v40 = v48; sub_1007FF150(v48, 0, 1); v25 = v51; v26 = v36; v27 = v49; v28 = v40; v29 = v43; v30 = v45; } return EditorUI::processSmartObjectsFromType(v25, v26, v27, v28, v29, v30); }
GD Web Decomp Icon

GD Web Decomp

Raw Source