// // BIO_get_host_ip from 0xd74bbc to 0xd74cd0 (276 bytes) // // 1 xrefs: // > @ 0xc4d58 // // 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 BIO_get_host_ip(char *a1, void *a2) { unsigned int v4; // w19 const char *v6; // x0 const char *v7; // x0 struct addrinfo *v8; // [xsp+30h] [xbp+30h] BYREF size_t v9; // [xsp+38h] [xbp+38h] BYREF v8 = nullptr; v4 = 0; if ( (unsigned int)BIO_sock_init() == 1 ) { v4 = BIO_lookup(a1, nullptr, 0, 2, 1, &v8); if ( v4 ) { if ( (unsigned int)BIO_ADDRINFO_family((__int64)v8) == 2 ) { v6 = (const char *)BIO_ADDRINFO_address((__int64)v8); BIO_ADDR_rawaddress(v6, nullptr, &v9); if ( v9 != 4 ) OPENSSL_die((int)"assertion failed: l == 4"); v4 = 1; v7 = (const char *)BIO_ADDRINFO_address((__int64)v8); BIO_ADDR_rawaddress(v7, a2, &v9); } else { v4 = 0; ERR_put_error(32, 106, 107, "crypto/bio/b_sock.c", 45); } BIO_ADDRINFO_free(v8); } else { ERR_add_error_data(2, "host=", a1); } } return v4; }