// // AutoSaveSettingsLayer::getValue from 0x14009bfa0 to 0x14009c2af (783 bytes) // // 2 xrefs: // > @ 0x14071b7f8 // > @ 0x140912efc // // 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 float __fastcall AutoSaveSettingsLayer::getValue(__int64 a1, int a2) { __int64 v2; // rcx const char *v3; // rdx float result; // xmm0_4 __int64 v5; // rbx cocos2d::CCString *v6; // rax int v7; // ebx void *v8; // r8 int v9; // eax __int64 v10; // rbx cocos2d::CCString *v11; // rax void *v12; // r8 void *v13; // [rsp+30h] [rbp-30h] void *v14; // [rsp+30h] [rbp-30h] void *v15; // [rsp+30h] [rbp-30h] void *v16; // [rsp+30h] [rbp-30h] void *Block[2]; // [rsp+38h] [rbp-28h] BYREF __int64 v18; // [rsp+48h] [rbp-18h] unsigned __int64 v19; // [rsp+50h] [rbp-10h] switch ( a2 ) { case -4: v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v16 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } *(_OWORD *)Block = 0; v18 = 3; v19 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0187", 4u); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v10 + 432), Block); v7 = cocos2d::CCString::intValue(v11); if ( v19 > 0xF ) { v12 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } v9 = 3600; break; case -3: v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v15 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = "0186"; LABEL_9: if ( (unsigned __int8)GameManager::getGameVariable(v2, v3) ) return 1.0; else return 0.0; case -2: v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v14 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } *(_OWORD *)Block = 0; v18 = 3; v19 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0185", 4u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v5 + 432), Block); v7 = cocos2d::CCString::intValue(v6); if ( v19 > 0xF ) { v8 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } v9 = 300; break; case -1: v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v13 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = "0184"; goto LABEL_9; default: SetupTriggerPopup::getValue(); return result; } if ( v7 <= 0 ) v7 = v9; return (float)(v7 / 0x3Cu); }
GD Web Decomp Icon

GD Web Decomp

Raw Source