{"type": "func", "start": 5369197440, "end": 5369197641, "name": "GManager::getCompressedSaveString", "pseudocode": "// \n// GManager::getCompressedSaveString from 0x140077380 to 0x140077449 (201 bytes)\n// \n// 3 xrefs:\n// > GJAccountManager::backupAccount @ 0x140307738\n// > GJAccountManager::backupAccount @ 0x1403077a6\n// > <???> @ 0x140911b94\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:51 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GManager::getCompressedSaveString(__int64 a1, __int64 a2)\n{\n  DS_Dictionary *v4; // rdi\n  DS_Dictionary *v6; // [rsp+38h] [rbp-40h]\n  _BYTE v7[32]; // [rsp+40h] [rbp-38h] BYREF\n\n  v6 = (DS_Dictionary *)operator new(0xF0u);\n  v4 = DS_Dictionary::DS_Dictionary(v6);\n  (*(void (__fastcall **)(__int64, DS_Dictionary *))(*(_QWORD *)a1 + 896LL))(a1, v4);\n  DS_Dictionary::saveRootSubDictToString(v4, v7);\n  if ( v4 )\n  {\n    DS_Dictionary::~DS_Dictionary(v4);\n    j_j_free(v4);\n  }\n  cocos2d::ZipUtils::compressString(a2, v7, 0, 0xFFFFFFFFLL, 11);\n  sub_14003D310((__int64)v7);\n  return a2;\n}", "assembly": "; \n; GManager::getCompressedSaveString from 0x140077380 to 0x140077449 (201 bytes)\n; \n; 3 xrefs:\n; > GJAccountManager::backupAccount @ 0x140307738\n; > GJAccountManager::backupAccount @ 0x1403077a6\n; > <???> @ 0x140911b94\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:51 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140077380\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140077385\npush    rdi                                                            ; +0xa, 0x14007738a\nsub     rsp, 70h                                                       ; +0xb, 0x14007738b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14007738f\nxor     rax, rsp                                                       ; +0x16, 0x140077396\nmov     [rsp+78h+var_18], rax                                          ; +0x19, 0x140077399\nmov     rsi, rdx                                                       ; +0x1e, 0x14007739e\nmov     rbx, rcx                                                       ; +0x21, 0x1400773a1\nmov     [rsp+78h+var_40], rdx                                          ; +0x24, 0x1400773a4\nmov     ecx, 0F0h; Size                                                ; +0x29, 0x1400773a9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x1400773ae\nmov     [rsp+78h+var_40], rax                                          ; +0x33, 0x1400773b3\nmov     rcx, rax                                                       ; +0x38, 0x1400773b8\ncall    cs:??0DS_Dictionary@@QEAA@XZ; DS_Dictionary::DS_Dictionary(void) ; +0x3b, 0x1400773bb\nmov     rdi, rax                                                       ; +0x41, 0x1400773c1\nmov     rax, [rbx]                                                     ; +0x44, 0x1400773c4\nmov     rdx, rdi                                                       ; +0x47, 0x1400773c7\nmov     rcx, rbx                                                       ; +0x4a, 0x1400773ca\ncall    qword ptr [rax+380h]                                           ; +0x4d, 0x1400773cd\nlea     rdx, [rsp+78h+var_38]                                          ; +0x53, 0x1400773d3\nmov     rcx, rdi                                                       ; +0x58, 0x1400773d8\ncall    cs:?saveRootSubDictToString@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ; DS_Dictionary::saveRootSubDictToString(void) ; +0x5b, 0x1400773db\ntest    rdi, rdi                                                       ; +0x61, 0x1400773e1\njz      short loc_1400773FD                                            ; +0x64, 0x1400773e4\nmov     rcx, rdi                                                       ; +0x66, 0x1400773e6\ncall    cs:??1DS_Dictionary@@QEAA@XZ; DS_Dictionary::~DS_Dictionary(void) ; +0x69, 0x1400773e9\nmov     edx, 0F0h                                                      ; +0x6f, 0x1400773ef\nmov     rcx, rdi; Block                                                ; +0x74, 0x1400773f4\ncall    j_j_free                                                       ; +0x77, 0x1400773f7\nnop                                                                    ; +0x7c, 0x1400773fc\nmov     [rsp+78h+var_58], 0Bh                                          ; +0x7d, 0x1400773fd\nmov     r9d, 0FFFFFFFFh                                                ; +0x85, 0x140077405\nxor     r8d, r8d                                                       ; +0x8b, 0x14007740b\nlea     rdx, [rsp+78h+var_38]                                          ; +0x8e, 0x14007740e\nmov     rcx, rsi                                                       ; +0x93, 0x140077413\ncall    cs:?compressString@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@_NHH@Z; cocos2d::ZipUtils::compressString(std::string const &,bool,int,int) ; +0x96, 0x140077416\nnop                                                                    ; +0x9c, 0x14007741c\nlea     rcx, [rsp+78h+var_38]                                          ; +0x9d, 0x14007741d\ncall    sub_14003D310                                                  ; +0xa2, 0x140077422\nmov     rax, rsi                                                       ; +0xa7, 0x140077427\nmov     rcx, [rsp+78h+var_18]                                          ; +0xaa, 0x14007742a\nxor     rcx, rsp; StackCookie                                          ; +0xaf, 0x14007742f\ncall    __security_check_cookie                                        ; +0xb2, 0x140077432\nlea     r11, [rsp+78h+var_8]                                           ; +0xb7, 0x140077437\nmov     rbx, [r11+20h]                                                 ; +0xbc, 0x14007743c\nmov     rsi, [r11+28h]                                                 ; +0xc0, 0x140077440\nmov     rsp, r11                                                       ; +0xc4, 0x140077444\npop     rdi                                                            ; +0xc7, 0x140077447\nretn                                                                   ; +0xc8, 0x140077448", "xrefs": ["GJAccountManager::backupAccount @ 0x140307738", "GJAccountManager::backupAccount @ 0x1403077a6", "<???> @ 0x140911b94"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}