//
// tls_construct_cert_status from 0x7accdc to 0x7acd98 (188 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0x7ace28
// > ??> @ 0x5d78c
//
// 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 tls_construct_cert_status(int a1)
{
int v1; // r5
int v3; // r3
int v4; // r1
_BYTE *v5; // r3
v1 = *(_DWORD *)(a1 + 400) + 4;
if ( BUF_MEM_grow(*(_DWORD *)(a1 + 88), v1 + *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 100) + 56)) )
{
v3 = *(_DWORD *)(*(_DWORD *)(a1 + 88) + 4);
v4 = *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 100) + 56);
*(_BYTE *)(v3 + v4) = *(_DWORD *)(a1 + 356);
v5 = (_BYTE *)(v3 + v4);
v5[1] = BYTE2(*(_DWORD *)(a1 + 400));
v5[2] = BYTE1(*(_DWORD *)(a1 + 400));
v5[3] = *(_DWORD *)(a1 + 400);
memcpy(v5 + 4, *(const void **)(a1 + 396), *(_DWORD *)(a1 + 400));
if ( (*(int (__fastcall **)(int, int, int))(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 100) + 60))(a1, 22, v1) )
return 1;
}
ossl_statem_set_error(a1);
return 0;
}