// // sub_60458 from 0x60458 to 0x605fc (420 bytes) // // 4 xrefs: // > sub_8D6F8 @ 0x8eec0 // > sub_96648 @ 0x96650 // > sub_A121C @ 0xa1224 // > sub_A3828 @ 0xa387c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_60458(__int64 a1, __int64 *a2, __int64 a3, char a4, __int64 a5) { __int64 v5; // x22 __int64 v11; // x26 int v12; // w27 _QWORD *v13; // x22 __int64 v14; // x8 unsigned int *v15; // x8 unsigned int v16; // w9 unsigned int v17; // w25 __int64 v18; // x2 unsigned int v19; // w0 _BYTE v21[4]; // [xsp+Ch] [xbp-44h] BYREF v5 = *(_QWORD *)(a3 + 32); if ( v5 ) { v21[0] = 0; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 168LL))(v5, v21); if ( v21[0] ) (*(void (__fastcall **)(__int64, _QWORD, float))(*(_QWORD *)v5 + 32LL))(v5, 0, 0.0); } v11 = *(_QWORD *)(a1 + 1504); v12 = *(_DWORD *)(a3 + 24); if ( *(_BYTE *)(a3 + 29) ) v12 += *(_DWORD *)(a1 + 1488); v13 = (_QWORD *)(v11 + 560LL * v12); *(_BYTE *)(a3 + 29) ^= 1u; *(_QWORD *)(a3 + 32) = v13; v14 = v13[12]; if ( v14 ) { v15 = (unsigned int *)(v14 + 100); do v16 = __ldaxr(v15); while ( __stlxr(v16 | 0x100, v15) ); } v17 = sub_60858(); if ( !v17 ) { if ( a5 ) v18 = a5; else v18 = a1 + 1528; *(_QWORD *)(v11 + 560LL * v12 + 32) = v18; v19 = sub_59FEC(v11 + 560LL * v12, *a2, v18, 1, 1, 0); if ( v19 ) { v17 = v19; sub_60858(); *(_QWORD *)(a3 + 32) = 0; } else { if ( *(_DWORD *)(a3 + 88) ) { sub_5A918(v11 + 560LL * v12); *(_DWORD *)(a3 + 88) = 0; } if ( *(_QWORD *)(a1 + 1520) ) { sub_60840(v11 + 560LL * v12); if ( (a4 & 1) != 0 ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*v13 + 272LL))( v11 + 560LL * v12, 4294967293LL, *(_QWORD *)(*(_QWORD *)(a1 + 1520) + 8LL * *(int *)(v11 + 560LL * v12 + 464))); } return (*(unsigned int (__fastcall **)(__int64, _QWORD))(*v13 + 16LL))(v11 + 560LL * v12, 0); } } return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source