// // sub_E2C0A4 from 0xe2c0a4 to 0xe2c244 (416 bytes) // // 1 xrefs: // > @ 0x1239950 // // 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 sub_E2C0A4(int a1, const char *a2, char *a3) { int v5; // w22 int v6; // w21 int v7; // w0 char *v8; // x0 char *v9; // x22 const char *v10; // x1 const char *v11; // x20 if ( a2 ) { if ( !a3 ) { LABEL_12: v11 = CRYPTO_strdup(a2, (__int64)"crypto/dso/dso_dlfcn.c", 199); if ( !v11 ) ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 201); return v11; } } else if ( !a3 ) { v11 = nullptr; ERR_put_error(37, 130, 67, (__int64)"crypto/dso/dso_dlfcn.c", 191); return v11; } if ( a2 ) { if ( *a2 != 47 ) { v5 = strlen(a3); v6 = v5; v7 = strlen(a2) + v5; if ( v5 && a3[v5 - 1] == 47 ) { v6 = v5 - 1; --v7; } v8 = (char *)CRYPTO_malloc((void *)(v7 + 2), (__int64)"crypto/dso/dso_dlfcn.c", 231); v9 = v8; if ( v8 ) { v10 = a3; v11 = v8; strcpy(v8, v10); v9[v6] = 47; strcpy(&v9[v6 + 1], a2); } else { v11 = nullptr; ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 233); } return v11; } goto LABEL_12; } v11 = CRYPTO_strdup(a3, (__int64)"crypto/dso/dso_dlfcn.c", 209); if ( !v11 ) { v11 = nullptr; ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 211); } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source