//
// dtls_construct_hello_verify_request from 0x7a87a8 to 0x7a8868 (192 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0x7ace0c
// > ??> @ 0x5d4fc
//
// 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 dtls_construct_hello_verify_request(_DWORD *a1)
{
int (__fastcall *v1)(_DWORD *, _DWORD, int); // r3
int v3; // r5
_DWORD *v4; // r1
char *v6; // r5
v1 = *(int (__fastcall **)(_DWORD *, _DWORD, int))(a1[69] + 120);
v3 = *(_DWORD *)(a1[22] + 4);
if ( v1 && v1(a1, a1[27], a1[27] + 256) && (v4 = (_DWORD *)a1[27], v4[64] <= 0xFFu) )
{
v6 = dtls_raw_hello_verify_request((_BYTE *)(v3 + 12), v4, (unsigned __int8)v4[64]);
dtls1_set_message_header((int)a1, 3, (int)v6, 0, (int)v6);
a1[24] = v6 + 12;
a1[25] = 0;
return 1;
}
else
{
ERR_put_error(20, 385, 400, "ssl/statem/statem_srvr.c", 882);
ossl_statem_set_error((int)a1);
return 0;
}
}