// // sub_FF3E30 from 0xff3e30 to 0xff4288 (1112 bytes) // // 1 xrefs: // > @ 0x13ff938 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:15:47 +0000 // __int64 __fastcall sub_FF3E30(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4) { unsigned int v5; // w20 __int64 v6; // x22 _DWORD *v7; // x23 int *v8; // x19 __int64 v9; // x20 __int64 v11; // x0 int v12; // w4 int v13; // w4 size_t v14; // x21 int v15; // w24 __int64 v16; // x20 void *v17; // x0 int v18; // w3 __int64 v19; // x1 __int64 v20; // x0 int v21; // w2 int v22; // w20 int v23; // w21 __int64 v24; // x23 __int64 v25; // x0 __int64 v26; // x24 __int64 v27; // x0 __int64 v28; // x0 v5 = a2; v6 = a3; v7 = a4; v8 = *(int **)(a1 + 48); if ( (_DWORD)a2 == 12 ) { if ( BIO_int_ctrl(a4, 117, *v8, 0) ) return BIO_int_ctrl(v7, 117, v8[1], 1) != 0; return 0; } if ( (int)a2 <= 12 ) { if ( (_DWORD)a2 == 3 ) return v8[8]; if ( (int)a2 <= 3 ) { if ( (_DWORD)a2 == 1 ) { v11 = *(_QWORD *)(a1 + 56); v8[5] = 0; v8[4] = 0; v8[9] = 0; v8[8] = 0; if ( v11 ) return BIO_ctrl(v11, a2, a3, a4); return 0; } goto LABEL_54; } if ( (_DWORD)a2 != 10 ) { if ( (_DWORD)a2 == 11 ) { v11 = *(_QWORD *)(a1 + 56); if ( v11 ) { if ( v8[8] > 0 ) { while ( 1 ) { BIO_clear_flags(a1, 15); v13 = v8[8]; if ( v13 <= 0 ) break; v9 = (int)BIO_write(*(_QWORD *)(a1 + 56), *((_QWORD *)v8 + 3) + v8[9], (unsigned int)v13); BIO_copy_next_retry(a1); if ( (int)v9 <= 0 ) return v9; v12 = v8[8]; v8[9] += v9; v8[8] = v12 - v9; } v11 = *(_QWORD *)(a1 + 56); a2 = 11; v8[8] = 0; a3 = v6; v8[9] = 0; a4 = v7; } return BIO_ctrl(v11, a2, a3, a4); } return 0; } goto LABEL_54; } v9 = v8[4]; if ( v8[4] ) return v9; LABEL_28: v11 = *(_QWORD *)(a1 + 56); if ( v11 ) return BIO_ctrl(v11, a2, a3, a4); return 0; } if ( (_DWORD)a2 == 116 ) { v18 = v8[4]; if ( v18 > 0 ) { v19 = 0; v20 = 0; do { v21 = *(unsigned __int8 *)(*((_QWORD *)v8 + 1) + v8[5] + v19++); if ( v21 == 10 ) ++v20; } while ( v18 > (int)v19 ); return v20; } return 0; } if ( (int)a2 > 116 ) { if ( (_DWORD)a2 != 117 ) { if ( (_DWORD)a2 != 122 ) goto LABEL_54; if ( a3 <= *v8 ) { v17 = *((void **)v8 + 1); v15 = a3; v14 = (int)a3; goto LABEL_57; } v14 = (int)a3; v15 = a3; v16 = CRYPTO_malloc((int)a3, "crypto/bio/bf_buff.c", 283); if ( v16 ) { CRYPTO_free(*((_QWORD *)v8 + 1), "crypto/bio/bf_buff.c", 286); *((_QWORD *)v8 + 1) = v16; v17 = (void *)v16; LABEL_57: v8[5] = 0; v8[4] = v15; v9 = 1; memcpy(v17, v7, v14); return v9; } LABEL_70: v9 = 0; ERR_put_error(32, 114, 65, "crypto/bio/bf_buff.c", 387); return v9; } if ( a4 ) { if ( *a4 ) { v22 = *v8; v23 = a3; v24 = *((_QWORD *)v8 + 1); v25 = (int)a3; v26 = *((_QWORD *)v8 + 3); goto LABEL_41; } v23 = v8[1]; v22 = a3; } else { v22 = a3; v23 = a3; } v24 = *((_QWORD *)v8 + 1); v26 = *((_QWORD *)v8 + 3); if ( v22 <= 4096 || *v8 == v22 ) { if ( v23 <= 4096 ) return 1; v25 = v22; LABEL_42: if ( v8[1] != v23 ) { v26 = CRYPTO_malloc(v25, "crypto/bio/bf_buff.c", 317); if ( !v26 ) { if ( *((_QWORD *)v8 + 1) != v24 ) CRYPTO_free(v24, "crypto/bio/bf_buff.c", 320); goto LABEL_70; } } LABEL_44: v27 = *((_QWORD *)v8 + 1); if ( v27 == v24 ) { v28 = *((_QWORD *)v8 + 3); } else { CRYPTO_free(v27, "crypto/bio/bf_buff.c", 325); *((_QWORD *)v8 + 1) = v24; v28 = *((_QWORD *)v8 + 3); v8[5] = 0; v8[4] = 0; *v8 = v22; } v9 = 1; if ( v26 != v28 ) { CRYPTO_free(v28, "crypto/bio/bf_buff.c", 332); *((_QWORD *)v8 + 3) = v26; v8[9] = 0; v8[8] = 0; v8[1] = v23; } return v9; } v24 = CRYPTO_malloc(v22, "crypto/bio/bf_buff.c", 312); if ( !v24 ) goto LABEL_70; v25 = v22; LABEL_41: if ( v23 <= 4096 ) goto LABEL_44; goto LABEL_42; } if ( (_DWORD)a2 == 13 ) { v9 = v8[8]; if ( v8[8] ) return v9; goto LABEL_28; } if ( (_DWORD)a2 == 101 ) { if ( *(_QWORD *)(a1 + 56) ) { BIO_clear_flags(a1, 15); v9 = BIO_ctrl(*(_QWORD *)(a1 + 56), v5, v6, v7); BIO_copy_next_retry(a1); return v9; } return 0; } LABEL_54: v11 = *(_QWORD *)(a1 + 56); if ( v11 ) { a2 = (unsigned int)a2; return BIO_ctrl(v11, a2, a3, a4); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source