// // ASN1_BIT_STRING_check from 0x85ff94 to 0x86000c (120 bytes) // // 1 xrefs: // > @ 0x6984c // // 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 // bool __fastcall ASN1_BIT_STRING_check(int *a1, int a2, int a3) { int v3; // r12 int v4; // r4 int v5; // r12 int v6; // r3 int v7; // r0 int v8; // lr int v9; // t1 _BOOL4 result; // r0 if ( !a1 ) return 1; v3 = a1[2]; if ( !v3 ) return 1; v4 = *a1; if ( *a1 <= 0 ) return 1; v5 = v3 - 1; v6 = 0; do { v7 = 255; if ( a3 > v6 ) v7 = *(unsigned __int8 *)(a2 + v6); v9 = *(unsigned __int8 *)++v5; v8 = v9; if ( a3 > v6 ) v7 = (unsigned __int8)~(_BYTE)v7; ++v6; result = (v7 & v8) == 0; } while ( v6 != v4 && result ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source