// // sub_B712C4 from 0xb712c4 to 0xb71478 (436 bytes) // // 1 xrefs: // > sub_B9C364 @ 0xb9cb4c // // 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 // char *__fastcall sub_B712C4(_QWORD *a1, const char *a2, int a3) { __int64 v3; // x21 __int64 v7; // x22 char *v8; // x0 char *v9; // x20 int v10; // w0 char *v11; // x19 int v12; // t1 size_t v13; // x24 __int64 v14; // x19 __int64 v15; // x1 char *v16; // x23 time_t timer; // [xsp+48h] [xbp+48h] BYREF v3 = *a1; if ( *(_QWORD *)(*a1 + 112LL) ) { sub_B9EA70(*a1, 3, 2); v7 = *a1; v8 = (char *)sub_B8F880("%s:%d", a2, a3); v9 = v8; if ( v8 ) goto LABEL_3; LABEL_17: v16 = v8; goto LABEL_13; } v7 = *a1; v8 = (char *)sub_B8F880("%s:%d", a2, a3); v9 = v8; if ( !v8 ) goto LABEL_17; LABEL_3: v10 = (unsigned __int8)*v8; if ( v10 != 58 && v10 ) { v11 = v9; do { *v11 = tolower(v10); v12 = (unsigned __int8)*++v11; v10 = v12; } while ( v12 != 58 && v10 ); } v13 = strlen(v9) + 1; v14 = sub_B99AF8(*(_QWORD *)(v7 + 80), v9, v13); if ( v14 ) { if ( *(_QWORD *)(v7 + 1480) != -1 && (time(&timer), (v15 = *(_QWORD *)(v14 + 8)) != 0) && *(_QWORD *)(v7 + 1480) <= timer - v15 ) { v16 = nullptr; sub_B7B528(v7, "Hostname in DNS cache was stale, zapped\n"); sub_B99A3C(*(_QWORD *)(v7 + 80), v9, v13); off_1231008(v9); } else { v16 = (char *)v14; off_1231008(v9); ++*(_QWORD *)(v14 + 16); } } else { v16 = nullptr; off_1231008(v9); } LABEL_13: if ( *(_QWORD *)(v3 + 112) ) sub_B9EAD0(v3, 3); return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source