// // sub_BAF450 from 0xbaf450 to 0xbaf674 (548 bytes) // // 2 xrefs: // > sub_BB678C @ 0xbb6cd0 // > sub_BB678C @ 0xbb732c // // 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 // bool __fastcall sub_BAF450(const char *a1, const char *a2) { _BOOL4 v2; // w20 char *v4; // x22 const char *v5; // x0 char *v6; // x21 size_t v7; // x0 size_t v8; // x0 char *v9; // x20 char *v10; // x0 char *v11; // x23 char *v12; // x24 _BYTE *v13; // x0 _BYTE buf[16]; // [xsp+50h] [xbp+50h] BYREF _BYTE v16[24]; // [xsp+60h] [xbp+60h] BYREF if ( a1 ) { if ( *a1 ) { if ( a2 ) { if ( *a2 ) { v4 = off_1231018(a1); if ( v4 ) { v5 = off_1231018(a2); v6 = (char *)v5; if ( !v5 ) { v2 = 0; goto LABEL_17; } v7 = strlen(v5) - 1; if ( v6[v7] == 46 ) v6[v7] = 0; v8 = strlen(v4) - 1; if ( v4[v8] == 46 ) v4[v8] = 0; v9 = strchr(v4, 42); if ( v9 ) { if ( inet_pton(2, v6, buf) > 0 || inet_pton(10, v6, v16) > 0 ) { LABEL_15: v2 = 0; LABEL_16: off_1231008(v6); LABEL_17: off_1231008(v4); return v2; } v10 = strchr(v4, 46); v11 = v10; if ( v10 && strchr(v10 + 1, 46) && v9 <= v11 && !(unsigned int)sub_B94674(v4, "xn--", 4) ) { v12 = strchr(v6, 46); if ( v12 ) { if ( sub_B944E4(v11, v12) && v12 - v6 >= v11 - v4 ) { if ( (unsigned int)sub_B94674(v4, v6, v9 - v4) ) { v13 = v9 + 1; v2 = 1; if ( (unsigned int)sub_B94674(v13, &v12[-(v11 - v13)], v11 - v13) ) goto LABEL_16; } } } goto LABEL_15; } } v2 = sub_B944E4(v4, v6); goto LABEL_16; } } } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source