{"type": "func", "start": 5371781936, "end": 5371782226, "name": "GameStatsManager::addSimpleSpecialChestReward", "pseudocode": "// \n// GameStatsManager::addSimpleSpecialChestReward from 0x1402ee330 to 0x1402ee452 (290 bytes)\n// \n// 20 xrefs:\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec626\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec64d\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec674\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec69b\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec6c2\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec6e9\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec710\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec737\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec75e\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec785\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec7ac\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec7d3\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec80f\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec84b\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec887\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec8c3\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec8ff\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec93b\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec977\n// > <???> @ 0x14091e0bc\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:29:55 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameStatsManager::addSimpleSpecialChestReward(__int64 a1, __int64 a2, int a3, int a4)\n{\n  cocos2d::CCArray *v8; // rbp\n  __int64 v9; // rbx\n  cocos2d::CCObject *v10; // rcx\n  cocos2d::CCObject *v11; // [rsp+20h] [rbp-68h]\n  __int128 v12; // [rsp+28h] [rbp-60h] BYREF\n  __int64 v13; // [rsp+38h] [rbp-50h]\n  __int64 v14; // [rsp+40h] [rbp-48h]\n  __int64 v15; // [rsp+48h] [rbp-40h]\n\n  v15 = a2;\n  v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n  v11 = (cocos2d::CCObject *)operator new(0x48u);\n  cocos2d::CCObject::CCObject(v11);\n  *(_QWORD *)v11 = &GJRewardObject::`vftable';\n  *((_DWORD *)v11 + 14) = 9;\n  *((_DWORD *)v11 + 16) = a4;\n  *((_DWORD *)v11 + 17) = 1;\n  cocos2d::CCObject::autorelease(v11);\n  *((_DWORD *)v11 + 15) = a3;\n  cocos2d::CCArray::addObject(v8, v11);\n  v12 = 0;\n  v13 = 0;\n  v14 = 15;\n  LOBYTE(v12) = 0;\n  v9 = GJRewardItem::create(0, 0, &v12);\n  *(_DWORD *)(v9 + 64) = 2;\n  if ( *(cocos2d::CCArray **)(v9 + 72) != v8 )\n  {\n    if ( v8 )\n      cocos2d::CCObject::retain(v8);\n    v10 = *(cocos2d::CCObject **)(v9 + 72);\n    if ( v10 )\n      cocos2d::CCObject::release(v10);\n    *(_QWORD *)(v9 + 72) = v8;\n  }\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 368), v9, a2);\n  sub_14003D310(a2);\n}", "assembly": "; \n; GameStatsManager::addSimpleSpecialChestReward from 0x1402ee330 to 0x1402ee452 (290 bytes)\n; \n; 20 xrefs:\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec626\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec64d\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec674\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec69b\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec6c2\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec6e9\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec710\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec737\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec75e\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec785\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec7ac\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec7d3\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec80f\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec84b\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec887\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec8c3\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec8ff\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec93b\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec977\n; > <???> @ 0x14091e0bc\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:29:55 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402ee330\npush    rbp                                                            ; +0x5, 0x1402ee335\npush    rsi                                                            ; +0x6, 0x1402ee336\npush    rdi                                                            ; +0x7, 0x1402ee337\npush    r14                                                            ; +0x8, 0x1402ee338\npush    r15                                                            ; +0xa, 0x1402ee33a\nsub     rsp, 60h                                                       ; +0xc, 0x1402ee33c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x1402ee340\nxor     rax, rsp                                                       ; +0x17, 0x1402ee347\nmov     [rsp+88h+var_38], rax                                          ; +0x1a, 0x1402ee34a\nmov     edi, r9d                                                       ; +0x1f, 0x1402ee34f\nmov     esi, r8d                                                       ; +0x22, 0x1402ee352\nmov     r14, rdx                                                       ; +0x25, 0x1402ee355\nmov     r15, rcx                                                       ; +0x28, 0x1402ee358\nmov     [rsp+88h+var_40], rdx                                          ; +0x2b, 0x1402ee35b\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x30, 0x1402ee360\nmov     rbp, rax                                                       ; +0x36, 0x1402ee366\nmov     ecx, 48h ; 'H'; Size                                           ; +0x39, 0x1402ee369\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x1402ee36e\nmov     rbx, rax                                                       ; +0x43, 0x1402ee373\nmov     [rsp+88h+var_68], rax                                          ; +0x46, 0x1402ee376\nmov     rcx, rax                                                       ; +0x4b, 0x1402ee37b\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x4e, 0x1402ee37e\nlea     rax, ??_7GJRewardObject@@6B@; const GJRewardObject::`vftable'  ; +0x54, 0x1402ee384\nmov     [rbx], rax                                                     ; +0x5b, 0x1402ee38b\nmov     dword ptr [rbx+38h], 9                                         ; +0x5e, 0x1402ee38e\nmov     [rbx+40h], edi                                                 ; +0x65, 0x1402ee395\nmov     dword ptr [rbx+44h], 1                                         ; +0x68, 0x1402ee398\nmov     rcx, rbx                                                       ; +0x6f, 0x1402ee39f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x72, 0x1402ee3a2\nmov     [rbx+3Ch], esi                                                 ; +0x78, 0x1402ee3a8\nmov     rdx, rbx                                                       ; +0x7b, 0x1402ee3ab\nmov     rcx, rbp                                                       ; +0x7e, 0x1402ee3ae\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x81, 0x1402ee3b1\nxorps   xmm0, xmm0                                                     ; +0x87, 0x1402ee3b7\nmovups  [rsp+88h+var_60], xmm0                                         ; +0x8a, 0x1402ee3ba\nmov     [rsp+88h+var_50], 0                                            ; +0x8f, 0x1402ee3bf\nmov     [rsp+88h+var_48], 0Fh                                          ; +0x98, 0x1402ee3c8\nmov     byte ptr [rsp+88h+var_60], 0                                   ; +0xa1, 0x1402ee3d1\nlea     r8, [rsp+88h+var_60]                                           ; +0xa6, 0x1402ee3d6\nxor     edx, edx                                                       ; +0xab, 0x1402ee3db\nxor     ecx, ecx                                                       ; +0xad, 0x1402ee3dd\ncall    GJRewardItem__create                                           ; +0xaf, 0x1402ee3df\nmov     rbx, rax                                                       ; +0xb4, 0x1402ee3e4\nmov     dword ptr [rax+40h], 2                                         ; +0xb7, 0x1402ee3e7\ncmp     [rax+48h], rbp                                                 ; +0xbe, 0x1402ee3ee\njz      short loc_1402EE415                                            ; +0xc2, 0x1402ee3f2\ntest    rbp, rbp                                                       ; +0xc4, 0x1402ee3f4\njz      short loc_1402EE402                                            ; +0xc7, 0x1402ee3f7\nmov     rcx, rbp                                                       ; +0xc9, 0x1402ee3f9\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xcc, 0x1402ee3fc\nmov     rcx, [rbx+48h]                                                 ; +0xd2, 0x1402ee402\ntest    rcx, rcx                                                       ; +0xd6, 0x1402ee406\njz      short loc_1402EE411                                            ; +0xd9, 0x1402ee409\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xdb, 0x1402ee40b\nmov     [rbx+48h], rbp                                                 ; +0xe1, 0x1402ee411\nmov     r8, r14                                                        ; +0xe5, 0x1402ee415\nmov     rdx, rbx                                                       ; +0xe8, 0x1402ee418\nmov     rcx, [r15+170h]                                                ; +0xeb, 0x1402ee41b\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0xf2, 0x1402ee422\nnop                                                                    ; +0xf8, 0x1402ee428\nmov     rcx, r14                                                       ; +0xf9, 0x1402ee429\ncall    sub_14003D310                                                  ; +0xfc, 0x1402ee42c\nmov     rcx, [rsp+88h+var_38]                                          ; +0x101, 0x1402ee431\nxor     rcx, rsp; StackCookie                                          ; +0x106, 0x1402ee436\ncall    __security_check_cookie                                        ; +0x109, 0x1402ee439\nmov     rbx, [rsp+88h+arg_10]                                          ; +0x10e, 0x1402ee43e\nadd     rsp, 60h                                                       ; +0x116, 0x1402ee446\npop     r15                                                            ; +0x11a, 0x1402ee44a\npop     r14                                                            ; +0x11c, 0x1402ee44c\npop     rdi                                                            ; +0x11e, 0x1402ee44e\npop     rsi                                                            ; +0x11f, 0x1402ee44f\npop     rbp                                                            ; +0x120, 0x1402ee450\nretn                                                                   ; +0x121, 0x1402ee451", "xrefs": ["GameStatsManager::createSpecialChestItems @ 0x1402ec626", "GameStatsManager::createSpecialChestItems @ 0x1402ec64d", "GameStatsManager::createSpecialChestItems @ 0x1402ec674", "GameStatsManager::createSpecialChestItems @ 0x1402ec69b", "GameStatsManager::createSpecialChestItems @ 0x1402ec6c2", "GameStatsManager::createSpecialChestItems @ 0x1402ec6e9", "GameStatsManager::createSpecialChestItems @ 0x1402ec710", "GameStatsManager::createSpecialChestItems @ 0x1402ec737", "GameStatsManager::createSpecialChestItems @ 0x1402ec75e", "GameStatsManager::createSpecialChestItems @ 0x1402ec785", "GameStatsManager::createSpecialChestItems @ 0x1402ec7ac", "GameStatsManager::createSpecialChestItems @ 0x1402ec7d3", "GameStatsManager::createSpecialChestItems @ 0x1402ec80f", "GameStatsManager::createSpecialChestItems @ 0x1402ec84b", "GameStatsManager::createSpecialChestItems @ 0x1402ec887", "GameStatsManager::createSpecialChestItems @ 0x1402ec8c3", "GameStatsManager::createSpecialChestItems @ 0x1402ec8ff", "GameStatsManager::createSpecialChestItems @ 0x1402ec93b", "GameStatsManager::createSpecialChestItems @ 0x1402ec977", "<???> @ 0x14091e0bc"], "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"}