// // sub_B4E620 from 0xb4e620 to 0xb4e72c (268 bytes) // // 2 xrefs: // > sub_B57FA0 @ 0xb589f0 // > sub_B57FA0 @ 0xb58f64 // // 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 __int8 *__fastcall sub_B4E620(unsigned __int8 *a1, unsigned __int8 a2) { unsigned __int8 *v2; // x19 int v3; // w21 __int64 v4; // x23 int v5; // w0 char *v6; // x1 unsigned __int8 v7; // w2 __int64 v9; // x23 char *v10; // x0 unsigned __int8 *v11; // x23 v2 = a1; v3 = a2; v4 = 0; v5 = *a1; v6 = nullptr; LABEL_2: while ( 1 ) { v7 = byte_F1EC70[v5]; if ( (v7 & 4) != 0 ) break; LABEL_7: v5 = *++v2; } while ( 1 ) { if ( v3 == v5 ) { if ( v6 ) { v9 = -v4; v10 = &v6[v9]; v11 = &v2[v9]; memmove(v10, v6, v2 - (unsigned __int8 *)v6); } else { v11 = v2; } *v11 = 0; return v2 + 1; } if ( (v7 & 8) == 0 ) break; if ( v5 == 13 ) { v5 = v2[1]; *v2 = 32; if ( v5 == 10 ) { if ( v6 ) memmove(&v6[-v4], v6, v2 + 1 - (unsigned __int8 *)v6); v6 = (char *)(v2 + 2); v5 = v2[2]; ++v4; v2 += 2; } else { ++v2; } goto LABEL_2; } *v2++ = 32; v5 = *v2; v7 = byte_F1EC70[*v2]; if ( (v7 & 4) == 0 ) goto LABEL_7; } if ( v5 ) goto LABEL_7; return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source