// // sub_84EA24 from 0x84ea24 to 0x84ec0e (490 bytes) // // 1 xrefs: // > sub_82DA6C @ 0x82de9a // // 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:29 +0000 // char *__fastcall sub_84EA24(const char *a1) { size_t v2; // r0 char *result; // r0 char *v4; // r5 char *v5; // r0 char *v6; // r10 char *v7; // r0 char *v8; // r7 char *v9; // r4 char *v10; // r11 int v11; // r3 const char *v12; // r7 size_t v13; // r0 int v14; // r3 int v15; // r3 int v16; // t1 int v17; // r3 int v18; // r3 int v19; // t1 int v20; // r3 int v21; // r3 bool v22; // zf bool v23; // r3 v2 = strlen(a1); result = (char *)off_D200AC(v2 + 1); v4 = result; if ( !result ) return result; v5 = off_D200B8(a1); v6 = v5; if ( !v5 || !*v5 ) { off_D200B0(v4); return v6; } v7 = strchr(v5, 63); v8 = v7; if ( v7 ) *v7 = 0; v9 = v4; v10 = v6; while ( 1 ) { while ( 1 ) { while ( 1 ) { while ( 1 ) { while ( 1 ) { while ( !strncmp("./", v10, 2u) ) { LABEL_14: v14 = (unsigned __int8)v10[2]; v10 += 2; if ( !v14 ) goto LABEL_10; } if ( strncmp("../", v10, 3u) ) break; v11 = (unsigned __int8)v10[3]; v10 += 3; if ( !v11 ) goto LABEL_10; } if ( !strncmp("/./", v10, 3u) ) goto LABEL_14; if ( strcmp("/.", v10) ) break; *++v10 = 47; } if ( strncmp("/../", v10, 4u) ) break; if ( v9 > v4 ) { v15 = (unsigned __int8)*--v9; if ( v15 != 47 ) { while ( v9 != v4 ) { v16 = (unsigned __int8)*--v9; if ( v16 == 47 ) goto LABEL_26; } v9 = v4; } } LABEL_26: *v9 = 0; v17 = (unsigned __int8)v10[3]; v10 += 3; if ( !v17 ) goto LABEL_10; } if ( strcmp("/..", v10) ) break; v10[2] = 47; if ( v9 > v4 ) { v18 = (unsigned __int8)*--v9; if ( v18 != 47 ) { while ( v9 != v4 ) { v19 = (unsigned __int8)*--v9; if ( v19 == 47 ) goto LABEL_35; } v9 = v4; } } LABEL_35: *v9 = 0; v20 = (unsigned __int8)v10[2]; v10 += 2; if ( !v20 ) goto LABEL_10; } if ( !strcmp(".", v10) || !strcmp("..", v10) ) break; while ( 1 ) { *v9 = *v10; v21 = (unsigned __int8)v10[1]; v22 = v21 == 47; if ( v21 != 47 ) v22 = v21 == 0; v23 = !v22; if ( v22 ) break; ++v9; ++v10; } *++v9 = v23; if ( !*++v10 ) goto LABEL_10; } *v10 = 0; LABEL_10: if ( v8 ) { v12 = &a1[v8 - v6]; v13 = strlen(v12); memcpy(v9, v12, v13 + 1); } off_D200B0(v6); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source