// // sub_1005D821C from 0x1005d821c to 0x1005d8410 (500 bytes) // // 1 xrefs: // > sub_1005D818C @ 0x1005d81a8 // // 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 sub_1005D821C(char *__s1, int a2, int *a3) { size_t v5; // x21 int v7; // w8 if ( !__s1 ) return 0; v5 = a2; if ( !strncmp(__s1, "ALL", a2) ) { v7 = *a3 | 0xFFFF; } else if ( !strncmp(__s1, "RSA", v5) ) { v7 = *a3 | 1; } else if ( !strncmp(__s1, "DSA", v5) ) { v7 = *a3 | 2; } else if ( !strncmp(__s1, "ECDH", v5) ) { v7 = *a3 | 0x10; } else if ( !strncmp(__s1, "ECDSA", v5) ) { v7 = *a3 | 0x20; } else if ( !strncmp(__s1, "DH", v5) ) { v7 = *a3 | 4; } else if ( !strncmp(__s1, "RAND", v5) ) { v7 = *a3 | 8; } else if ( !strncmp(__s1, "CIPHERS", v5) ) { v7 = *a3 | 0x40; } else if ( !strncmp(__s1, "DIGESTS", v5) ) { v7 = *a3 | 0x80; } else if ( !strncmp(__s1, "PKEY", v5) ) { v7 = *a3 | 0x600; } else if ( !strncmp(__s1, "PKEY_CRYPTO", v5) ) { v7 = *a3 | 0x200; } else { if ( strncmp(__s1, "PKEY_ASN1", v5) ) return 0; v7 = *a3 | 0x400; } *a3 = v7; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source