// // sub_1004D4E44 from 0x1004d4e44 to 0x1004d4f38 (244 bytes) // // 1 xrefs: // > sub_1004CF6F8 @ 0x1004cf818 // // 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_1004D4E44(__int64 a1, int a2) { int v5; // w1 void *v6; // x0 void *v7; // x21 __int64 v8; // x8 if ( *(_DWORD *)(a1 + 8) > a2 ) return 28; if ( a2 ) { v5 = 8 * a2; if ( (unsigned int)(v5 - 1) > 0x3FFFFFFE ) return 38; v6 = sub_1004B11FC(*((__int64 **)off_1008524C8 + 54), v5, (char)"../../src/fmod_memory.h", 243, 0, 0); if ( !v6 ) return 38; v7 = v6; v8 = *(int *)(a1 + 8); if ( (_DWORD)v8 ) memcpy(v6, *(const void **)a1, 8 * v8); } else { v7 = nullptr; } if ( *(int *)(a1 + 12) >= 1 ) { if ( *(_QWORD *)a1 ) sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), *(int **)a1); } *(_QWORD *)a1 = v7; *(_DWORD *)(a1 + 12) = a2; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source