// // X509V3_get_d2i from 0x107c578 to 0x107c6b8 (320 bytes) // // 9 xrefs: // > OCSP_REQUEST_get1_ext_d2i @ 0x1042038 // > OCSP_ONEREQ_get1_ext_d2i @ 0x1042098 // > OCSP_BASICRESP_get1_ext_d2i @ 0x10420f8 // > OCSP_SINGLERESP_get1_ext_d2i @ 0x1042158 // > X509_CRL_get_ext_d2i @ 0x106549c // > X509_get_ext_d2i @ 0x106551c // > X509_REVOKED_get_ext_d2i @ 0x106557c // > X509_REQ_get1_email @ 0x10828ac // > @ 0xbff68 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:17:07 +0000 // __int64 __fastcall X509V3_get_d2i(unsigned int *a1, int a2, _DWORD *a3, _DWORD *a4) { _DWORD *v7; // x21 int v8; // w19 __int64 v9; // x23 __int64 object; // x0 int v11; // w19 __int64 v12; // x0 v7 = a4; if ( !a1 ) { if ( !a4 ) { LABEL_21: if ( a3 ) *a3 = -1; return 0; } LABEL_20: *v7 = -1; goto LABEL_21; } if ( a4 ) { v8 = *a4 + 1; if ( v8 < 0 ) v8 = 0; while ( v8 < (int)OPENSSL_sk_num(a1) ) { v9 = OPENSSL_sk_value((__int64)a1, v8); object = X509_EXTENSION_get_object(v9); if ( (unsigned int)OBJ_obj2nid(object) == a2 ) { *v7 = v8; if ( !v9 ) goto LABEL_20; if ( a3 ) goto LABEL_17; return X509V3_EXT_d2i(v9); } ++v8; } goto LABEL_20; } v11 = 0; LABEL_9: v9 = (__int64)v7; while ( v11 < (int)OPENSSL_sk_num(a1) ) { v7 = (_DWORD *)OPENSSL_sk_value((__int64)a1, v11); v12 = X509_EXTENSION_get_object((__int64)v7); ++v11; if ( (unsigned int)OBJ_obj2nid(v12) == a2 ) { if ( !v9 ) goto LABEL_9; if ( a3 ) { *a3 = -2; return 0; } return 0; } } if ( !v9 ) goto LABEL_21; if ( a3 ) LABEL_17: *a3 = X509_EXTENSION_get_critical(v9); return X509V3_EXT_d2i(v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source