// // sub_107CABC from 0x107cabc to 0x107ce58 (924 bytes) // // 2 xrefs: // > sub_107CE58 @ 0x107cf20 // > sub_107CE58 @ 0x107cf64 // // 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:08 +0000 // __int64 __fastcall sub_107CABC(__int64 a1, __int64 a2) { __int64 result; // x0 int *v4; // x2 int *v5; // x3 const char *v6; // x19 const char *v7; // x22 int v8; // w23 int v9; // w24 char *v10; // x20 char *v11; // x0 char *v12; // x21 int *v13; // x2 int *v14; // x1 const char *v15; // x4 int v16; // w3 int v17; // w2 const char *v18; // x1 __int64 v19; // x19 __int64 v20; // x20 int v21; // w2 __int64 v22; // x3 int v23; // w20 const char *v24; // x21 char *v25; // x0 char *v26; // x3 int v27; // w4 const char *v28; // x19 char *v29; // x0 int v30; // w1 int *v31; // x2 int *v32; // x0 int v33; // w1 _BYTE *v34; // x4 int v35; // w3 _BYTE *v36; // x2 __int64 v37; // x6 char *v38; // x2 _BYTE *v39; // x1 char v40; // w5 char v41; // t1 unsigned __int8 v42; // w0 switch ( *(_DWORD *)a2 ) { case 1: v4 = *(int **)(a2 + 8); v5 = *(int **)(a1 + 8); v6 = *((const char **)v4 + 1); v7 = *((const char **)v5 + 1); v8 = *v5; v9 = *v4; v10 = strchr(v6, 64); v11 = strchr(v7, 64); v12 = v11; if ( !v11 ) return 53; if ( v10 ) { if ( v6 != v10 && (v10 - v6 != v11 - v7 || strncmp(v6, v7, v10 - v6)) ) return 47; v6 = v10 + 1; } else if ( *v6 == 46 ) { result = 47; if ( v8 > v9 ) { if ( !strcasecmp(v6, &v7[v8 - v9]) ) return 0; else return 47; } return result; } if ( !strcasecmp(v6, v12 + 1) ) return 0; return 47; case 2: v13 = *(int **)(a2 + 8); result = 0; v14 = *(int **)(a1 + 8); v15 = *((const char **)v13 + 1); v16 = *v14; v17 = *v13; v18 = *((const char **)v14 + 1); if ( *v15 ) { if ( v16 > v17 ) { v18 += v16 - v17; if ( *v15 != 46 && *(v18 - 1) != 46 ) return 47; } if ( strcasecmp(v15, v18) ) return 47; return 0; } return result; case 4: v19 = *(_QWORD *)(a1 + 8); v20 = *(_QWORD *)(a2 + 8); if ( *(_DWORD *)(v19 + 8) && (i2d_X509_NAME(*(_QWORD *)(a1 + 8), nullptr) & 0x80000000) != 0 ) return 17; if ( *(_DWORD *)(v20 + 8) && (i2d_X509_NAME(v20, nullptr) & 0x80000000) != 0 ) return 17; v21 = *(_DWORD *)(v20 + 32); if ( v21 > *(_DWORD *)(v19 + 32) ) return 47; if ( !memcmp(*(const void **)(v20 + 24), *(const void **)(v19 + 24), v21) ) return 0; return 47; case 6: v22 = *(_QWORD *)(a2 + 8); v23 = *(_DWORD *)v22; v24 = *(const char **)(v22 + 8); v25 = strchr(*(const char **)(*(_QWORD *)(a1 + 8) + 8LL), 58); v26 = v25; if ( !v25 ) return 53; v27 = (unsigned __int8)v25[1]; result = 53; if ( v27 == 47 && v26[2] == 47 ) { v28 = v26 + 3; v29 = strchr(v26 + 3, 58); if ( v29 || (v29 = strchr(v28, 47)) != nullptr ) v30 = (_DWORD)v29 - (_DWORD)v28; else v30 = strlen(v28); result = 53; if ( v30 ) { if ( *v24 == 46 ) { result = 47; if ( v23 < v30 ) { if ( !strncasecmp(&v28[v30 - (__int64)v23], v24, v23) ) return 0; else return 47; } } else { if ( v23 != v30 ) return 47; if ( !strncasecmp(v28, v24, v23) ) return 0; else return 47; } } } return result; case 7: v31 = *(int **)(a1 + 8); v32 = *(int **)(a2 + 8); v33 = *v31; v34 = *((_BYTE **)v31 + 1); v35 = *v32; v36 = *((_BYTE **)v32 + 1); if ( v33 == 16 || (result = 53, v33 == 4) ) { if ( v35 == 32 || (result = 53, v35 == 8) ) { if ( v35 != 2 * v33 ) return 47; v37 = v33; if ( ((unsigned __int8)(*v36 ^ *v34) & v36[v33]) != 0 ) { return 47; } else { v38 = v36 + 1; v39 = &v34[v33 - 1]; while ( v34 != v39 ) { v40 = *v38; v41 = *++v34; v42 = v38[v37]; ++v38; if ( ((unsigned __int8)(v40 ^ v41) & v42) != 0 ) return 47; } return 0; } } } return result; default: return 51; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source