// // sub_10040DFD4 from 0x10040dfd4 to 0x10040e0f0 (284 bytes) // // 2 xrefs: // > sub_1004E0E28 @ 0x1004e0f20 // > sub_1004E2024 @ 0x1004e212c // // 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 11:04:47 +0000 // __int64 __fastcall sub_10040DFD4(__int64 a1, char *a2, int a3) { __int64 *v5; // x20 __int64 v6; // x19 int v7; // w23 size_t v8; // x2 unsigned __int64 v9; // x9 void **v10; // x0 void **v11; // x1 _BOOL4 v12; // w24 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF unsigned __int8 v15; // [xsp+17h] [xbp-49h] void *v16[2]; // [xsp+18h] [xbp-48h] BYREF unsigned __int8 v17; // [xsp+2Fh] [xbp-31h] sub_10004B424(a2, (__int64 *)v16); v5 = *((__int64 **)sub_100400EBC(a1, a3) + 2); if ( v5 ) { v6 = 0; while ( (int)v6 >= 1 && *((_DWORD *)v5 + 4) > (int)v6 ) { LABEL_23: v5 = (__int64 *)*v5; if ( !v5 ) goto LABEL_26; } sub_10004B424((char *)v5 + 24, (__int64 *)__p); v7 = (char)v15; if ( (v15 & 0x80u) == 0 ) v8 = v15; else v8 = (size_t)__p[1]; v9 = v17; if ( (v17 & 0x80u) != 0 ) v9 = (unsigned __int64)v16[1]; if ( v8 == v9 ) { if ( (v15 & 0x80u) == 0 ) v10 = __p; else v10 = (void **)__p[0]; if ( (v17 & 0x80u) == 0 ) v11 = v16; else v11 = (void **)v16[0]; v12 = memcmp(v10, v11, v8) == 0; if ( (v7 & 0x80000000) == 0 ) { LABEL_21: if ( v12 ) v6 = *((unsigned int *)v5 + 4); goto LABEL_23; } } else { v12 = 0; if ( ((char)v15 & 0x80000000) == 0 ) goto LABEL_21; } operator delete(__p[0]); goto LABEL_21; } v6 = 0; LABEL_26: if ( (char)v17 < 0 ) operator delete(v16[0]); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source