// // sub_C6EA8 from 0xc6ea8 to 0xc6fea (322 bytes) // // 2 xrefs: // > sub_C6E34 @ 0xc6e5e // > sub_C8990 @ 0xc89b2 // // 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 // unsigned int __fastcall sub_C6EA8(int a1, int a2) { unsigned int v4; // r6 int v5; // r0 int v6; // r8 int v7; // r1 int v8; // r0 unsigned int v9; // r6 int i; // r11 _DWORD *v11; // r1 int v12; // r0 int v13; // r0 int v15; // [sp+4h] [bp-2Ch] int v16; // [sp+Ch] [bp-24h] BYREF int v17; // [sp+10h] [bp-20h] BYREF v4 = 0; LABEL_2: v5 = 1; while ( 1 ) { v6 = 0; v15 = v5; while ( 1 ) { if ( v4 > 3 ) { v4 = 1; **(_DWORD **)a2 = 1; return v4; } v7 = *(_DWORD *)(a2 + 4); if ( *(_DWORD *)(v7 + 3520) ) { v8 = *(unsigned __int8 *)(v7 + 3582); v16 = v8; *(_DWORD *)(v7 + 3520) = 0; } else { if ( !sub_C460A(a1, *(_DWORD *)(v7 + 60), &v16, 8u) ) return 0; v8 = v16; } if ( v8 == byte_416A4[v4] ) { ++v4; goto LABEL_2; } if ( v8 != byte_41770[v6] ) break; ++v6; v4 = 0; if ( v6 == 3 ) { if ( !sub_C460A(a1, *(_DWORD *)(*(_DWORD *)(a2 + 4) + 60), &v17, 0x18u) ) return 0; v9 = 0; for ( i = 4; ; --i ) { v11 = *(_DWORD **)(*(_DWORD *)(a2 + 4) + 60); if ( !i ) break; if ( !sub_C460A(a1, (int)v11, &v17, 8u) ) return 0; v9 = v17 & 0x7F | (v9 << 7); } v12 = sub_C48EA(a1, v11, v9); v4 = 0; if ( !v12 ) return v4; } } if ( v8 == 255 ) break; LABEL_24: v4 = 0; v5 = 0; if ( v15 ) { v4 = 0; sub_C8EEE(a2, 0); v5 = 0; } } *(_BYTE *)(*(_DWORD *)(a2 + 4) + 3580) = -1; if ( !sub_C460A(a1, *(_DWORD *)(*(_DWORD *)(a2 + 4) + 60), &v16, 8u) ) return 0; if ( v16 == 255 ) { v13 = *(_DWORD *)(a2 + 4); *(_DWORD *)(v13 + 3520) = 1; *(_BYTE *)(v13 + 3582) = -1; goto LABEL_24; } if ( (v16 & 0xFFFFFFFC) != 0xF8 ) goto LABEL_24; v4 = 1; *(_BYTE *)(*(_DWORD *)(a2 + 4) + 3581) = v16; **(_DWORD **)a2 = 3; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source