// // sub_A2CC8 from 0xa2cc8 to 0xa2e20 (344 bytes) // // 2 xrefs: // > sub_A23E4 @ 0xa24f8 // > sub_A23E4 @ 0xa269c // // 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_A2CC8(int *a1, _WORD *a2, int a3, unsigned int a4, int a5, int a6) { __int64 v8; // x24 _DWORD *v9; // x10 int v10; // w8 unsigned int v11; // w23 int v12; // w19 __int64 v13; // x1 __int64 v14; // x25 unsigned __int64 v15; // x26 _DWORD *v16; // x28 unsigned int v17; // w0 int v18; // w8 int v19; // w8 unsigned int v20; // w0 int v21; // w8 __int64 v23; // [xsp+0h] [xbp-60h] int v24; // [xsp+8h] [xbp-58h] int v25; // [xsp+Ch] [xbp-54h] v24 = a5 - 1; v8 = a6; v9 = &unk_4DAB8; v23 = a4; if ( !a3 ) return 0; while ( 1 ) { v10 = *a1; v11 = (unsigned __int8)BYTE2(*a1); if ( v11 > 0x58 ) break; v12 = v24; v13 = (unsigned int)(__int16)v10; *a2 = v10; a2 += v8; v14 = 4; v25 = a3 - 1; if ( v24 ) { do { v15 = *((unsigned __int8 *)a1 + v14); v16 = v9; v17 = sub_A2E20(v15 & 0xF, v13, (unsigned int)asc_4DA04[v11]); v18 = v16[v15 & 0xF]; v13 = v17; *a2 = v17; v19 = v18 + v11; if ( v19 >= 88 ) v19 = 88; v11 = v19 & ~(v19 >> 31); a2 += v8; if ( v12 == 1 ) { v9 = v16; v12 = 0; } else { v20 = sub_A2E20((unsigned int)(v15 >> 4), v17, (unsigned int)asc_4DA04[v11]); v9 = v16; v13 = v20; v21 = v16[v15 >> 4] + v11; if ( v21 >= 88 ) v21 = 88; *a2 = v20; a2 += v8; v11 = v21 & ~(v21 >> 31); v12 -= 2; } ++v14; } while ( v12 ); } a3 = v25; a1 = (int *)((char *)a1 + v23); if ( !v25 ) return 0; } return 13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source