// // sub_1005FCDCC from 0x1005fcdcc to 0x1005fcef0 (292 bytes) // // 3 xrefs: // > sub_1005FDE38 @ 0x1005fdeac // > sub_1005FE014 @ 0x1005fe1f8 // > sub_1005FE964 @ 0x1005feae4 // // 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 // size_t __fastcall sub_1005FCDCC(void *a1, unsigned int a2, int a3, char *__s) { signed int v8; // w0 size_t v9; // x24 char *v10; // x0 char *v11; // x22 if ( __s ) { v8 = strlen(__s); if ( v8 <= (int)a2 ) v9 = (unsigned int)v8; else v9 = a2; memcpy(a1, __s, (int)v9); } else { v10 = sub_1005E45F4(); if ( v10 ) v11 = v10; else v11 = "Enter PEM pass phrase:"; if ( (unsigned int)sub_1005E460C((__int64)a1, 4, a2, v11, a3) ) { LABEL_12: sub_1005E0E48(9, 100, 109, (__int64)"pem_lib.c", 110); bzero(a1, a2); return 0xFFFFFFFFLL; } else { while ( 1 ) { v9 = strlen((const char *)a1); if ( (int)v9 > 3 ) break; fprintf(__stderrp, "phrase is too short, needs to be at least %d chars\n", 4); if ( (unsigned int)sub_1005E460C((__int64)a1, 4, a2, v11, a3) ) goto LABEL_12; } } } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source