// // sub_10053CE00 from 0x10053ce00 to 0x10053cfb4 (436 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051dd4f // // 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:55 +0000 // void __fastcall sub_10053CE00(__int64 a1, __int64 a2, unsigned __int8 *a3) { unsigned __int8 *v5; // rsi unsigned int v6; // r12d unsigned __int64 v7; // r12 unsigned __int8 *v8; // r15 size_t v9; // r12 __int64 v10; // rbx char *v11; // r13 char *v12; // rdi unsigned int v13; // r15d size_t v14; // r14 char *v15; // r14 __int64 v16; // rax __int64 v17; // rbx __int64 v18; // r14 __int64 v19; // r12 __int64 v20; // rax __int64 v21; // rdi __int64 v22; // rdi size_t v23[3]; // [rsp+0h] [rbp-60h] BYREF __int64 v24; // [rsp+18h] [rbp-48h] char __dst[8]; // [rsp+20h] [rbp-40h] BYREF size_t v26; // [rsp+28h] [rbp-38h] char *v27; // [rsp+30h] [rbp-30h] if ( (*a3 & 1) != 0 ) v5 = *((unsigned __int8 **)a3 + 2); else v5 = a3 + 1; GameLevelManager::removeDLFromActive(a1, v5); v6 = *a3; if ( (v6 & 1) == 0 ) { if ( (unsigned __int8)v6 >= 0x18u ) { v7 = v6 >> 1; v8 = a3 + 1; goto LABEL_9; } LABEL_27: sub_100056810(); } v7 = *((_QWORD *)a3 + 1); if ( v7 <= 0xB ) goto LABEL_27; v8 = *((unsigned __int8 **)a3 + 2); LABEL_9: v24 = a1; v9 = v7 - 12; v10 = a2; if ( v9 >= 0x17 ) { v14 = 26; if ( (v9 | 7) != 0x17 ) v14 = (v9 | 7) + 1; v11 = (char *)operator new(v14); v27 = v11; *(_QWORD *)__dst = v14 + 1; v26 = v9; LABEL_16: memmove(v11, v8 + 12, v9); v11[v9] = 0; if ( (__dst[0] & 1) == 0 ) goto LABEL_12; LABEL_17: v15 = v27; v13 = atoi(v27); v12 = v15; operator delete(v15); goto LABEL_18; } v11 = &__dst[1]; __dst[0] = 2 * v9; if ( v9 ) goto LABEL_16; __dst[1] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_17; LABEL_12: v12 = &__dst[1]; v13 = atoi(&__dst[1]); LABEL_18: *(_DWORD *)__dst = 0; v16 = sub_100577350(v12, v10, __dst); v17 = v24; if ( v16 && *(_DWORD *)__dst == v13 ) { v18 = v16; v19 = GameStatsManager::sharedState(); v20 = GameStatsManager::sharedState(); GameStatsManager::getNotificationRewardKey(v23, v20, v13); GameStatsManager::storeOnlineChest(v19, (__int64)v23, v18); if ( (v23[0] & 1) != 0 ) operator delete((void *)v23[2]); v21 = *(_QWORD *)(v17 + 456); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v21 + 16LL))(v21, v13); } else { v22 = *(_QWORD *)(v24 + 456); if ( v22 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v22 + 24LL))(v22, v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source