// // SSL_ctrl from 0x797688 to 0x797a2c (932 bytes) // // 15 xrefs: // > sub_642BAC @ 0x64329c // > sub_643938 @ 0x6444f8 // > sub_643938 @ 0x644514 // > SSL_dane_enable @ 0x797b30 // > SSL_set_ct_validation_callback @ 0x79a934 // > SSL_dup @ 0x79af40 // > SSL_dup @ 0x79af54 // > SSL_use_certificate_chain_file @ 0x79cd34 // > SSL_use_certificate_chain_file @ 0x79cd60 // > sub_7BB204 @ 0x7bb224 // > sub_7BB24C @ 0x7bb26c // > sub_7BB294 @ 0x7bb2b4 // > sub_7BB2DC @ 0x7bb374 // > sub_7BB73C @ 0x7bb7d4 // > @ 0x54f7c // // 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_ctrl(int a1, int a2, unsigned int a3, _DWORD *a4) { int result; // r0 int v5; // r2 int v6; // r1 int v7; // r1 int v8; // r1 _BOOL4 v10; // r3 int v11; // r3 unsigned int v12; // r3 int v13; // r3 int v14; // r2 switch ( a2 ) { case 16: *(_DWORD *)(a1 + 116) = a4; return 1; case 33: v14 = a3 | *(_DWORD *)(a1 + 304); *(_DWORD *)(a1 + 304) = v14; return v14; case 40: return *(_DWORD *)(a1 + 560); case 41: v13 = *(_DWORD *)(a1 + 560); *(_DWORD *)(a1 + 560) = a3; return v13; case 50: return *(_DWORD *)(a1 + 316); case 51: v11 = *(_DWORD *)(a1 + 316); *(_DWORD *)(a1 + 316) = a3; return v11; case 52: if ( a3 - 512 > 0x3E00 ) return 0; v12 = *(_DWORD *)(a1 + 328); *(_DWORD *)(a1 + 332) = a3; if ( a3 >= v12 ) return 1; goto LABEL_27; case 76: result = *(_DWORD *)(a1 + 104); if ( result ) return *(_DWORD *)(result + 832); return result; case 78: v5 = *(_DWORD *)(a1 + 304) & ~a3; *(_DWORD *)(a1 + 304) = v5; return v5; case 99: v6 = *(_DWORD *)(a1 + 200); result = a3 | *(_DWORD *)(v6 + 16); *(_DWORD *)(v6 + 16) = result; return result; case 100: v7 = *(_DWORD *)(a1 + 200); result = *(_DWORD *)(v7 + 16) & ~a3; *(_DWORD *)(v7 + 16) = result; return result; case 110: if ( !a4 ) return 2; v8 = *(_DWORD *)(*(_DWORD *)(a1 + 104) + 592); if ( !v8 ) return 0; *a4 = v8; return *(_DWORD *)(*(_DWORD *)(a1 + 104) + 596); case 122: if ( !*(_DWORD *)(a1 + 240) ) return -1; if ( SSL_in_init(a1) || ossl_statem_get_in_handshake(a1) ) return -1; return *(_DWORD *)(*(_DWORD *)(a1 + 240) + 232) & 1; case 123: return ssl_set_version_bound(***(_DWORD ***)(a1 + 276), a3, a1 + 308); case 124: return ssl_set_version_bound(***(_DWORD ***)(a1 + 276), a3, a1 + 312); case 125: v10 = a3 == 0; if ( a3 > *(_DWORD *)(a1 + 332) ) v10 = 1; if ( v10 ) return 0; LABEL_27: *(_DWORD *)(a1 + 328) = a3; return 1; case 126: if ( a3 - 1 > 0x1F ) return 0; *(_DWORD *)(a1 + 336) = a3; if ( a3 == 1 ) return 1; *(_DWORD *)(a1 + 560) = 1; return 1; default: return (*(int (**)(void))(*(_DWORD *)(a1 + 4) + 68))(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source