// // GJBaseGameLayer::getMoveTargetDelta from 0x1001095a0 to 0x1001096b8 (280 bytes) // // 1 xrefs: // > GJBaseGameLayer::triggerMoveCommand @ 0x1001153db // // 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:21:33 +0000 // __int64 __fastcall GJBaseGameLayer::getMoveTargetDelta(__int64 a1, __int64 a2, __int64 a3, char a4, __m128 a5) { int v9; // esi _QWORD *v10; // rdi _DWORD *MainObject; // r14 _DWORD *Object; // rax int v13; // esi _BYTE v15[8]; // [rsp+8h] [rbp-38h] BYREF _BYTE v16[48]; // [rsp+10h] [rbp-30h] BYREF v9 = *(_DWORD *)(a3 + 1528); if ( v9 <= 0 ) { v9 = *(_DWORD *)(a3 + 1464); v10 = (_QWORD *)a2; if ( a4 ) { LABEL_3: MainObject = (_DWORD *)GJBaseGameLayer::tryGetMainObject(v10, v9); if ( *(_BYTE *)(a3 + 1684) ) goto LABEL_10; goto LABEL_7; } } else { v10 = (_QWORD *)a2; if ( a4 ) goto LABEL_3; } MainObject = (_DWORD *)GJBaseGameLayer::tryGetObject((__int64)v10, v9, a5); if ( *(_BYTE *)(a3 + 1684) ) goto LABEL_10; LABEL_7: if ( *(_BYTE *)(a3 + 1685) == 1 ) { if ( *(_BYTE *)(a2 + 1010) ) { Object = *(_DWORD **)(a2 + 3264); goto LABEL_11; } LABEL_10: Object = *(_DWORD **)(a2 + 3256); goto LABEL_11; } v13 = *(_DWORD *)(a3 + 1468); if ( a4 ) Object = (_DWORD *)GJBaseGameLayer::tryGetMainObject((_QWORD *)a2, v13); else Object = (_DWORD *)GJBaseGameLayer::tryGetObject(a2, v13, a5); LABEL_11: if ( MainObject && Object && MainObject[229] != Object[229] ) { (*(void (__fastcall **)(_BYTE *, _DWORD *))(*(_QWORD *)Object + 1360LL))(v15, Object); (*(void (__fastcall **)(_BYTE *, _DWORD *))(*(_QWORD *)MainObject + 1360LL))(v16, MainObject); sub_100278370(a1, v15, v16); } else { sub_1002782D0(a1, &qword_100BE1268); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source