// // sub_10052C3D8 from 0x10052c3d8 to 0x10052c540 (360 bytes) // // 4 xrefs: // > sub_10051CF68 @ 0x10051d37c // > sub_100521AE0 @ 0x100521f84 // > sub_100537D24 @ 0x100538238 // > sub_100538A48 @ 0x100538e60 // // 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_10052C3D8(__int64 a1, int a2, int a3, __int64 a4, __int64 a5) { __int64 v7; // x22 __int64 v8; // x8 __int64 v9; // x23 int v10; // w21 __int64 v11; // x8 if ( *(_DWORD *)(a1 + 72) == a2 ) { v7 = *(_QWORD *)(*(_QWORD *)(a1 + 80) + 8LL); v8 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL); v9 = *(unsigned int *)(v8 + 116); v10 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(v8 + 40))( a1, a4, a5, *(_QWORD *)(a1 + 128) + 656LL); if ( v10 < 1 ) return 0; v11 = *(_QWORD *)(a1 + 128); *(_DWORD *)(v11 + 784) = v10; memcpy((void *)(v7 + v9), (const void *)(v11 + 656), v10); if ( *(_DWORD *)(a1 + 4) == 4096 ) { if ( v10 >= 65 ) sub_1005884E4((char)"s3_both.c"); memcpy((void *)(*(_QWORD *)(a1 + 128) + 1056LL), (const void *)(*(_QWORD *)(a1 + 128) + 656LL), v10); *(_BYTE *)(*(_QWORD *)(a1 + 128) + 1120LL) = v10; } else { if ( v10 >= 65 ) sub_1005884E4((char)"s3_both.c"); memcpy((void *)(*(_QWORD *)(a1 + 128) + 1121LL), (const void *)(*(_QWORD *)(a1 + 128) + 656LL), v10); *(_BYTE *)(*(_QWORD *)(a1 + 128) + 1185LL) = v10; } (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 120LL))(a1, 20, v10); *(_DWORD *)(a1 + 72) = a3; } return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 128LL))(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source