// // SecretRewardsLayer::updateUnlockedGoldLabel from 0x14056d590 to 0x14056d6fe (366 bytes) // // 3 xrefs: // > SecretRewardsLayer::init @ 0x140569a19 // > SecretRewardsLayer::onGoldChest @ 0x14056d192 // > @ 0x14092c6e4 // // 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:34:20 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall SecretRewardsLayer::updateUnlockedGoldLabel(__int64 a1) { __int64 v2; // r8 int v3; // esi int v4; // ebp __int64 v5; // rax __int64 v6; // rax __int64 i; // rdx int v8; // ecx __int64 v9; // rax __int64 v10; // rax __int64 j; // rdx int v12; // ecx void (__fastcall **v13)(__int64, const char *); // rdi __int64 v14; // rbx cocos2d::CCString *v15; // rax const char *CString; // rax __int64 (__fastcall ***v17)(_QWORD, void **); // rcx void *v19; // [rsp+40h] [rbp+8h] BYREF v2 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v19 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v2 = qword_14090BFE0; } v3 = 0; v4 = 0; v5 = *(_QWORD *)(v2 + 864); if ( v5 ) { v6 = *(_QWORD *)(v5 + 56); if ( v6 ) { for ( i = *(_QWORD *)(v6 + 288); ; i = *(_QWORD *)(i + 288) ) { v8 = v4++; if ( *(_DWORD *)(*(_QWORD *)(v6 + 264) + 64LL) != 9 ) v4 = v8; v6 = i; if ( !i ) break; } } } v9 = *(_QWORD *)(v2 + 352); if ( v9 ) { v10 = *(_QWORD *)(v9 + 56); if ( v10 ) { for ( j = *(_QWORD *)(v10 + 288); ; j = *(_QWORD *)(j + 288) ) { v12 = v3++; if ( *(_DWORD *)(*(_QWORD *)(v10 + 264) + 64LL) != 9 ) v3 = v12; v10 = j; if ( !j ) break; } } } v13 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 456) + 360LL); v14 = *(_QWORD *)(a1 + 456); v15 = cocos2d::CCString::createWithFormat("%i / %i", v4, v3); CString = cocos2d::CCString::getCString(v15); (*v13)(v14 + 360, CString); v17 = (__int64 (__fastcall ***)(_QWORD, void **))(*(_QWORD *)(a1 + 456) + 368LL); if ( v4 < v3 ) { qmemcpy(&v19, "dWp", 3); } else { LOWORD(v19) = -206; BYTE2(v19) = 50; } return (**v17)(v17, &v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source