// // NAME_CONSTRAINTS_check from 0x107d1cc to 0x107d2e0 (276 bytes) // // 2 xrefs: // > sub_106A0CC @ 0x106acfc // > @ 0x9ddb0 // // 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:08 +0000 // __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_107CE58(&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_107CE58(&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_107CE58(v9, a2); if ( (_DWORD)result ) return result; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source