// // sub_C4B160 from 0xc4b160 to 0xc4b28c (300 bytes) // // 2 xrefs: // > TIFFRGBAImageBegin @ 0xc523a8 // > TIFFRGBAImageBegin @ 0xc523b0 // // 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_C4B160( __int64 result, _DWORD *a2, __int64 a3, __int64 a4, int a5, int a6, int a7, int a8, unsigned __int8 *a9) { int v9; // w16 int v11; // w2 __int64 v12; // x12 int v13; // w6 __int64 v14; // x14 __int64 v15; // x18 __int64 v16; // x17 __int64 v17; // x7 int v18; // w11 unsigned __int8 *v19; // x9 _DWORD *v20; // x13 int v21; // w2 int v22; // w20 int v23; // w8 int v24; // w2 v9 = a6 - 1; v11 = *(unsigned __int16 *)(result + 30); v12 = *(_QWORD *)(result + 80); v13 = a7 * v11; if ( a6 ) { v14 = (unsigned __int16)v11; v15 = (unsigned int)(a5 - 1); v16 = (v15 + 1) * (unsigned __int16)v11; v17 = 4LL * a8; do { if ( a5 ) { v18 = a5 - 1; v19 = a9; v20 = a2; do { v21 = (unsigned __int16)(255 - v19[3]); v22 = v21 * (255 - *v19); v23 = v21 * (255 - v19[1]); --v18; v24 = v21 * (255 - v19[2]) / 255; v19 += v14; result = *(unsigned __int8 *)(v12 + v22 / 255) | 0xFF000000 | (*(unsigned __int8 *)(v12 + v23 / 255) << 8) | (*(unsigned __int8 *)(v12 + v24) << 16); *v20++ = result; } while ( v18 != -1 ); a2 += v15 + 1; a9 += v16; } --v9; a9 += v13; a2 = (_DWORD *)((char *)a2 + v17); } while ( v9 != -1 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source