// // ASN1_ENUMERATED_set_int64 from 0xe0aeec to 0xe0afc8 (220 bytes) // // 2 xrefs: // > ASN1_ENUMERATED_set @ 0xe0afc8 // > @ 0x4a760 // // 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 ASN1_ENUMERATED_set_int64(__int64 a1, __int64 a2) { __int64 v2; // x2 unsigned int v3; // w1 __int64 v5; // x1 __int64 v6; // x3 unsigned __int64 v7; // x4 char *v8; // x3 __int64 v9; // x3 unsigned __int64 v10; // x4 char *v11; // x3 char v12[8]; // [xsp+18h] [xbp+18h] BYREF *(_DWORD *)(a1 + 4) = 10; if ( a2 < 0 ) { v5 = -a2; if ( v5 > 255 ) { v9 = 0; v10 = v5; while ( 1 ) { v10 >>= 8; v2 = v9 + 1; if ( !v10 ) break; ++v9; } v11 = &v12[v9]; do { *v11-- = v5; v5 = (unsigned __int64)v5 >> 8; } while ( v11 >= v12 ); } else { v12[0] = v5; v2 = 1; } *(_DWORD *)(a1 + 4) = 266; } else { if ( a2 > 255 ) { v6 = 0; v7 = a2; while ( 1 ) { v7 >>= 8; v2 = v6 + 1; if ( !v7 ) break; ++v6; } v8 = &v12[v6]; do { *v8-- = a2; a2 = (unsigned __int64)a2 >> 8; } while ( v8 >= v12 ); } else { v12[0] = a2; v2 = 1; } *(_DWORD *)(a1 + 4) = 10; } v3 = 0; if ( v2 ) return (unsigned int)ASN1_STRING_set(a1, v12, v2); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source