// // BIO_connect from 0xd752e4 to 0xd754b8 (468 bytes) // // 4 xrefs: // > sub_D773BC @ 0xd77530 // > sub_D77C14 @ 0xd77dc8 // > sub_D780A0 @ 0xd78254 // > @ 0xa4d78 // // 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_connect(int a1, unsigned __int16 *a2, char a3) { unsigned int should_retry; // w20 struct sockaddr *v7; // x0 socklen_t v8; // w0 unsigned int *v10; // x0 unsigned int *v11; // x0 unsigned int *v12; // x0 struct sockaddr *v13; // [xsp+38h] [xbp+38h] int v14; // [xsp+4Ch] [xbp+4Ch] BYREF v14 = 1; if ( a1 != -1 ) { if ( BIO_socket_nbio(a1) ) { if ( (a3 & 4) != 0 && setsockopt(a1, 1, 9, &v14, 4u) ) { v10 = (unsigned int *)__errno(); should_retry = 0; ERR_put_error(2, 14, *v10, "crypto/bio/b_sock2.c", 91); ERR_put_error(32, 138, 137, "crypto/bio/b_sock2.c", 92); return should_retry; } if ( (a3 & 0x10) != 0 && setsockopt(a1, 6, 1, &v14, 4u) ) { v11 = (unsigned int *)__errno(); should_retry = 0; ERR_put_error(2, 14, *v11, "crypto/bio/b_sock2.c", 99); ERR_put_error(32, 138, 138, "crypto/bio/b_sock2.c", 100); return should_retry; } should_retry = 1; BIO_ADDR_sockaddr(); v13 = v7; v8 = BIO_ADDR_sockaddr_size(a2); if ( connect(a1, v13, v8) != -1 ) return should_retry; should_retry = BIO_sock_should_retry(); if ( !should_retry ) { v12 = (unsigned int *)__errno(); ERR_put_error(2, 2, *v12, "crypto/bio/b_sock2.c", 108); ERR_put_error(32, 138, 103, "crypto/bio/b_sock2.c", 109); return should_retry; } } return 0; } ERR_put_error(32, 138, 135, "crypto/bio/b_sock2.c", 82); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source