// // sub_833644 from 0x833644 to 0x8338ee (682 bytes) // // 0 xrefs: // // 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:02:10 +0000 // char *__fastcall sub_833644(int *a1, _BYTE *a2) { size_t v3; // r4 const char *v4; // r5 int v5; // r10 char *v6; // r0 char *v7; // r6 char *v8; // r11 char *v9; // r5 char *v10; // r8 char *v11; // r0 char *v12; // r0 char *v13; // r0 char *v14; // r6 int v15; // r5 char *result; // r0 char *v17; // r0 char *v18; // r6 char *v19; // r5 char *v20; // r8 char *v21; // r0 char *v22; // r0 const char *v23; // r0 char *v24; // r6 int v25; // r2 _BYTE *v26; // r1 int v27; // t1 int v28; // [sp+14h] [bp-8h] v3 = *a1; v28 = *a1 + 112; v4 = *(const char **)(*a1 + 34676); v5 = a1[104]; *a2 = 1; if ( sub_83ABE4(v4, "/MATCH:", 7) || sub_83ABE4(v4, "/M:", 3) || sub_83ABE4(v4, "/FIND:", 6) ) { v6 = strchr(v4, 58); v7 = v6; v8 = v6; v9 = v6; if ( v6 ) { v10 = v6 + 1; v11 = strchr(v6 + 1, 58); if ( v11 ) { v9 = v11 + 1; *v11 = 0; v12 = strchr(v11 + 1, 58); v8 = v12; if ( v12 ) { v8 = v12 + 1; *v12 = 0; v13 = strchr(v12 + 1, 58); if ( v13 ) *v13 = 0; } if ( v7[1] ) goto LABEL_10; } else { v9 = (char *)(unsigned __int8)v7[1]; if ( v7[1] ) { v9 = "!"; v8 = "."; goto LABEL_14; } v8 = (char *)(unsigned __int8)v7[1]; } } sub_8280FC(v3, "lookup word is missing\n"); if ( !v9 ) { v10 = "default"; v9 = "!"; goto LABEL_12; } v10 = "default"; LABEL_10: if ( !*v9 ) v9 = "!"; LABEL_12: if ( v8 ) { if ( !*v8 ) { v8 = "."; v14 = sub_833598(v3, v10); if ( !v14 ) return (_BYTE *)(&dword_18 + 3); goto LABEL_15; } } else { v8 = "."; } LABEL_14: v14 = sub_833598(v3, v10); if ( !v14 ) return (_BYTE *)(&dword_18 + 3); LABEL_15: v15 = sub_828234(v5, a1, (int)"CLIENT libcurl 7.52.1\r\nMATCH %s %s %s\r\nQUIT\r\n", v9, v8, v14); off_D200B0(v14); if ( v15 ) goto LABEL_35; goto LABEL_16; } if ( sub_83ABE4(v4, "/DEFINE:", 8) || sub_83ABE4(v4, "/D:", 3) || sub_83ABE4(v4, "/LOOKUP:", 8) ) { v17 = strchr(v4, 58); v18 = v17; v19 = v17; if ( v17 ) { v20 = v17 + 1; v21 = strchr(v17 + 1, 58); if ( v21 ) { v19 = v21 + 1; *v21 = 0; v22 = strchr(v21 + 1, 58); if ( v22 ) *v22 = 0; if ( v18[1] ) { LABEL_31: if ( !*v19 ) v19 = "!"; LABEL_33: v23 = sub_833598(v3, v20); v24 = (char *)v23; if ( v23 ) { v15 = sub_828234(v5, a1, (int)"CLIENT libcurl 7.52.1\r\nDEFINE %s %s\r\nQUIT\r\n", v19, v23); off_D200B0(v24); if ( v15 ) { LABEL_35: sub_828178(v3, "Failed sending DICT request"); return (char *)v15; } LABEL_16: sub_83AA00(a1, v15, -1, -1, v15, v28, -1, v15); return (char *)v15; } return (_BYTE *)(&dword_18 + 3); } } else { v19 = (char *)(unsigned __int8)v18[1]; if ( v18[1] ) { v19 = "!"; goto LABEL_33; } } } sub_8280FC(v3, "lookup word is missing\n"); if ( !v19 ) { v20 = "default"; v19 = "!"; goto LABEL_33; } v20 = "default"; goto LABEL_31; } result = strchr(v4, 47); if ( result ) { v25 = (unsigned __int8)result[1]; if ( result[1] ) { v26 = result + 1; do { if ( v25 == 58 ) *v26 = 32; v27 = (unsigned __int8)*++v26; v25 = v27; } while ( v27 ); } v15 = sub_828234(v5, a1, (int)"CLIENT libcurl 7.52.1\r\n%s\r\nQUIT\r\n", result + 1); if ( v15 ) goto LABEL_35; goto LABEL_16; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source