{"type": "func", "start": 4295544656, "end": 4295545368, "name": "GameStatsManager::encodeDataTo", "pseudocode": "// \n// GameStatsManager::encodeDataTo from 0x10008cf50 to 0x10008d218 (712 bytes)\n// \n// 1 xrefs:\n// > GameManager::encodeDataTo @ 0x10038b270\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameStatsManager::encodeDataTo(GameStatsManager *a1, DS_Dictionary *a2)\n{\n  GameStatsManager::preSaveGameStats(a1);\n  DS_Dictionary::setDictForKey(a2, \"GS_value\", a1->m_playerStats);\n  DS_Dictionary::setDictForKey(a2, \"GS_completed\", a1->m_completedLevels);\n  DS_Dictionary::setDictForKey(a2, \"GS_3\", a1->m_verifiedUserCoins);\n  DS_Dictionary::setDictForKey(a2, \"GS_4\", a1->m_pendingUserCoins);\n  DS_Dictionary::setDictForKey(a2, \"GS_5\", a1->m_completedMappacks);\n  DS_Dictionary::setDictForKey(a2, \"GS_6\", a1->m_purchasedItems);\n  DS_Dictionary::setDictForKey(a2, \"GS_7\", a1->m_onlineCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_23\", a1->m_gauntletCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_8\", a1->m_unusedCurrencyAwardDict);\n  DS_Dictionary::setDictForKey(a2, \"GS_9\", a1->m_onlineStars);\n  DS_Dictionary::setDictForKey(a2, \"GS_10\", a1->m_mainCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_16\", a1->m_timelyCurrencyScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_17\", a1->m_timelyStars);\n  DS_Dictionary::setDictForKey(a2, \"GS_18\", a1->m_gauntletDiamondScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_24\", a1->m_timelyDiamondScores);\n  DS_Dictionary::setDictForKey(a2, \"GS_11\", a1->m_dailyChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_22\", a1->m_worldAdvertChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_25\", a1->m_weeklyChest);\n  DS_Dictionary::setDictForKey(a2, \"GS_31\", a1->m_eventChest);\n  DS_Dictionary::setDictForKey(a2, \"GS_12\", a1->m_activeChallenges);\n  DS_Dictionary::setDictForKey(a2, \"GS_15\", a1->m_upcomingChallenges);\n  DS_Dictionary::setDictForKey(a2, \"GS_14\", a1->m_challengeDiamonds);\n  DS_Dictionary::setDictForKey(a2, \"GS_27\", a1->m_completedLists);\n  DS_Dictionary::setDictForKey(a2, \"GS_19\", a1->m_treasureRoomChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_30\", a1->m_wraithChests);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GS_20\", a1->m_bonusKey.random - a1->m_bonusKey.seed);\n  DS_Dictionary::setDictForKey(a2, \"GS_21\", a1->m_miscChests);\n  DS_Dictionary::setDictForKey(a2, \"GS_28\", a1->m_enabledItems);\n  DS_Dictionary::setDictForKey(a2, \"GS_32\", a1->m_unlockedGauntlets);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GS_26\", a1->m_activePath);\n  DS_Dictionary::setBoolForKey_1(a2, \"GS_29\", a1->m_pathBugFixed);\n}", "assembly": "; \n; GameStatsManager::encodeDataTo from 0x10008cf50 to 0x10008d218 (712 bytes)\n; \n; 1 xrefs:\n; > GameManager::encodeDataTo @ 0x10038b270\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10008cf50\nmov     rbp, rsp                                                       ; +0x1, 0x10008cf51\npush    r14                                                            ; +0x4, 0x10008cf54\npush    rbx                                                            ; +0x6, 0x10008cf56\nmov     rbx, rsi                                                       ; +0x7, 0x10008cf57\nmov     r14, rdi                                                       ; +0xa, 0x10008cf5a\ncall    GameStatsManager__preSaveGameStats                             ; +0xd, 0x10008cf5d\nmov     rdx, [r14+208h]                                                ; +0x12, 0x10008cf62\nlea     rsi, aGsValue; \"GS_value\"                                      ; +0x19, 0x10008cf69\nmov     rdi, rbx                                                       ; +0x20, 0x10008cf70\ncall    DS_Dictionary__setDictForKey                                   ; +0x23, 0x10008cf73\nmov     rdx, [r14+260h]                                                ; +0x28, 0x10008cf78\nlea     rsi, aGsCompleted; \"GS_completed\"                              ; +0x2f, 0x10008cf7f\nmov     rdi, rbx                                                       ; +0x36, 0x10008cf86\ncall    DS_Dictionary__setDictForKey                                   ; +0x39, 0x10008cf89\nmov     rdx, [r14+268h]                                                ; +0x3e, 0x10008cf8e\nlea     rsi, aGs3; \"GS_3\"                                              ; +0x45, 0x10008cf95\nmov     rdi, rbx                                                       ; +0x4c, 0x10008cf9c\ncall    DS_Dictionary__setDictForKey                                   ; +0x4f, 0x10008cf9f\nmov     rdx, [r14+270h]                                                ; +0x54, 0x10008cfa4\nlea     rsi, aGs4; \"GS_4\"                                              ; +0x5b, 0x10008cfab\nmov     rdi, rbx                                                       ; +0x62, 0x10008cfb2\ncall    DS_Dictionary__setDictForKey                                   ; +0x65, 0x10008cfb5\nmov     rdx, [r14+2D0h]                                                ; +0x6a, 0x10008cfba\nlea     rsi, aGs5; \"GS_5\"                                              ; +0x71, 0x10008cfc1\nmov     rdi, rbx                                                       ; +0x78, 0x10008cfc8\ncall    DS_Dictionary__setDictForKey                                   ; +0x7b, 0x10008cfcb\nmov     rdx, [r14+278h]                                                ; +0x80, 0x10008cfd0\nlea     rsi, aGs6; \"GS_6\"                                              ; +0x87, 0x10008cfd7\nmov     rdi, rbx                                                       ; +0x8e, 0x10008cfde\ncall    DS_Dictionary__setDictForKey                                   ; +0x91, 0x10008cfe1\nmov     rdx, [r14+280h]                                                ; +0x96, 0x10008cfe6\nlea     rsi, aGs7; \"GS_7\"                                              ; +0x9d, 0x10008cfed\nmov     rdi, rbx                                                       ; +0xa4, 0x10008cff4\ncall    DS_Dictionary__setDictForKey                                   ; +0xa7, 0x10008cff7\nmov     rdx, [r14+290h]                                                ; +0xac, 0x10008cffc\nlea     rsi, aGs23; \"GS_23\"                                            ; +0xb3, 0x10008d003\nmov     rdi, rbx                                                       ; +0xba, 0x10008d00a\ncall    DS_Dictionary__setDictForKey                                   ; +0xbd, 0x10008d00d\nmov     rdx, [r14+2C0h]                                                ; +0xc2, 0x10008d012\nlea     rsi, aGs8; \"GS_8\"                                              ; +0xc9, 0x10008d019\nmov     rdi, rbx                                                       ; +0xd0, 0x10008d020\ncall    DS_Dictionary__setDictForKey                                   ; +0xd3, 0x10008d023\nmov     rdx, [r14+2A0h]                                                ; +0xd8, 0x10008d028\nlea     rsi, aGs9; \"GS_9\"                                              ; +0xdf, 0x10008d02f\nmov     rdi, rbx                                                       ; +0xe6, 0x10008d036\ncall    DS_Dictionary__setDictForKey                                   ; +0xe9, 0x10008d039\nmov     rdx, [r14+288h]                                                ; +0xee, 0x10008d03e\nlea     rsi, aGs10; \"GS_10\"                                            ; +0xf5, 0x10008d045\nmov     rdi, rbx                                                       ; +0xfc, 0x10008d04c\ncall    DS_Dictionary__setDictForKey                                   ; +0xff, 0x10008d04f\nmov     rdx, [r14+298h]                                                ; +0x104, 0x10008d054\nlea     rsi, aGs16; \"GS_16\"                                            ; +0x10b, 0x10008d05b\nmov     rdi, rbx                                                       ; +0x112, 0x10008d062\ncall    DS_Dictionary__setDictForKey                                   ; +0x115, 0x10008d065\nmov     rdx, [r14+2A8h]                                                ; +0x11a, 0x10008d06a\nlea     rsi, aGs17; \"GS_17\"                                            ; +0x121, 0x10008d071\nmov     rdi, rbx                                                       ; +0x128, 0x10008d078\ncall    DS_Dictionary__setDictForKey                                   ; +0x12b, 0x10008d07b\nmov     rdx, [r14+2B0h]                                                ; +0x130, 0x10008d080\nlea     rsi, aGs18; \"GS_18\"                                            ; +0x137, 0x10008d087\nmov     rdi, rbx                                                       ; +0x13e, 0x10008d08e\ncall    DS_Dictionary__setDictForKey                                   ; +0x141, 0x10008d091\nmov     rdx, [r14+2B8h]                                                ; +0x146, 0x10008d096\nlea     rsi, aGs24; \"GS_24\"                                            ; +0x14d, 0x10008d09d\nmov     rdi, rbx                                                       ; +0x154, 0x10008d0a4\ncall    DS_Dictionary__setDictForKey                                   ; +0x157, 0x10008d0a7\nmov     rdx, [r14+1E0h]                                                ; +0x15c, 0x10008d0ac\nlea     rsi, aGs11; \"GS_11\"                                            ; +0x163, 0x10008d0b3\nmov     rdi, rbx                                                       ; +0x16a, 0x10008d0ba\ncall    DS_Dictionary__setDictForKey                                   ; +0x16d, 0x10008d0bd\nmov     rdx, [r14+1E8h]                                                ; +0x172, 0x10008d0c2\nlea     rsi, aGs22; \"GS_22\"                                            ; +0x179, 0x10008d0c9\nmov     rdi, rbx                                                       ; +0x180, 0x10008d0d0\ncall    DS_Dictionary__setDictForKey                                   ; +0x183, 0x10008d0d3\nmov     rdx, [r14+2E0h]                                                ; +0x188, 0x10008d0d8\nlea     rsi, aGs25; \"GS_25\"                                            ; +0x18f, 0x10008d0df\nmov     rdi, rbx                                                       ; +0x196, 0x10008d0e6\ncall    DS_Dictionary__setDictForKey                                   ; +0x199, 0x10008d0e9\nmov     rdx, [r14+2E8h]                                                ; +0x19e, 0x10008d0ee\nlea     rsi, aGs31; \"GS_31\"                                            ; +0x1a5, 0x10008d0f5\nmov     rdi, rbx                                                       ; +0x1ac, 0x10008d0fc\ncall    DS_Dictionary__setDictForKey                                   ; +0x1af, 0x10008d0ff\nmov     rdx, [r14+1F0h]                                                ; +0x1b4, 0x10008d104\nlea     rsi, aGs12; \"GS_12\"                                            ; +0x1bb, 0x10008d10b\nmov     rdi, rbx                                                       ; +0x1c2, 0x10008d112\ncall    DS_Dictionary__setDictForKey                                   ; +0x1c5, 0x10008d115\nmov     rdx, [r14+1F8h]                                                ; +0x1ca, 0x10008d11a\nlea     rsi, aGs15; \"GS_15\"                                            ; +0x1d1, 0x10008d121\nmov     rdi, rbx                                                       ; +0x1d8, 0x10008d128\ncall    DS_Dictionary__setDictForKey                                   ; +0x1db, 0x10008d12b\nmov     rdx, [r14+2C8h]                                                ; +0x1e0, 0x10008d130\nlea     rsi, aGs14; \"GS_14\"                                            ; +0x1e7, 0x10008d137\nmov     rdi, rbx                                                       ; +0x1ee, 0x10008d13e\ncall    DS_Dictionary__setDictForKey                                   ; +0x1f1, 0x10008d141\nmov     rdx, [r14+2D8h]                                                ; +0x1f6, 0x10008d146\nlea     rsi, aGs27; \"GS_27\"                                            ; +0x1fd, 0x10008d14d\nmov     rdi, rbx                                                       ; +0x204, 0x10008d154\ncall    DS_Dictionary__setDictForKey                                   ; +0x207, 0x10008d157\nmov     rdx, [r14+2F0h]                                                ; +0x20c, 0x10008d15c\nlea     rsi, aGs19; \"GS_19\"                                            ; +0x213, 0x10008d163\nmov     rdi, rbx                                                       ; +0x21a, 0x10008d16a\ncall    DS_Dictionary__setDictForKey                                   ; +0x21d, 0x10008d16d\nmov     rdx, [r14+318h]                                                ; +0x222, 0x10008d172\nlea     rsi, aGs30; \"GS_30\"                                            ; +0x229, 0x10008d179\nmov     rdi, rbx                                                       ; +0x230, 0x10008d180\ncall    DS_Dictionary__setDictForKey                                   ; +0x233, 0x10008d183\nmov     edx, [r14+2F8h]                                                ; +0x238, 0x10008d188\nsub     edx, [r14+2FCh]                                                ; +0x23f, 0x10008d18f\nlea     rsi, aGs20; \"GS_20\"                                            ; +0x246, 0x10008d196\nmov     rdi, rbx                                                       ; +0x24d, 0x10008d19d\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x250, 0x10008d1a0\nmov     rdx, [r14+308h]                                                ; +0x255, 0x10008d1a5\nlea     rsi, aGs21; \"GS_21\"                                            ; +0x25c, 0x10008d1ac\nmov     rdi, rbx                                                       ; +0x263, 0x10008d1b3\ncall    DS_Dictionary__setDictForKey                                   ; +0x266, 0x10008d1b6\nmov     rdx, [r14+310h]                                                ; +0x26b, 0x10008d1bb\nlea     rsi, aGs28; \"GS_28\"                                            ; +0x272, 0x10008d1c2\nmov     rdi, rbx                                                       ; +0x279, 0x10008d1c9\ncall    DS_Dictionary__setDictForKey                                   ; +0x27c, 0x10008d1cc\nmov     rdx, [r14+328h]                                                ; +0x281, 0x10008d1d1\nlea     rsi, aGs32; \"GS_32\"                                            ; +0x288, 0x10008d1d8\nmov     rdi, rbx                                                       ; +0x28f, 0x10008d1df\ncall    DS_Dictionary__setDictForKey                                   ; +0x292, 0x10008d1e2\nmov     edx, [r14+38Ch]                                                ; +0x297, 0x10008d1e7\nlea     rsi, aGs26; \"GS_26\"                                            ; +0x29e, 0x10008d1ee\nmov     rdi, rbx                                                       ; +0x2a5, 0x10008d1f5\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x2a8, 0x10008d1f8\nmovzx   edx, byte ptr [r14+388h]                                       ; +0x2ad, 0x10008d1fd\nlea     rsi, aGs29; \"GS_29\"                                            ; +0x2b5, 0x10008d205\nmov     rdi, rbx                                                       ; +0x2bc, 0x10008d20c\npop     rbx                                                            ; +0x2bf, 0x10008d20f\npop     r14                                                            ; +0x2c0, 0x10008d210\npop     rbp                                                            ; +0x2c2, 0x10008d212\njmp     DS_Dictionary__setBoolForKey_1                                 ; +0x2c3, 0x10008d213", "xrefs": ["GameManager::encodeDataTo @ 0x10038b270"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}