// // policy_cache_set_mapping from 0xa60610 to 0xa60764 (340 bytes) // // 2 xrefs: // > policy_cache_set @ 0xa603d4 // > @ 0x81fec // // 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:33 +0000 // int __fastcall policy_cache_set_mapping(int a1, _DWORD *a2) { int **v4; // r9 signed int i; // r5 int *v6; // r4 _DWORD *data; // r0 int **v8; // r6 _DWORD *v9; // r0 int v10; // r2 int v11; // r4 v4 = *(int ***)(a1 + 136); if ( OPENSSL_sk_num((int)a2) ) { for ( i = 0; ; ++i ) { if ( i >= OPENSSL_sk_num((int)a2) ) { v11 = 1; goto LABEL_16; } v6 = (int *)OPENSSL_sk_value(a2, i); if ( OBJ_obj2nid(v6[1]) == (char *)&stru_2DC.st_shndx || OBJ_obj2nid(*v6) == (char *)&stru_2DC.st_shndx ) break; data = (_DWORD *)policy_cache_find_data((int)v4, *v6); v8 = (int **)data; if ( data ) { *data |= 1u; } else { if ( !*v4 ) continue; v9 = policy_data_new(nullptr, (const char **)*v6, **v4 & 0x10); v8 = (int **)v9; if ( !v9 ) { LABEL_18: v11 = 0; goto LABEL_16; } v10 = (*v4)[2]; *v9 |= 6u; v9[2] = v10; if ( !OPENSSL_sk_push(v4[1], (int)v9) ) { policy_data_free(v8); v11 = 0; goto LABEL_16; } } if ( !OPENSSL_sk_push(v8[3], v6[1]) ) goto LABEL_18; v6[1] = 0; } } v11 = -1; *(_DWORD *)(a1 + 112) |= 0x800u; LABEL_16: OPENSSL_sk_pop_free((int)a2, (void (__fastcall *)(int))POLICY_MAPPING_free); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source