// // SSL_SESSION_new from 0xd45f14 to 0xd46010 (252 bytes) // // 4 xrefs: // > ssl_get_new_session @ 0xd4637c // > d2i_SSL_SESSION @ 0xd5ff74 // > d2i_SSL_SESSION @ 0xd5ff98 // > @ 0x45180 // // 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 SSL_SESSION_new() { __int64 v0; // x0 __int64 v1; // x19 __int64 v2; // x0 __int64 v3; // x20 v0 = CRYPTO_zalloc(352, "ssl/ssl_sess.c", 84); v1 = v0; if ( v0 ) { *(_QWORD *)(v0 + 176) = 1; *(_DWORD *)(v0 + 184) = 1; *(_QWORD *)(v0 + 192) = 304; *(_QWORD *)(v0 + 200) = time(nullptr); v2 = CRYPTO_THREAD_lock_new(); *(_QWORD *)(v1 + 344) = v2; if ( v2 ) { v3 = v1; if ( !(unsigned int)CRYPTO_new_ex_data(2, v1, v1 + 240) ) { v3 = 0; CRYPTO_THREAD_lock_free(*(_QWORD *)(v1 + 344)); CRYPTO_free(v1, "ssl/ssl_sess.c", 103); } } else { v3 = 0; ERR_put_error(20, 189, 65, "ssl/ssl_sess.c", 96); CRYPTO_free(v1, "ssl/ssl_sess.c", 97); } } else { v3 = 0; ERR_put_error(20, 189, 65, "ssl/ssl_sess.c", 86); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source