// // engine_unlocked_finish from 0x7f7100 to 0x7f71bc (188 bytes) // // 6 xrefs: // > ENGINE_finish @ 0x7f72dc // > sub_8B4330 @ 0x8b4378 // > sub_8B4388 @ 0x8b43b0 // > engine_table_register @ 0x8b44cc // > engine_table_select @ 0x8b47a8 // > @ 0x6230c // // 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 // int __fastcall engine_unlocked_finish(int a1, int a2) { int v2; // r4 bool v3; // zf int (*v5)(void); // r3 int v6; // r6 v2 = *(_DWORD *)(a1 + 84) - 1; v3 = *(_DWORD *)(a1 + 84) == 1; *(_DWORD *)(a1 + 84) = v2; if ( !v3 || (v5 = *(int (**)(void))(a1 + 52)) == nullptr ) { v6 = 1; LABEL_7: v2 = engine_free_util(a1, 0); if ( v2 ) return v6; ERR_put_error(38, 191, 106, "crypto/engine/eng_init.c", 69); return v2; } if ( a2 ) { CRYPTO_THREAD_unlock(global_engine_lock); v6 = (*(int (__fastcall **)(int))(a1 + 52))(a1); CRYPTO_THREAD_write_lock(global_engine_lock); } else { v6 = v5(); } if ( v6 ) goto LABEL_7; return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source