// // BIO_accept from 0x7cf0e8 to 0x7cf284 (412 bytes) // // 1 xrefs: // > @ 0x5f67c // // 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 // int __fastcall BIO_accept(int a1, char **a2) { int v3; // r7 const char *v4; // r6 int v5; // r0 char *v6; // r3 bool v7; // zf const char *v8; // r5 size_t v10; // r8 size_t v11; // r0 char *v12; // r0 _DWORD *v13; // r0 unsigned __int16 v14[56]; // [sp+8h] [bp-70h] BYREF v3 = BIO_accept_ex(a1, v14, 0); if ( v3 != -1 ) { if ( a2 ) { v4 = (const char *)BIO_ADDR_hostname_string(v14, 1); v5 = BIO_ADDR_service_string(v14, 1); v7 = v5 == 0; if ( v5 ) v7 = v4 == nullptr; if ( v7 ) v6 = nullptr; v8 = (const char *)v5; if ( v7 ) *a2 = v6; if ( v7 || (v10 = strlen(v4), v11 = strlen(v8), v12 = (char *)CRYPTO_zalloc(v10 + v11 + 2, "crypto/bio/b_sock.c", 267), (*a2 = v12) == nullptr) ) { ERR_put_error(32, 101, 65, "crypto/bio/b_sock.c", 272); BIO_closesocket(v3); v3 = -1; } else { strcpy(v12, v4); strcat(*a2, ":"); strcat(*a2, v8); } CRYPTO_free(v4, "crypto/bio/b_sock.c", 280); CRYPTO_free(v8, "crypto/bio/b_sock.c", 281); } return v3; } if ( BIO_sock_should_retry() ) return -2; v13 = (_DWORD *)_errno(); ERR_put_error(2, 8, *v13, "crypto/bio/b_sock.c", 258); ERR_put_error(32, 101, 100, "crypto/bio/b_sock.c", 259); return -1; }