// // ASN1_INTEGER_set_uint64 from 0x8624ac to 0x862550 (164 bytes) // // 4 xrefs: // > PKCS5_pbe2_set_scrypt @ 0x8c75fc // > PKCS5_pbe2_set_scrypt @ 0x8c7610 // > PKCS5_pbe2_set_scrypt @ 0x8c7624 // > @ 0x698bc // // 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 // const char *__fastcall ASN1_INTEGER_set_uint64(signed int *a1, unsigned __int64 a2) { int v3; // r12 unsigned __int64 v4; // r4 int v5; // r6 char *v7; // r12 char v8[8]; // [sp+0h] [bp-8h] BYREF if ( a2 > 0xFF ) v3 = 0; a1[1] = 2; if ( a2 <= 0xFF ) { v5 = 1; v8[0] = a2; return ASN1_STRING_set(a1, v8, v5); } v4 = a2; while ( 1 ) { v4 >>= 8; v5 = v3 + 1; if ( !v4 ) break; ++v3; } v7 = &v8[v3]; do { *v7-- = a2; a2 >>= 8; } while ( v7 >= v8 ); if ( v5 ) return ASN1_STRING_set(a1, v8, v5); return nullptr; }