// // sub_65270 from 0x65270 to 0x65300 (144 bytes) // // 2 xrefs: // > sub_651F4 @ 0x65224 // > sub_65240 @ 0x6525c // // 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_65270(__int64 a1, unsigned int a2) { __int64 result; // x0 __int64 v5; // x8 void *v6; // x8 void *dest; // [xsp+8h] [xbp-18h] BYREF if ( *(_DWORD *)(a1 + 8) > (signed int)a2 ) return 28; dest = nullptr; if ( a2 ) { result = sub_65300(a2, &dest); if ( (_DWORD)result ) return result; v5 = *(int *)(a1 + 8); if ( (_DWORD)v5 ) memcpy(dest, *(const void **)a1, 4 * v5); } if ( *(int *)(a1 + 12) >= 1 ) sub_65158(*(_QWORD *)a1); v6 = dest; *(_DWORD *)(a1 + 12) = a2; *(_QWORD *)a1 = v6; return 0; }