// // sub_10001FBAC from 0x10001fbac to 0x10001fd1c (368 bytes) // // 3 xrefs: // > GJEffectManager::saveToState @ 0x100016aa8 // > GJEffectManager::loadFromState @ 0x100016e48 // > sub_10001FE8C @ 0x10001fed8 // // 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_10001FBAC(__int64 *result, char *__src, char *a3, unsigned __int64 a4) { __int64 *v7; // x19 __int64 v8; // x8 _BYTE *v9; // x23 unsigned __int64 v10; // x8 __int64 v11; // x10 __int64 v12; // x1 __int64 v13; // x22 size_t v14; // x21 char *v15; // x8 _BYTE *v16; // x24 size_t v17; // x2 char *v18; // x22 size_t v19; // x21 v7 = result; v8 = result[2]; v9 = (_BYTE *)*result; if ( 0x8E38E38E38E38E39LL * ((v8 - *result) >> 3) >= a4 ) { v16 = (_BYTE *)result[1]; v17 = v16 - v9; if ( 0x8E38E38E38E38E39LL * ((v16 - v9) >> 3) >= a4 ) { v19 = a3 - __src; if ( v19 ) result = (__int64 *)memmove((void *)*result, __src, v19); v15 = &v9[v19]; } else { v18 = &__src[v17]; if ( v16 != v9 ) { result = (__int64 *)memmove((void *)*result, __src, v17); v16 = (_BYTE *)v7[1]; } if ( a3 != v18 ) result = (__int64 *)memmove(v16, v18, a3 - v18); v15 = &v16[a3 - v18]; } } else { if ( v9 ) { result[1] = (__int64)v9; operator delete(v9); v8 = 0; *v7 = 0; v7[1] = 0; v7[2] = 0; } if ( a4 > 0x38E38E38E38E38ELL ) sub_10000A5F8(); v10 = 0x8E38E38E38E38E39LL * (v8 >> 3); v11 = 2 * v10; if ( 2 * v10 <= a4 ) v11 = a4; if ( v10 >= 0x1C71C71C71C71C7LL ) v12 = 0x38E38E38E38E38ELL; else v12 = v11; result = (__int64 *)sub_10001FD1C(v7, v12); v13 = v7[1]; v14 = a3 - __src; if ( v14 ) result = (__int64 *)memmove((void *)v7[1], __src, v14); v15 = (char *)(v13 + v14); } v7[1] = (__int64)v15; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source