// // sub_1004D9048 from 0x1004d9048 to 0x1004d90c4 (124 bytes) // // 1 xrefs: // > sub_1004EB5F0 @ 0x1004eb6c0 // // 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_1004D9048(__int64 a1, unsigned int a2) { unsigned int v3; // w8 __int64 result; // x0 size_t v6; // x21 v3 = *(_DWORD *)(a1 + 16); result = 1; if ( v3 < a2 ) { v6 = 4LL * (unsigned int)(1 << a2); result = (__int64)realloc(*(void **)a1, v6); *(_QWORD *)a1 = result; if ( result ) { result = (__int64)realloc(*(void **)(a1 + 8), v6); *(_QWORD *)(a1 + 8) = result; if ( result ) { bzero((void *)result, v6); *(_DWORD *)(a1 + 16) = a2; return 1; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source