// // sub_10043DEA0 from 0x10043dea0 to 0x10043e038 (408 bytes) // // 2 xrefs: // > cocos2d::CCFileUtils::fullPathForFilename @ 0x10043bfef // > cocos2d::CCTMXMapInfo::startElement @ 0x1004cde1b // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // char *__fastcall sub_10043DEA0(__int64 **a1, unsigned __int8 *a2, __int64 a3) { __int64 *v3; // rax unsigned int v4; // r8d size_t v5; // r8 const void *v6; // r14 __int64 *v7; // rbx __int64 *v8; // rcx unsigned int v9; // r12d size_t v10; // r12 const void *v11; // r13 size_t v12; // rbx size_t v13; // r15 int v14; // eax bool v15; // cl int v16; // eax bool v17; // cl __int64 *v18; // r14 char *v19; // r15 __int64 *v20; // rax __int64 *v23; // [rsp+10h] [rbp-30h] v3 = a1[1]; if ( v3 ) { v4 = *a2; if ( (v4 & 1) != 0 ) { v5 = *((_QWORD *)a2 + 1); v6 = *((const void **)a2 + 2); } else { v5 = v4 >> 1; v6 = a2 + 1; } while ( 1 ) { while ( 1 ) { v9 = *((unsigned __int8 *)v3 + 32); v23 = v3; if ( (v9 & 1) != 0 ) { v10 = v3[5]; v11 = (const void *)v3[6]; } else { v10 = v9 >> 1; v11 = (char *)v3 + 33; } v12 = v5; if ( v10 < v5 ) v12 = v10; v13 = v5; v14 = memcmp(v6, v11, v12); v15 = v13 < v10; if ( v14 ) v15 = v14 < 0; if ( !v15 ) break; v5 = v13; v8 = v23; v3 = (__int64 *)*v23; v7 = v23; if ( !*v23 ) goto LABEL_20; } v16 = memcmp(v11, v6, v12); v17 = v10 < v13; if ( v16 ) v17 = v16 < 0; if ( !v17 ) return (char *)v23; v5 = v13; v8 = v23; v3 = (__int64 *)v23[1]; if ( !v3 ) { v7 = v23 + 1; goto LABEL_20; } } } else { v7 = (__int64 *)(a1 + 1); v8 = (__int64 *)(a1 + 1); LABEL_20: v18 = v8; v19 = (char *)operator new(0x50u); *((_QWORD *)v19 + 6) = *(_QWORD *)(a3 + 16); *((_OWORD *)v19 + 2) = *(_OWORD *)a3; *(_OWORD *)a3 = 0; *(_QWORD *)(a3 + 16) = 0; *((_QWORD *)v19 + 9) = *(_QWORD *)(a3 + 40); *(_OWORD *)(v19 + 56) = *(_OWORD *)(a3 + 24); *(_OWORD *)(a3 + 24) = 0; *(_QWORD *)(a3 + 40) = 0; *(_OWORD *)v19 = 0; *((_QWORD *)v19 + 2) = v18; *v7 = (__int64)v19; v20 = (__int64 *)**a1; if ( v20 ) *a1 = v20; sub_100054DD0(a1[1], (__int64 *)v19); a1[2] = (__int64 *)((char *)a1[2] + 1); } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source