// // NAME_CONSTRAINTS_check from 0xdfee8c to 0xdfefa0 (276 bytes) // // 2 xrefs: // > sub_DEBD8C @ 0xdec9bc // > @ 0x75c18 // // 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 NAME_CONSTRAINTS_check(__int64 a1, unsigned int **a2) { unsigned int **subject_name; // x22 __int64 result; // x0 int index_by_NID; // w19 __int64 entry; // x0 int v8; // w19 _DWORD *v9; // x0 bool v10; // cc int v11; // w1 int v12; // [xsp+40h] [xbp+40h] BYREF __int64 data; // [xsp+48h] [xbp+48h] subject_name = (unsigned int **)X509_get_subject_name(a1); if ( (int)X509_NAME_entry_count(subject_name) > 0 ) { data = (__int64)subject_name; v12 = 4; result = sub_DFEB18(&v12, a2); if ( (_DWORD)result ) return result; index_by_NID = -1; v12 = 1; while ( 1 ) { index_by_NID = X509_NAME_get_index_by_NID(subject_name, 0x30u, index_by_NID); if ( index_by_NID == -1 ) break; entry = X509_NAME_get_entry((__int64 *)subject_name, index_by_NID); data = X509_NAME_ENTRY_get_data(entry); if ( *(_DWORD *)(data + 4) != 22 ) return 53; result = sub_DFEB18(&v12, a2); if ( (_DWORD)result ) return result; } } v8 = 0; while ( 1 ) { v10 = v8 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 256)); v11 = v8++; if ( !v10 ) break; v9 = (_DWORD *)OPENSSL_sk_value(*(_QWORD *)(a1 + 256), v11); result = sub_DFEB18(v9, a2); if ( (_DWORD)result ) return result; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source