//
// X509V3_get_value_int from 0x85d43c to 0x85d4ac (112 bytes)
//
// 6 xrefs:
// > sub_852A80 @ 0x852c4c
// > sub_858480 @ 0x8587c8
// > sub_8592E4 @ 0x85936c
// > sub_8592E4 @ 0x859394
// > sub_8C4060 @ 0x8c40e8
// > ??> @ 0x68b1c
//
// 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 X509V3_get_value_int(int a1, int *a2)
{
int v4; // r5
v4 = s2i_ASN1_INTEGER(0, *(unsigned __int8 **)(a1 + 8));
if ( v4 )
{
*a2 = v4;
return 1;
}
else
{
ERR_add_error_data(6, "section:", *(_DWORD *)a1, ",name:", *(_DWORD *)(a1 + 4), ",value:", *(_DWORD *)(a1 + 8));
return 0;
}
}