// // sub_677178 from 0x677178 to 0x6771d2 (90 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 // char *__fastcall sub_677178(char *result, int a2, int a3, _DWORD *a4, int a5) { int v6; // r5 int v7; // r9 int v8; // r3 int v9; // r10 int v10; // lr int i; // r7 int v12; // t1 _BYTE *v13; // r2 char *v14; // r6 char v15; // t1 v6 = *((_DWORD *)result + 9); v7 = a5 - 1; v8 = *((_DWORD *)result + 28); if ( a5 - 1 >= 0 ) { v9 = 4 * a3 - (_DWORD)a4; do { if ( v6 > 0 ) { v10 = a2 - 4; for ( i = 0; i != v6; ++i ) { v12 = *(_DWORD *)(v10 + 4); v10 += 4; result = *(char **)((char *)a4 + v9 + v12); v13 = (_BYTE *)(*a4 + i); v14 = &result[v8]; if ( v8 ) { do { v15 = *result++; *v13 = v15; v13 += v6; } while ( result != v14 ); } } } --v7; ++a4; } while ( v7 != -1 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source