// // ENGINE_ctrl_cmd_string from 0xa0b520 to 0xa0b7cc (684 bytes) // // 10 xrefs: // > sub_A0AA14 @ 0xa0ac14 // > sub_A0AA14 @ 0xa0ac3c // > sub_A0AA14 @ 0xa0ac60 // > sub_A0AA14 @ 0xa0ace4 // > ENGINE_by_id @ 0xa0cb5c // > ENGINE_by_id @ 0xa0cb80 // > ENGINE_by_id @ 0xa0cba0 // > ENGINE_by_id @ 0xa0cbc4 // > ENGINE_by_id @ 0xa0cbe4 // > @ 0x7bc1c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:07:43 +0000 // int __fastcall ENGINE_ctrl_cmd_string(_DWORD *a1, const char *a2, const char *a3, int a4) { bool v4; // zf _DWORD *v6; // r6 unsigned int v8; // r8 int v9; // r0 unsigned int v11; // r2 char *v12; // [sp+Ch] [bp-4h] BYREF v4 = a2 == nullptr; if ( a2 ) v4 = a1 == nullptr; if ( v4 ) { ERR_put_error(38, 171, 67, "crypto/engine/eng_ctrl.c", 245); return 0; } v6 = a1; if ( a1[14] && (a1 = (_DWORD *)ENGINE_ctrl(a1, 13, 0, a2, 0), v8 = (unsigned int)a1, (int)a1 > 0) ) { if ( ENGINE_cmd_is_executable(v6, (unsigned int)a1) ) { v9 = ENGINE_ctrl(v6, 18, v8, nullptr, 0); if ( v9 < 0 ) { a4 = 0; ERR_put_error(38, 171, 110, "crypto/engine/eng_ctrl.c", 279); } else if ( (v9 & 4) != 0 ) { if ( a3 ) { a4 = 0; ERR_put_error(38, 171, 136, "crypto/engine/eng_ctrl.c", 288); } else { return ENGINE_ctrl(v6, v8, 0, nullptr, 0) > 0; } } else if ( a3 ) { if ( (v9 & 2) != 0 ) { return ENGINE_ctrl(v6, v8, 0, a3, v9 & 4) > 0; } else { a4 = v9 & 1; if ( (v9 & 1) != 0 ) { v11 = strtol(a3, &v12, 10); if ( a3 == v12 || *v12 ) { ERR_put_error(38, 171, 133, "crypto/engine/eng_ctrl.c", 328); return 0; } else { return ENGINE_ctrl(v6, v8, v11, nullptr, 0) > 0; } } else { 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; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source