// // sub_1072B54 from 0x1072b54 to 0x1072dd0 (636 bytes) // // 7 xrefs: // > X509v3_addr_get_range @ 0x1074540 // > X509v3_addr_is_canonical @ 0x107474c // > X509v3_addr_is_canonical @ 0x1074768 // > X509v3_addr_is_canonical @ 0x1074a44 // > X509v3_addr_canonize @ 0x1074d50 // > X509v3_addr_canonize @ 0x1074d6c // > X509v3_addr_canonize @ 0x1075040 // // 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:17:02 +0000 // __int64 __fastcall sub_1072B54(__int64 a1, _BYTE *a2, char *a3, int a4) { unsigned int v4; // w19 _BYTE *v8; // x4 int **v9; // x0 const void **v10; // x22 int v11; // w2 signed int v12; // w0 __int64 v13; // x0 int *v14; // x20 int v15; // w2 signed int v16; // w0 __int64 v17; // x0 int *v19; // x19 int v20; // w2 signed int v21; // w0 __int64 v22; // x0 int *v23; // x19 int v24; // w2 signed int v25; // w0 __int64 v26; // x0 if ( a2 == nullptr || a3 == nullptr || !a1 ) return 0; v4 = *(_DWORD *)a1; v8 = a2; if ( !*(_DWORD *)a1 ) { v19 = *(int **)(a1 + 8); v20 = *v19; if ( a4 >= *v19 ) { v21 = (unsigned int)v20 >> 31; if ( v20 >= 0 ) { if ( v20 ) { v8 = memcpy(a2, *((const void **)v19 + 1), v20); v22 = *((_QWORD *)v19 + 2) & 7LL; if ( v22 ) v8[*v19 - 1] &= ~(255 >> (8 - v22)); v21 = *v19; } memset(&v8[v21], 0, a4 - v21); v23 = *(int **)(a1 + 8); v24 = *v23; if ( a4 >= *v23 ) { v25 = (unsigned int)v24 >> 31; if ( v24 >= 0 ) { if ( v24 ) { memcpy(a3, *((const void **)v23 + 1), v24); v26 = *((_QWORD *)v23 + 2) & 7LL; if ( v26 ) a3[*v23 - 1] |= 255 >> (8 - v26); v25 = *v23; } v4 = 1; memset(&a3[v25], 255, a4 - v25); return v4; } } } } return 0; } if ( v4 == 1 ) { v9 = *(int ***)(a1 + 8); v10 = (const void **)*v9; v11 = **v9; if ( a4 >= v11 ) { v12 = (unsigned int)v11 >> 31; if ( v11 >= 0 ) { if ( v11 ) { v8 = memcpy(a2, v10[1], v11); v13 = (unsigned __int64)v10[2] & 7; if ( v13 ) v8[*(int *)v10 - 1] &= ~(255 >> (8 - v13)); v12 = *(_DWORD *)v10; } memset(&v8[v12], 0, a4 - v12); v14 = *(int **)(*(_QWORD *)(a1 + 8) + 8LL); v15 = *v14; if ( a4 >= *v14 ) { v16 = (unsigned int)v15 >> 31; if ( v15 >= 0 ) { if ( v15 ) { memcpy(a3, *((const void **)v14 + 1), v15); v17 = *((_QWORD *)v14 + 2) & 7LL; if ( v17 ) a3[*v14 - 1] |= 255 >> (8 - v17); v16 = *v14; } memset(&a3[v16], 255, a4 - v16); return v4; } } } } return 0; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source