// // AutoSaveSettingsLayer::valueDidChange from 0x14009c2b0 to 0x14009c601 (849 bytes) // // 2 xrefs: // > @ 0x14071b7f0 // > @ 0x140912f08 // // 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:26:05 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall AutoSaveSettingsLayer::valueDidChange(__int64 a1, int a2, float a3) { __int64 v3; // rcx int v4; // edi __int64 v5; // rbx __int64 v6; // rbx struct cocos2d::CCString *v7; // rax void *v8; // rcx __int64 v9; // rcx int v10; // edi __int64 v11; // rbx __int64 v12; // rbx struct cocos2d::CCString *v13; // rax void *v14; // [rsp+30h] [rbp-30h] void *v15; // [rsp+30h] [rbp-30h] void *v16; // [rsp+30h] [rbp-30h] void *v17; // [rsp+30h] [rbp-30h] void *Block[2]; // [rsp+38h] [rbp-28h] BYREF __int64 v19; // [rsp+48h] [rbp-18h] unsigned __int64 v20; // [rsp+50h] [rbp-10h] if ( a2 == -4 ) { v10 = 60 * (int)a3; if ( v10 > 18000 ) v10 = 18000; if ( v10 < 600 ) v10 = 600; v11 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v11 = qword_14090BFD0; } *(_OWORD *)Block = 0; v19 = 3; v20 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0187", 4u); v12 = *(_QWORD *)(v11 + 432); v13 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v10); cocos2d::CCDictionary::setObject(v12, v13, Block); if ( v20 > 0xF ) { v8 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } goto LABEL_31; } } else if ( a2 == -3 ) { v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v16 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } GameManager::setGameVariable(v9, "0186", a3 != 0.0); } else { if ( a2 != -2 ) { if ( a2 == -1 ) { v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v14 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } GameManager::setGameVariable(v3, "0184", a3 != 0.0); } return; } v4 = 60 * (int)a3; if ( v4 > 3600 ) v4 = 3600; if ( v4 < 60 ) v4 = 60; v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v15 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } *(_OWORD *)Block = 0; v19 = 3; v20 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0185", 4u); v6 = *(_QWORD *)(v5 + 432); v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v4); cocos2d::CCDictionary::setObject(v6, v7, Block); if ( v20 > 0xF ) { v8 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_31: j_j_free(v8); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source