// // sub_100164904 from 0x100164904 to 0x100164a24 (288 bytes) // // 1 xrefs: // > sub_10016479C @ 0x10016485c // // 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_100164904(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, int __c) { __int64 v6; // x19 __int64 v11; // x9 signed __int64 v12; // x23 void **v13; // x1 __int64 v14; // x24 __int64 v15; // x22 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v18; // [xsp+1Fh] [xbp-41h] v6 = a1; if ( a1 ) { v11 = *(_QWORD *)(a5 + 24); if ( v11 <= a4 - a2 ) v12 = 0; else v12 = v11 - (a4 - a2); if ( a3 - a2 >= 1 && (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 96LL))(a1) != a3 - a2 ) return 0; if ( v12 >= 1 ) { sub_100164A40(__p, v12, __c); v13 = v18 >= 0 ? __p : (void **)__p[0]; v14 = (*(__int64 (__fastcall **)(__int64, void **, signed __int64))(*(_QWORD *)v6 + 96LL))(v6, v13, v12); if ( v18 < 0 ) operator delete(__p[0]); if ( v14 != v12 ) return 0; } v15 = a4 - a3; if ( v15 < 1 || (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 96LL))(v6, a3, v15) == v15 ) *(_QWORD *)(a5 + 24) = 0; else return 0; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source