// // sub_100549748 from 0x100549748 to 0x100549850 (264 bytes) // // 2 xrefs: // > sub_1005496C0 @ 0x100549708 // > sub_100549994 @ 0x1005499ec // // 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_100549748(__int64 a1, const char *a2, int a3) { __int64 v4; // x0 char *v5; // x19 _BYTE *i; // x21 __darwin_ct_rune_t v7; // w0 size_t v8; // x21 __int64 v9; // x22 __int64 v10; // x9 time_t v12; // [xsp+18h] [xbp-28h] BYREF v4 = sub_1005628DC("%s:%d", a2, a3); v5 = (char *)v4; if ( !v4 ) return 0; for ( i = (_BYTE *)v4; ; ++i ) { v7 = (unsigned __int8)*i; if ( !*i || v7 == 58 ) break; *i = __tolower(v7); } v8 = strlen(v5) + 1; v9 = sub_10056C170(*(_QWORD *)(a1 + 80), v5, v8); if ( v9 ) { if ( *(_QWORD *)(a1 + 1224) != -1 ) { time(&v12); v10 = *(_QWORD *)(v9 + 8); if ( v10 ) { if ( v12 - v10 >= *(_QWORD *)(a1 + 1224) ) { sub_1005524A4(a1, "Hostname in DNS cache was stale, zapped\n"); sub_10056C0CC(*(_QWORD *)(a1 + 80), v5, v8); v9 = 0; } } } } off_10085DEB8(v5); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source