// // UI_dup_error_string from 0xa4f8f8 to 0xa4faf4 (508 bytes) // // 1 xrefs: // > @ 0x8039c // // 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:08:22 +0000 // int __fastcall UI_dup_error_string(int a1, const char *a2) { void *v3; // r7 _DWORD *v4; // r0 int v5; // r4 int *v6; // r0 int result; // r0 int v8; // r5 if ( !a2 ) { ERR_put_error(40, 109, 67, (int)"crypto/ui/ui_lib.c", 99); return -1; } v3 = CRYPTO_strdup(a2, (int)"crypto/ui/ui_lib.c", 341); if ( !v3 ) { ERR_put_error(40, 101, 65, (int)"crypto/ui/ui_lib.c", 343); return -1; } v4 = CRYPTO_malloc(&dword_20, (int)"crypto/ui/ui_lib.c", 103); v5 = (int)v4; if ( !v4 ) return -1; v4[1] = v3; v4[3] = 0; v6 = *(int **)(a1 + 4); *(_DWORD *)(v5 + 8) = 0; *(_DWORD *)(v5 + 28) = 1; *(_DWORD *)v5 = 5; if ( v6 || (v6 = OPENSSL_sk_new_null(), (*(_DWORD *)(a1 + 4) = v6) != 0) ) { *(_DWORD *)(v5 + 16) = 0; *(_DWORD *)(v5 + 20) = 0; *(_DWORD *)(v5 + 24) = 0; result = OPENSSL_sk_push(v6, v5); if ( result <= 0 ) { v8 = result - 1; if ( (*(_DWORD *)(v5 + 28) & 1) != 0 ) { CRYPTO_free(*(void **)(v5 + 4), (int)"crypto/ui/ui_lib.c", 56); if ( *(_DWORD *)v5 == 3 ) { CRYPTO_free(*(void **)(v5 + 16), (int)"crypto/ui/ui_lib.c", 59); CRYPTO_free(*(void **)(v5 + 20), (int)"crypto/ui/ui_lib.c", 60); CRYPTO_free(*(void **)(v5 + 24), (int)"crypto/ui/ui_lib.c", 61); } } CRYPTO_free((void *)v5, (int)"crypto/ui/ui_lib.c", 67); return v8; } } else { if ( (*(_DWORD *)(v5 + 28) & 1) != 0 ) { CRYPTO_free(*(void **)(v5 + 4), (int)"crypto/ui/ui_lib.c", 56); if ( *(_DWORD *)v5 == 3 ) { CRYPTO_free(*(void **)(v5 + 16), (int)"crypto/ui/ui_lib.c", 59); CRYPTO_free(*(void **)(v5 + 20), (int)"crypto/ui/ui_lib.c", 60); CRYPTO_free(*(void **)(v5 + 24), (int)"crypto/ui/ui_lib.c", 61); } } CRYPTO_free((void *)v5, (int)"crypto/ui/ui_lib.c", 67); return -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source