//
// OBJ_create from 0xdc2b10 to 0xdc2bf4 (228 bytes)
//
// 4 xrefs:
// > OBJ_create_objects @ 0xdc2cc8
// > sub_E0E27C @ 0xe0e324
// > sub_E0E27C @ 0xe0e3e8
// > ??> @ 0x7e870
//
// 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
//
__int64 __fastcall OBJ_create(char *a1, __int64 a2, __int64 a3)
{
int v6; // w2
int v7; // w3
int v8; // w4
int v9; // w5
int v10; // w6
int v11; // w7
unsigned int v12; // w19
char **v14; // x22
int v15; // w0
unsigned int v16; // w0
char vars0; // [xsp+0h] [xbp+0h]
if ( (unsigned int)OBJ_sn2nid(a2) || (v12 = (unsigned int)OBJ_ln2nid(a3)) != 0 )
{
ERR_put_error(8, 100, 102, (__int64)"crypto/objects/obj_dat.c", 689);
return 0;
}
else
{
v14 = OBJ_txt2obj(a1, 1, v6, v7, v8, v9, v10, v11, vars0);
if ( (unsigned int)OBJ_obj2nid((__int64)v14) )
{
ERR_put_error(8, 100, 102, (__int64)"crypto/objects/obj_dat.c", 698);
}
else
{
v15 = OBJ_new_nid(1);
*v14 = (char *)a2;
*((_DWORD *)v14 + 4) = v15;
v14[1] = (char *)a3;
v16 = OBJ_add_object((__int64)v14);
*v14 = nullptr;
v12 = v16;
v14[1] = nullptr;
}
ASN1_OBJECT_free((__int64)v14);
return v12;
}
}