// // sub_6401F4 from 0x6401f4 to 0x6402ce (218 bytes) // // 1 xrefs: // > sub_6408E4 @ 0x6409a8 // // 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 // int __fastcall sub_6401F4(unsigned __int8 *a1, _BYTE *a2, _BYTE *a3, unsigned __int8 **a4) { int v4; // r4 bool v5; // zf unsigned __int8 *v6; // r5 unsigned __int8 *v7; // r6 int v8; // t1 bool v9; // zf int v10; // r5 unsigned int v12; // r4 unsigned __int8 *v13; // r1 int v14; // r0 int v15; // r6 unsigned int v16; // t1 unsigned __int8 *v17; // r1 unsigned int v18; // r4 int v19; // r0 int v20; // r6 unsigned int v21; // t1 v4 = *a1; v5 = v4 == 61; if ( v4 != 61 ) v5 = v4 == 0; if ( !v5 ) { v6 = a1 + 1; v7 = a1 + 256; do { *a2++ = v4; a1 = v6; v8 = *v6++; v4 = v8; v9 = v8 == 61; if ( v8 != 61 ) v9 = v4 == 0; } while ( !v9 && v6 != v7 ); } v10 = 0; *a2 = 0; if ( *a1 != 61 ) return 0; v12 = a1[1]; if ( v12 != 34 ) { v13 = a1 + 1; v14 = 1022; if ( v12 ) { while ( 1 ) { v15 = v14; if ( v12 == 13 ) goto LABEL_24; if ( v12 <= 0xD ) break; if ( v12 == 44 ) goto LABEL_24; if ( v12 != 92 || v10 ) goto LABEL_19; *a3 = 92; v15 = v14; ++a3; v10 = 1; LABEL_20: v16 = *++v13; v12 = v16; --v14; if ( !v16 || !v15 ) goto LABEL_22; } if ( v12 == 10 ) { v17 = v13 + 1; goto LABEL_25; } LABEL_19: *a3++ = v12; v10 = 0; goto LABEL_20; } LABEL_22: *a3 = 0; *a4 = v13; return 1; } v18 = a1[2]; v13 = a1 + 2; v19 = 1022; if ( !v18 ) goto LABEL_22; while ( v18 != 13 ) { if ( v18 > 0xD ) { if ( v18 == 34 ) { if ( !v10 ) break; } else if ( v18 == 92 && !v10 ) { *a3++ = 92; v20 = v19; v10 = 1; goto LABEL_35; } } else if ( v18 == 10 ) { break; } *a3 = v18; v20 = v19; ++a3; v10 = 0; LABEL_35: v21 = *++v13; v18 = v21; if ( v21 ) { --v19; if ( v20 ) continue; } goto LABEL_22; } LABEL_24: v17 = v13 + 1; LABEL_25: *a3 = 0; *a4 = v17; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source