// // sub_1004EE570 from 0x1004ee570 to 0x1004ee61c (172 bytes) // // 5 xrefs: // > sub_1006CC260 @ 0x1006cc38c // > sub_1006CC260 @ 0x1006cc3fe // > LocalLevelManager::filesPicked @ 0x1006cf33e // > sub_10097F2B0 @ 0x10097f405 // > sub_10097F2B0 @ 0x10097f49b // // This function is hookable on this platform (idp: pc, 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 12:31:23 +0000 // bool __fastcall sub_1004EE570(unsigned __int8 *a1, unsigned __int8 *a2) { size_t v2; // r8 size_t v3; // rbx size_t v4; // rcx unsigned int v5; // edx size_t v6; // r14 bool v7; // cf size_t v8; // rcx unsigned __int8 *v9; // rax size_t v10; // r8 unsigned __int8 *v11; // rdi size_t v12; // rbx unsigned __int8 *v14; // rsi v2 = *a1 >> 1; v3 = *((_QWORD *)a1 + 1); v4 = v3; if ( (*a1 & 1) == 0 ) v4 = *a1 >> 1; v5 = *a2; if ( (v5 & 1) != 0 ) { v6 = *((_QWORD *)a2 + 1); v7 = v4 < v6; v8 = v4 - v6; if ( !v7 ) goto LABEL_5; return 0; } v6 = v5 >> 1; v7 = v4 < v6; v8 = v4 - v6; if ( v7 ) return 0; LABEL_5: v9 = *((unsigned __int8 **)a2 + 2); if ( (*a1 & 1) != 0 ) { if ( v6 != -1 ) { v7 = v3 < v8; v12 = v3 - v8; if ( !v7 ) { if ( v12 >= v6 ) v12 = v6; v11 = *((unsigned __int8 **)a1 + 2); goto LABEL_18; } } LABEL_21: sub_100056810(); } v7 = v2 < v8; v10 = v2 - v8; if ( v7 || v6 == -1 ) goto LABEL_21; if ( v10 >= v6 ) v10 = v6; v11 = a1 + 1; v12 = v10; LABEL_18: v14 = a2 + 1; if ( (v5 & 1) == 0 ) v9 = v14; return memcmp(&v11[v8], v9, v12) == 0 && v12 == v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source