// // is_root_unc_name from 0x1801296a4 to 0x180129747 (163 bytes) // // 1 xrefs: // > is_usable_drive_or_unc_root @ 0x180129800 // // 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 is_root_unc_name(const wchar_t *const a1) { unsigned __int64 v1; // rax const wchar_t *v2; // rcx wchar_t v3; // ax __int16 *v4; // rcx __int16 v5; // ax v1 = -1; do ++v1; while ( a1[v1] ); if ( v1 < 5 || *a1 != 92 && *a1 != 47 ) return 0; if ( a1[1] != 92 && a1[1] != 47 ) return 0; if ( a1[2] == 92 ) return 0; if ( a1[2] == 47 ) return 0; v2 = a1 + 3; v3 = *v2; if ( !*v2 ) return 0; do { if ( v3 == 92 ) break; if ( v3 == 47 ) break; v3 = *++v2; } while ( *v2 ); if ( !v3 ) return 0; v4 = (__int16 *)(v2 + 1); v5 = *v4; if ( !*v4 ) return 0; do { if ( v5 == 92 ) break; if ( v5 == 47 ) break; v5 = *++v4; } while ( *v4 ); return !v5 || !v4[1]; }