// // ENGINE_load_private_key from 0x7f8244 to 0x7f835c (280 bytes) // // 2 xrefs: // > sub_643938 @ 0x6447aa // > @ 0x5545c // // 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_load_private_key(int a1, int a2, int a3, int a4) { int (__fastcall *v8)(int, int, int, int); // r4 int result; // r0 if ( a1 ) { CRYPTO_THREAD_write_lock(global_engine_lock); if ( *(_DWORD *)(a1 + 84) ) { CRYPTO_THREAD_unlock(global_engine_lock); v8 = *(int (__fastcall **)(int, int, int, int))(a1 + 60); if ( v8 ) { result = v8(a1, a2, a3, a4); if ( !result ) { ERR_put_error(38, 150, 128, "crypto/engine/eng_pkey.c", 78); return 0; } } else { ERR_put_error(38, 150, 125, "crypto/engine/eng_pkey.c", 72); return 0; } } else { CRYPTO_THREAD_unlock(global_engine_lock); ERR_put_error(38, 150, 117, "crypto/engine/eng_pkey.c", 66); return 0; } } else { ERR_put_error(38, 150, 67, "crypto/engine/eng_pkey.c", 60); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source