// // ENGINE_ctrl_cmd_string from 0xd9c968 to 0xd9cc10 (680 bytes) // // 10 xrefs: // > sub_D9BF74 @ 0xd9c240 // > sub_D9BF74 @ 0xd9c260 // > sub_D9BF74 @ 0xd9c27c // > sub_D9BF74 @ 0xd9c29c // > ENGINE_by_id @ 0xd9de64 // > ENGINE_by_id @ 0xd9de84 // > ENGINE_by_id @ 0xd9dea0 // > ENGINE_by_id @ 0xd9dec0 // > ENGINE_by_id @ 0xd9dee0 // > @ 0x7ac70 // // 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 ENGINE_ctrl_cmd_string(__int64 a1, const char *a2, const char *a3, unsigned int a4) { __int64 v4; // x20 unsigned int v7; // w22 int v8; // w0 __int64 v10; // x2 char *v11; // [xsp+48h] [xbp+48h] BYREF v4 = a1; if ( a1 && a2 ) { if ( *(_QWORD *)(a1 + 112) && (a1 = ENGINE_ctrl(a1, 13, 0, a2, 0), v7 = a1, (int)a1 > 0) ) { if ( ENGINE_cmd_is_executable(v4, a1) ) { v8 = ENGINE_ctrl(v4, 18, (int)v7, nullptr, 0); if ( v8 < 0 ) { a4 = 0; ERR_put_error(38, 171, 110, "crypto/engine/eng_ctrl.c", 279); } else if ( (v8 & 4) != 0 ) { if ( a3 ) { a4 = 0; ERR_put_error(38, 171, 136, "crypto/engine/eng_ctrl.c", 288); } else { return (int)ENGINE_ctrl(v4, v7, 0, nullptr, 0) > 0; } } else if ( a3 ) { if ( (v8 & 2) != 0 ) { return (int)ENGINE_ctrl(v4, v7, 0, a3, 0) > 0; } else if ( (v8 & 1) != 0 ) { v10 = strtol(a3, &v11, 10); if ( a3 == v11 || *v11 ) { a4 = 0; ERR_put_error(38, 171, 133, "crypto/engine/eng_ctrl.c", 328); } else { return (int)ENGINE_ctrl(v4, v7, v10, nullptr, 0) > 0; } } else { a4 = 0; ERR_put_error(38, 171, 110, "crypto/engine/eng_ctrl.c", 322); } } else { a4 = 0; ERR_put_error(38, 171, 135, "crypto/engine/eng_ctrl.c", 304); } return a4; } ERR_put_error(38, 171, 134, "crypto/engine/eng_ctrl.c", 268); return 0; } else { if ( !a4 ) { ERR_put_error(38, 171, 137, "crypto/engine/eng_ctrl.c", 263); return a4; } ERR_clear_error(a1); return 1; } } else { ERR_put_error(38, 171, 67, "crypto/engine/eng_ctrl.c", 245); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source