// // X509_check_ca from 0x85b238 to 0x85b2e8 (176 bytes) // // 2 xrefs: // > sub_843DE0 @ 0x8443cc // > @ 0x6759c // // 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 X509_check_ca(int a1) { unsigned int v1; // r3 int result; // r0 v1 = *(_DWORD *)(a1 + 112); if ( (v1 & 0x100) == 0 ) { CRYPTO_THREAD_write_lock(*(pthread_rwlock_t **)(a1 + 184)); if ( (*(_DWORD *)(a1 + 112) & 0x100) == 0 ) sub_85AB54(a1); CRYPTO_THREAD_unlock(*(pthread_rwlock_t **)(a1 + 184)); v1 = *(_DWORD *)(a1 + 112); } result = v1 & 2; if ( (v1 & 2) != 0 && (*(_DWORD *)(a1 + 116) & 4) == 0 ) return 0; if ( (v1 & 1) != 0 ) return (v1 >> 4) & 1; if ( (v1 & 0x2040) == 0x2040 ) return 3; if ( (v1 & 2) != 0 ) return 4; if ( (v1 & 8) != 0 ) { result = *(_DWORD *)(a1 + 124) & 7; if ( result ) return 5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source