// // sub_1004D8ED8 from 0x1004d8ed8 to 0x1004d8f70 (152 bytes) // // 0 xrefs: // // 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_1004D8ED8(__int64 a1, const char **a2) { _BYTE *v3; // x8 int v4; // w9 unsigned __int8 *v5; // x8 int v6; // t1 unsigned __int8 *v7; // x20 unsigned int v8; // w0 const char *v10; // x8 v3 = *(_BYTE **)(a1 + 8); v4 = (unsigned __int8)*v3; if ( *v3 ) { v5 = v3 + 1; while ( (unsigned int)(v4 - 127) > 0xFFFFFFA0 ) { v6 = *v5++; v4 = v6; if ( !v6 ) goto LABEL_5; } if ( a2 ) { v10 = "MIME type string must contain only printable ASCII characters (0x20-0x7e)"; LABEL_13: *a2 = v10; return 0; } } else { LABEL_5: v7 = *(unsigned __int8 **)(a1 + 16); if ( !*v7 ) return 1; while ( 1 ) { v8 = sub_1004D89D0(v7); if ( !v8 ) break; v7 += v8; if ( !*v7 ) return 1; } if ( a2 ) { v10 = "description string must be valid UTF-8"; goto LABEL_13; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source