// // sub_D22280 from 0xd22280 to 0xd22370 (240 bytes) // // 2 xrefs: // > __cxa_demangle @ 0xd2f39c // > __cxa_demangle @ 0xd2f3a4 // // 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 // unsigned __int64 __fastcall sub_D22280(void *a1, size_t a2, __int64 a3) { size_t v4; // x19 unsigned __int64 result; // x0 void *v8; // x0 v4 = *(_QWORD *)(a3 + 16); result = *(_QWORD *)(a3 + 8) + 1LL + a2; if ( result > v4 ) { if ( *(_DWORD *)(a3 + 24) ) return result; if ( v4 || (v4 = 2, result > 2) ) { do v4 *= 2LL; while ( result > v4 ); } v8 = realloc(*(void **)a3, v4); if ( !v8 ) { free(*(void **)a3); *(_QWORD *)a3 = 0; *(_QWORD *)(a3 + 8) = 0; *(_QWORD *)(a3 + 16) = 0; *(_DWORD *)(a3 + 24) = 1; return 1; } *(_QWORD *)a3 = v8; *(_QWORD *)(a3 + 16) = v4; } result = *(unsigned int *)(a3 + 24); if ( !(_DWORD)result ) { memcpy((void *)(*(_QWORD *)a3 + *(_QWORD *)(a3 + 8)), a1, a2); *(_BYTE *)(*(_QWORD *)a3 + a2 + *(_QWORD *)(a3 + 8)) = 0; result = *(_QWORD *)(a3 + 8); *(_QWORD *)(a3 + 8) = result + a2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source