// // sub_1030BA4 from 0x1030ba4 to 0x1030cd4 (304 bytes) // // 1 xrefs: // > @ 0x1402bd0 // // 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:16:20 +0000 // __int64 __fastcall sub_1030BA4(__int64 a1, int a2, int a3, void *a4) { __int64 v4; // x20 __int64 v6; // x19 __int64 result; // x0 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 v4 = a3; v6 = *(_QWORD *)(a1 + 40); if ( a2 == 4097 ) { if ( (a3 & 0x80000000) == 0 ) { v9 = *(_QWORD *)(v6 + 8); if ( v9 ) CRYPTO_clear_free(v9, *(_QWORD *)(v6 + 16), "crypto/kdf/tls1_prf.c", 68); OPENSSL_cleanse((_BYTE *)(v6 + 24), *(_QWORD *)(v6 + 1048)); *(_QWORD *)(v6 + 1048) = 0; v10 = CRYPTO_memdup(a4, v4, "crypto/kdf/tls1_prf.c", 71); *(_QWORD *)(v6 + 8) = v10; if ( v10 ) { *(_QWORD *)(v6 + 16) = v4; return 1; } } return 0; } if ( a2 == 4098 ) { if ( !a4 || !a3 ) return 1; if ( (a3 & 0x80000000) == 0 ) { v8 = *(_QWORD *)(v6 + 1048); if ( a3 <= 1024 - (int)v8 ) { memcpy((void *)(v6 + v8 + 24), a4, a3); *(_QWORD *)(v6 + 1048) += v4; return 1; } } return 0; } result = 4294967294LL; if ( a2 == 4096 ) { *(_QWORD *)v6 = a4; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source