// // SSL_CTX_add_client_custom_ext from 0x7ad538 to 0x7ad6a0 (360 bytes) // // 1 xrefs: // > @ 0x5d7ec // // 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 SSL_CTX_add_client_custom_ext(int a1, unsigned int a2, int a3, int a4, int a5, int a6, int a7) { _BOOL4 v11; // r3 int v12; // r7 int v13; // r2 unsigned __int16 *v14; // r0 int v15; // r1 int v16; // r12 int v17; // t1 int v18; // r1 int v19; // r0 int v20; // r9 int v21; // r8 _DWORD *v22; // r10 int v23; // r3 if ( a2 == 18 && SSL_CTX_ct_is_enabled(a1) ) return 0; v11 = a3 == 0; if ( !a4 ) v11 = 0; v12 = *(_DWORD *)(a1 + 176); if ( v11 ) return 0; if ( SSL_extension_supported(a2) ) { if ( a2 != 18 ) return 0; } else if ( a2 >= 0x10000 ) { return 0; } v13 = *(_DWORD *)(v12 + 212); v14 = *(unsigned __int16 **)(v12 + 208); if ( v13 ) { if ( a2 != *v14 ) { v15 = *(_DWORD *)(v12 + 208); v16 = 0; while ( ++v16 != v13 ) { v17 = *(unsigned __int16 *)(v15 + 28); v15 += 28; if ( a2 == v17 ) return 0; } v18 = 28 * (v16 + 1); goto LABEL_14; } return 0; } v18 = 28; LABEL_14: v19 = CRYPTO_realloc(v14, v18, "ssl/t1_ext.c", 182); v20 = v19; if ( v19 ) { v21 = *(_DWORD *)(v12 + 212); *(_DWORD *)(v12 + 208) = v19; v21 *= 28; v22 = (_DWORD *)(v19 + v21); memset((void *)(v19 + v21), 0, 0x1Cu); v23 = *(_DWORD *)(v12 + 212); v22[5] = a6; v22[2] = a3; v22[3] = a4; *(_WORD *)(v20 + v21) = a2; v22[4] = a5; v22[6] = a7; *(_DWORD *)(v12 + 212) = v23 + 1; return 1; } else { CRYPTO_free(*(_DWORD *)(v12 + 208), "ssl/t1_ext.c", 185); *(_DWORD *)(v12 + 208) = 0; *(_DWORD *)(v12 + 212) = 0; return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source