// // sub_1000E7DF0 from 0x1000e7df0 to 0x1000e7fe5 (501 bytes) // // 1 xrefs: // > sub_1000D5780 @ 0x1000d5e9f // // 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:21:05 +0000 // void *__fastcall sub_1000E7DF0(char *a1) { std::__thread_specific_ptr *v1; // rax const void *v2; // rsi unsigned int v3; // eax size_t v4; // r14 unsigned __int64 v5; // r15 unsigned int v6; // r13d char *v7; // r12 char *v8; // rsi size_t v9; // r13 std::string v11; // [rsp+8h] [rbp-A8h] BYREF __int128 v12; // [rsp+20h] [rbp-90h] void *v13; // [rsp+30h] [rbp-80h] std::string __str; // [rsp+40h] [rbp-70h] BYREF char *v15; // [rsp+60h] [rbp-50h] BYREF unsigned int v16; // [rsp+68h] [rbp-48h] int v17; // [rsp+6Ch] [rbp-44h] __int128 __dst; // [rsp+70h] [rbp-40h] BYREF void *__p; // [rsp+80h] [rbp-30h] v15 = a1; v1 = std::__thread_local_data(); v2 = *(const void **)a1; *(_QWORD *)a1 = 0; pthread_setspecific(v1->__key_, v2); v13 = *((void **)a1 + 10); v12 = *((_OWORD *)a1 + 4); *((_OWORD *)a1 + 4) = 0; *((_QWORD *)a1 + 10) = 0; __str = *(std::string *)(a1 + 88); *(_OWORD *)(a1 + 88) = 0; *((_QWORD *)a1 + 13) = 0; cocos2d::ZipUtils::compressString(&v11); sub_1004F4A50(&__str); v3 = (unsigned __int8)a1[32]; if ( (v3 & 1) != 0 ) v4 = *((_QWORD *)a1 + 5); else v4 = v3 >> 1; v5 = v4 + 1; if ( v4 + 1 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = *((_DWORD *)a1 + 14); if ( v5 < 0x17 ) { __dst = 0; __p = nullptr; LOBYTE(__dst) = 2 * v5; v7 = (char *)&__dst + 1; if ( !v4 ) goto LABEL_14; if ( (v3 & 1) != 0 ) goto LABEL_8; LABEL_12: v8 = a1 + 33; goto LABEL_13; } v17 = (unsigned __int8)a1[32]; v16 = v6; v9 = 26; if ( (v5 | 7) != 0x17 ) v9 = (v5 | 7) + 1; v7 = (char *)operator new(v9); *(_QWORD *)&__dst = v9 | 1; __p = v7; *((_QWORD *)&__dst + 1) = v4 + 1; v6 = v16; if ( (v17 & 1) == 0 ) goto LABEL_12; LABEL_8: v8 = *((char **)a1 + 6); LABEL_13: memmove(v7, v8, v4); LABEL_14: *(_WORD *)&v7[v4] = 95; sub_100981DA0(a1 + 8, v6, &__dst, 0); if ( (__dst & 1) != 0 ) operator delete(__p); *(_BYTE *)(LocalLevelManager::sharedState(0.0) + 601) = 0; if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 ) { if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_18; LABEL_22: operator delete(__str.__r_.__value_.__l.__data_); if ( (v12 & 1) == 0 ) goto LABEL_20; goto LABEL_19; } operator delete(v11.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_22; LABEL_18: if ( (v12 & 1) != 0 ) LABEL_19: operator delete(v13); LABEL_20: sub_1000E80B0(&v15); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source