// // sub_BB25F8 from 0xbb25f8 to 0xbb2764 (364 bytes) // // 1 xrefs: // > sub_B9EB30 @ 0xbb3198 // // 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_BB25F8(unsigned __int8 *a1, _BYTE *a2, _BYTE *a3, unsigned __int8 **a4) { int v4; // w4 unsigned __int8 *v5; // x5 int v6; // t1 int v7; // w5 unsigned int v9; // w4 unsigned __int8 *v10; // x1 int v11; // w0 int v12; // w6 unsigned int v13; // t1 unsigned __int8 *v14; // x1 unsigned int v15; // w4 int v16; // w0 int v17; // w6 unsigned int v18; // t1 v4 = *a1; if ( v4 != 61 && *a1 ) { v5 = a1 + 255; do { *a2++ = v4; v6 = *++a1; v4 = v6; } while ( v6 != 61 && v4 && a1 != v5 ); } *a2 = 0; v7 = 0; if ( *a1 != 61 ) return 0; v9 = a1[1]; if ( v9 != 34 ) { v10 = a1 + 1; v11 = 1022; if ( v9 ) { while ( 1 ) { v12 = v11; if ( v9 == 13 ) goto LABEL_22; if ( v9 <= 0xD ) break; if ( v9 == 44 ) goto LABEL_22; if ( v9 != 92 || v7 ) goto LABEL_16; *a3 = 92; v12 = v11; ++a3; v7 = 1; LABEL_17: v13 = *++v10; v9 = v13; --v11; if ( !v13 || !v12 ) goto LABEL_19; } if ( v9 == 10 ) { v14 = v10 + 1; goto LABEL_23; } LABEL_16: *a3 = v9; v7 = 0; ++a3; goto LABEL_17; } LABEL_19: *a3 = 0; *a4 = v10; return 1; } v15 = a1[2]; v10 = a1 + 2; v16 = 1022; if ( !v15 ) goto LABEL_19; while ( v15 != 13 ) { if ( v15 > 0xD ) { if ( v15 == 34 ) { if ( !(_BYTE)v7 ) break; } else if ( v15 == 92 && !v7 ) { *a3 = 92; v17 = v16; ++a3; v7 = 1; goto LABEL_33; } } else if ( v15 == 10 ) { break; } *a3 = v15; v17 = v16; ++a3; v7 = 0; LABEL_33: v18 = *++v10; v15 = v18; if ( v18 ) { --v16; if ( v17 ) continue; } goto LABEL_19; } LABEL_22: v14 = v10 + 1; LABEL_23: *a3 = 0; *a4 = v14; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source