// // sub_1000E7B50 from 0x1000e7b50 to 0x1000e7cb0 (352 bytes) // // 1 xrefs: // > sub_1000D5190 @ 0x1000d558f // // 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_1000E7B50(char *a1) { std::__thread_specific_ptr *v1; // rax const void *v2; // rsi _BYTE *v3; // r14 _BYTE *v4; // r15 std::__thread_struct *v5; // r14 std::string v7; // [rsp+0h] [rbp-70h] BYREF char *v8; // [rsp+18h] [rbp-58h] __int128 v9; // [rsp+20h] [rbp-50h] void *v10; // [rsp+30h] [rbp-40h] std::string __str; // [rsp+40h] [rbp-30h] BYREF v8 = a1; v1 = std::__thread_local_data(); v2 = *(const void **)a1; *(_QWORD *)a1 = 0; pthread_setspecific(v1->__key_, v2); v10 = *((void **)a1 + 3); v9 = *(_OWORD *)(a1 + 8); *(_OWORD *)(a1 + 8) = 0; *((_QWORD *)a1 + 3) = 0; __str = *(std::string *)(a1 + 32); *((_OWORD *)a1 + 2) = 0; *((_QWORD *)a1 + 6) = 0; cocos2d::ZipUtils::compressString(&v7); sub_1004F4A50(&__str); *(_BYTE *)(LocalLevelManager::sharedState(0.0) + 601) = 0; if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v7.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_3: v3 = a1 + 32; if ( (v9 & 1) == 0 ) goto LABEL_4; goto LABEL_11; } } else if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_3; } operator delete(__str.__r_.__value_.__l.__data_); v3 = a1 + 32; if ( (v9 & 1) == 0 ) { LABEL_4: v4 = a1 + 8; if ( (*v3 & 1) == 0 ) goto LABEL_5; goto LABEL_12; } LABEL_11: operator delete(v10); v4 = a1 + 8; if ( (*v3 & 1) == 0 ) { LABEL_5: if ( (*v4 & 1) == 0 ) goto LABEL_6; LABEL_13: operator delete(*((void **)a1 + 3)); v5 = *(std::__thread_struct **)a1; *(_QWORD *)a1 = 0; if ( !v5 ) goto LABEL_8; goto LABEL_7; } LABEL_12: operator delete(*((void **)a1 + 6)); if ( (*v4 & 1) != 0 ) goto LABEL_13; LABEL_6: v5 = *(std::__thread_struct **)a1; *(_QWORD *)a1 = 0; if ( v5 ) { LABEL_7: std::__thread_struct::~__thread_struct(v5); operator delete(v5); } LABEL_8: operator delete(a1); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source