// // sub_1080DA4 from 0x1080da4 to 0x1080f1c (376 bytes) // // 2 xrefs: // > a2i_ipadd @ 0x1082afc // > a2i_ipadd @ 0x1082b10 // // 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:10 +0000 // __int64 __fastcall sub_1080DA4(const char *a1, int a2, _DWORD *a3) { int v3; // w23 char *v5; // x20 int v6; // w0 char v8; // w3 char v9; // w4 char v10; // w5 _BYTE *v11; // x1 __int64 v12; // x19 int v13; // w1 char *v14; // x19 char v15; // t1 int v16; // w22 int v17; // w0 unsigned int v18; // [xsp+40h] [xbp+40h] BYREF unsigned int v19; // [xsp+44h] [xbp+44h] BYREF unsigned int v20; // [xsp+48h] [xbp+48h] BYREF unsigned int v21; // [xsp+4Ch] [xbp+4Ch] BYREF v3 = a3[4]; v5 = (char *)a1; if ( v3 == 16 ) return 0; if ( a2 ) { if ( a2 <= 4 ) { v12 = (unsigned int)(a2 - 1); v13 = 0; v14 = (char *)&a1[v12 + 1]; while ( 1 ) { v15 = *v5++; v16 = 16 * v13; v17 = OPENSSL_hexchar2int(v15); if ( v17 < 0 ) break; v13 = (unsigned __int8)v17 | v16; if ( v5 == v14 ) { *((_BYTE *)a3 + v3) = BYTE1(v13); *((_BYTE *)a3 + v3 + 1) = v17 | v16; a3[4] += 2; return 1; } } } else if ( v3 <= 12 && !a1[a2] && sscanf(a1, "%d.%d.%d.%d", &v18, &v19, &v20, &v21) == 4 && v18 <= 0xFF ) { v8 = v19; if ( v19 <= 0xFF ) { v9 = v20; if ( v20 <= 0xFF ) { v10 = v21; if ( v21 <= 0xFF ) { v11 = (char *)a3 + v3; *v11 = v18; v11[1] = v8; v11[2] = v9; v11[3] = v10; a3[4] += 4; return 1; } } } } return 0; } v6 = a3[5]; if ( v6 == -1 ) { a3[5] = v3; goto LABEL_17; } if ( v3 == v6 ) { LABEL_17: ++a3[6]; return 1; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source