// // sub_1081334 from 0x1081334 to 0x1081484 (336 bytes) // // 2 xrefs: // > sub_1080FE8 @ 0x1081188 // > sub_1080FE8 @ 0x1081190 // // 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_1081334(char *a1, size_t a2, char *a3, __int64 a4) { unsigned int v4; // w4 size_t v6; // x3 char *v7; // x8 char *v8; // x5 size_t v9; // x11 int v10; // w7 unsigned __int8 *v11; // x10 unsigned __int8 *v12; // x11 unsigned int v13; // t1 v4 = 0; if ( a2 != a4 ) return v4; if ( !a2 ) goto LABEL_27; v6 = a2 - 1; v7 = &a1[a2 - 1]; v4 = (unsigned __int8)*v7; if ( v4 == 64 ) { LABEL_28: v9 = a2 - v6; if ( a2 != v6 ) { v8 = &a3[v6]; v10 = (unsigned __int8)a3[v6]; v4 = 64; LABEL_12: v11 = (unsigned __int8 *)(v7 + 1); v12 = (unsigned __int8 *)&v7[v9]; while ( 1 ) { ++v8; if ( v4 == v10 ) goto LABEL_18; if ( (unsigned __int8)(v4 - 65) > 0x19u ) break; v4 = (unsigned __int8)(v4 + 32); if ( (unsigned __int8)(v10 - 65) <= 0x19u ) goto LABEL_16; LABEL_17: if ( v4 != v10 ) return 0; LABEL_18: if ( v11 == v12 ) goto LABEL_24; v13 = *v11++; v4 = v13; v10 = (unsigned __int8)*v8; if ( !v13 ) return v4; } if ( (unsigned __int8)(v10 - 65) > 0x19u ) return 0; LABEL_16: v10 = (unsigned __int8)(v10 + 32); goto LABEL_17; } LABEL_24: if ( !v6 ) v6 = a2; return memcmp(a1, a3, v6) == 0; } v8 = &a3[v6]; if ( a3[v6] == 64 ) { LABEL_9: v9 = a2 - v6; if ( a2 != v6 ) { if ( !v4 ) return v4; v10 = 64; goto LABEL_12; } goto LABEL_24; } while ( v6 ) { v7 = &a1[--v6]; v8 = &a3[v6]; v4 = (unsigned __int8)a1[v6]; if ( v4 == 64 ) goto LABEL_28; if ( a3[v6] == 64 ) goto LABEL_9; } LABEL_27: v6 = a2; return memcmp(a1, a3, v6) == 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source