// // sub_B7BB4 from 0xb7bb4 to 0xb7c88 (212 bytes) // // 5 xrefs: // > sub_5614C @ 0x56290 // > sub_7755C @ 0x77928 // > sub_7E3B4 @ 0x7e54c // > sub_AC1D8 @ 0xac3bc // > sub_AC7D4 @ 0xac7e8 // // 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_B7BB4(__int16 *a1, char *a2, int a3, int a4, int a5) { char *v6; // x0 int v7; // w13 int v8; // w10 bool v9; // zf __int64 v11; // x9 __int64 v12; // x13 __int64 v13; // x14 __int64 v14; // x15 char *v15; // x16 v6 = *((char **)a1 + 1); if ( a5 ) v7 = a5; else v7 = a4; if ( !v6 ) return 30; if ( !a2 ) return 31; v8 = a1[1]; v9 = v7 == a4 && v8 == a3; if ( v9 && *a1 == a4 ) { memcpy(v6, a2, 4LL * a4 * a3); } else { v11 = 0; v12 = 4LL * v7; while ( v11 < v8 ) { v13 = 0; v14 = *a1; v15 = &v6[4 * (int)v11 * *a1]; while ( v13 < v14 ) { if ( v11 < a3 && v13 < a4 ) *(_DWORD *)v15 = *(_DWORD *)&a2[4 * v13]; else *(_DWORD *)v15 = 0; ++v13; v15 += 4; } ++v11; a2 += v12; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source