// // i2o_SCT from 0x9f0704 to 0x9f08d8 (468 bytes) // // 3 xrefs: // > i2o_SCT_LIST @ 0x9f0bb4 // > i2o_SCT_LIST @ 0x9f0c60 // > @ 0x79fbc // // 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:07:29 +0000 // int __fastcall i2o_SCT(int a1, void **a2) { int v4; // r2 int v5; // r3 size_t v6; // r5 _BYTE *v7; // r0 _BYTE *v8; // r3 int v9; // r2 size_t v10; // r2 void *v12; // [sp+Ch] [bp-8h] BYREF v12 = nullptr; if ( SCT_is_complete() ) { v5 = *(_DWORD *)a1; if ( *(_DWORD *)a1 ) { v6 = *(_DWORD *)(a1 + 8); } else { v6 = *(_DWORD *)(a1 + 48); v4 = *(_DWORD *)(a1 + 36); } if ( !*(_DWORD *)a1 ) v6 += v4 + 47; if ( !a2 ) return v6; v7 = *a2; if ( *a2 ) { v12 = *a2; *a2 = &v7[v6]; } else { v7 = (_BYTE *)CRYPTO_malloc(v6, "crypto/ct/ct_oct.c", 227); v12 = v7; if ( !v7 ) { ERR_put_error(50, 107, 65, "crypto/ct/ct_oct.c", 229); goto LABEL_19; } v5 = *(_DWORD *)a1; *a2 = v7; } if ( v5 ) { memcpy(v7, *(const void **)(a1 + 4), v6); return v6; } v12 = v7 + 1; *v7 = 0; memcpy(v12, *(const void **)(a1 + 12), 0x20u); v8 = v12; *((_BYTE *)v12 + 32) = *(_BYTE *)(a1 + 31); v8[33] = *(_WORD *)(a1 + 30); v8[34] = BYTE1(*(_DWORD *)(a1 + 28)); v8[35] = *(_DWORD *)(a1 + 28); v8[36] = *(_BYTE *)(a1 + 27); v8[37] = *(_WORD *)(a1 + 26); v9 = *(_DWORD *)(a1 + 24); v12 = v8 + 42; v8[38] = BYTE1(v9); v8[39] = *(_DWORD *)(a1 + 24); v8[40] = BYTE1(*(_DWORD *)(a1 + 36)); v8[41] = *(_DWORD *)(a1 + 36); v10 = *(_DWORD *)(a1 + 36); if ( v10 ) v12 = (char *)memcpy(v8 + 42, *(const void **)(a1 + 32), v10) + *(_DWORD *)(a1 + 36); if ( i2o_SCT_signature(a1, (int *)&v12) > 0 ) return v6; } else { ERR_put_error(50, 107, 106, "crypto/ct/ct_oct.c", 206); } LABEL_19: CRYPTO_free(v12, "crypto/ct/ct_oct.c", 253); return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source