// // EndLevelLayer::getCoinString from 0x140205c80 to 0x140205fd6 (854 bytes) // // 2 xrefs: // > EndLevelLayer::customSetup @ 0x140204ad5 // > @ 0x14091b158 // // 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 11:28:15 +0000 // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall EndLevelLayer::getCoinString(__int64 a1, _QWORD *a2) { int *v4; // rcx int v5; // r12d int v6; // r13d int v7; // r14d char v8; // bl void **v9; // rdx cocos2d::CCString *v10; // rax const char *CString; // rax size_t v12; // r8 void *v13; // rcx void *Block[2]; // [rsp+40h] [rbp-30h] BYREF __int64 v16; // [rsp+50h] [rbp-20h] unsigned __int64 v17; // [rsp+58h] [rbp-18h] if ( *(_QWORD *)(a1 + 608) ) { *(_OWORD *)Block = 0; Block[0] = sub_14003D460(0x20u); v16 = 17; v17 = 31; strcpy((char *)Block[0], "all coins"); v4 = *(int **)(*(_QWORD *)(a1 + 608) + 2168LL); v5 = v4[270] - v4[271]; v6 = v4[273] - v4[274]; v7 = v4[276] - v4[277]; if ( v4[259] >= 2 && (v5 == 1 || v6 == 1 || v7 == 1) ) { v16 = 5; memmove(Block[0], "coin ", 5u); *((_BYTE *)Block[0] + 5) = 0; v8 = 1; if ( v5 != 1 ) { v8 = 0; sub_140044D80(Block, "1", 9u); } if ( v6 != 1 ) { if ( !v8 ) sub_140044D80(Block, ", ", 2u); v8 = 0; sub_140044D80(Block, "2", 9u); } if ( v7 != 1 && *(int *)(*(_QWORD *)(*(_QWORD *)(a1 + 608) + 2168LL) + 1036LL) >= 3 ) { if ( !v8 ) sub_140044D80(Block, ", ", 2u); sub_140044D80(Block, "3", 9u); } } v9 = Block; if ( v17 > 0xF ) v9 = (void **)Block[0]; v10 = cocos2d::CCString::createWithFormat("You need to collect %s to verify the level!", (const char *)v9); CString = cocos2d::CCString::getCString(v10); *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 0; v12 = -1; do ++v12; while ( CString[v12] ); sub_14003D230(a2, CString, v12); if ( v17 > 0xF ) { v13 = Block[0]; if ( v17 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } } else { *(_OWORD *)a2 = 0; a2[2] = 0; a2[3] = 15; *(_BYTE *)a2 = 0; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source