// // sub_610044 from 0x610044 to 0x610132 (238 bytes) // // 1 xrefs: // > sub_630064 @ 0x63072a // // 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 // const char *__fastcall sub_610044(_DWORD *a1, const char *a2, int a3) { int v4; // r5 int v7; // r7 const char *v8; // r0 const char *v9; // r8 int v10; // r3 bool v11; // zf char *v12; // r2 int v13; // t1 bool v14; // zf size_t v15; // r9 int v16; // r4 int v17; // r1 char *v18; // r0 char *v20; // r0 char *v21; // r0 time_t timer; // [sp+4h] [bp-8h] BYREF v4 = *a1; v7 = *a1; if ( *(_DWORD *)(*a1 + 72) ) { sub_631E04(*a1, 3, 2); v7 = *a1; } v8 = (const char *)sub_626FC4("%s:%d", a2, a3); v9 = v8; if ( v8 ) { v10 = *(unsigned __int8 *)v8; v11 = v10 == 58; if ( v10 != 58 ) v11 = v10 == 0; if ( !v11 ) { v12 = (char *)v8; do { *v12 = *(_WORD *)(tolower_tab_ + 2 * (v10 + 1)); v13 = (unsigned __int8)*++v12; v10 = v13; v14 = v13 == 58; if ( v13 != 58 ) v14 = v10 == 0; } while ( !v14 ); } v15 = strlen(v8) + 1; v16 = sub_62E514(*(_DWORD *)(v7 + 56), v9, v15); if ( v16 ) { if ( *(_DWORD *)(v7 + 844) != -1 && (time(&timer), (v17 = *(_DWORD *)(v16 + 4)) != 0) && *(_DWORD *)(v7 + 844) <= timer - v17 ) { sub_61807C(v7, "Hostname in DNS cache was stale, zapped\n"); sub_62E4C0(*(_DWORD *)(v7 + 56), v9, v15); v20 = (char *)v9; v9 = nullptr; off_ABAEB0(v20); } else { v18 = (char *)v9; v9 = (const char *)v16; off_ABAEB0(v18); ++*(_DWORD *)(v16 + 8); } } else { v21 = (char *)v9; v9 = nullptr; off_ABAEB0(v21); } } if ( *(_DWORD *)(v4 + 72) ) sub_631E24(v4, 3); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source