// // SSL_set_SSL_CTX from 0xfc05e8 to 0xfc06d0 (232 bytes) // // 1 xrefs: // > @ 0x74fb0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:15:20 +0000 // __int64 __fastcall SSL_set_SSL_CTX(__int64 a1, __int64 a2) { __int64 result; // x0 __int64 v4; // x20 __int64 v5; // x21 unsigned int v6; // w2 __int64 v7; // x1 __int64 v8; // x3 __int64 v9; // x1 result = *(_QWORD *)(a1 + 440); v4 = a2; if ( result != a2 ) { if ( !a2 ) v4 = *(_QWORD *)(a1 + 720); result = ssl_cert_dup(*(__int64 **)(v4 + 288)); v5 = result; if ( result ) { ssl_cert_free(*(_QWORD *)(a1 + 328)); *(_QWORD *)(a1 + 328) = v5; v6 = *(_DWORD *)(a1 + 336); if ( v6 > 0x20 ) OPENSSL_die((int)"assertion failed: ssl->sid_ctx_length <= sizeof(ssl->sid_ctx)"); v7 = *(_QWORD *)(a1 + 440); if ( v7 && v6 == *(_DWORD *)(v7 + 324) && !memcmp((const void *)(a1 + 340), (const void *)(v7 + 328), v6) ) { *(_DWORD *)(a1 + 336) = *(_DWORD *)(v4 + 324); v8 = *(_QWORD *)(v4 + 336); *(_QWORD *)(a1 + 340) = *(_QWORD *)(v4 + 328); *(_QWORD *)(a1 + 348) = v8; v9 = *(_QWORD *)(v4 + 352); *(_QWORD *)(a1 + 356) = *(_QWORD *)(v4 + 344); *(_QWORD *)(a1 + 364) = v9; } SSL_CTX_up_ref(v4); SSL_CTX_free(*(_QWORD *)(a1 + 440)); *(_QWORD *)(a1 + 440) = v4; return v4; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source