// // sub_10052EA10 from 0x10052ea10 to 0x10052ebf5 (485 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051fc9a // // 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:49 +0000 // char __fastcall sub_10052EA10(__int64 a1, unsigned __int8 *a2, __int64 a3) { __int64 v4; // rdx const void *v5; // rdi unsigned __int64 v6; // rcx size_t v7; // rdx bool v8; // r15 unsigned int v9; // eax __int64 v10; // r14 __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 (__fastcall ***v16)(_QWORD); // rdi _WORD __s2[23]; // [rsp+1h] [rbp-2Fh] BYREF if ( (*(_BYTE *)a3 & 1) != 0 ) v4 = *(_QWORD *)(a3 + 16); else v4 = a3 + 1; GameLevelManager::removeDLFromActive(a1, v4); *(_BYTE *)(a1 + 912) = 1; strcpy((char *)__s2, "-1"); v5 = a2 + 1; v6 = *a2 >> 1; if ( (*a2 & 1) != 0 ) { v5 = *((const void **)a2 + 2); v6 = *((_QWORD *)a2 + 1); } v7 = 2; if ( v6 < 2 ) v7 = v6; v8 = v6 == 2; LOBYTE(v9) = memcmp(v5, __s2, v7) == 0; if ( (v8 & (unsigned __int8)v9) == 0 ) { v10 = sub_10053FBE0(a2, ","); if ( (unsigned int)sub_1007FEF90(v10) ) { v11 = cocos2d::CCArray::stringAtIndex(v10, 0); *(_DWORD *)(a1 + 892) = cocos2d::CCString::intValue(v11); } if ( (unsigned int)sub_1007FEF90(v10) >= 2 ) { v12 = cocos2d::CCArray::stringAtIndex(v10, 1); *(_DWORD *)(a1 + 896) = cocos2d::CCString::intValue(v12); if ( (unsigned int)sub_1007FEF90(v10) < 3 ) { LABEL_13: if ( (unsigned int)sub_1007FEF90(v10) < 4 ) goto LABEL_14; goto LABEL_19; } } else if ( (unsigned int)sub_1007FEF90(v10) < 3 ) { goto LABEL_13; } v13 = cocos2d::CCArray::stringAtIndex(v10, 2); *(_DWORD *)(a1 + 900) = cocos2d::CCString::intValue(v13); if ( (unsigned int)sub_1007FEF90(v10) < 4 ) { LABEL_14: v9 = sub_1007FEF90(v10); if ( v9 < 5 ) goto LABEL_15; goto LABEL_20; } LABEL_19: v14 = cocos2d::CCArray::stringAtIndex(v10, 3); *(_DWORD *)(a1 + 904) = cocos2d::CCString::intValue(v14); v9 = sub_1007FEF90(v10); if ( v9 < 5 ) { LABEL_15: if ( *(_BYTE *)(a1 + 932) ) { LABEL_23: v16 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 1440); if ( v16 ) LOBYTE(v9) = (**v16)(v16); return v9; } LABEL_21: v9 = sub_1007FEF90(v10); if ( v9 >= 4 ) { *(_OWORD *)(a1 + 916) = *(_OWORD *)(a1 + 892); *(_BYTE *)(a1 + 932) = 1; } goto LABEL_23; } LABEL_20: v15 = cocos2d::CCArray::stringAtIndex(v10, 4); v9 = cocos2d::CCString::intValue(v15); *(_DWORD *)(a1 + 908) = v9; if ( *(_BYTE *)(a1 + 932) ) goto LABEL_23; goto LABEL_21; } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source