// // sub_1004C7938 from 0x1004c7938 to 0x1004c79ac (116 bytes) // // 0 xrefs: // // 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_1004C7938(unsigned __int64 a1, int a2) { unsigned __int64 v2; // x19 unsigned int v4; // w0 __int64 v5; // x8 __int64 i; // x9 v2 = a1; if ( a1 ) { v4 = sub_1004C6AA0(a1); if ( (int)(2 * v4 + 2) <= a2 ) { if ( (v4 & 0x80000000) == 0 ) { v5 = 2LL * v4; for ( i = v4; i != -1; --i ) { *(_WORD *)(v2 + v5) = *(unsigned __int8 *)(v2 + i); v5 -= 2; } } } else { return 0; } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source