{"type": "func", "start": 5371825760, "end": 5371825964, "name": "GJRewardItem::create", "pseudocode": "// \n// GJRewardItem::create from 0x1402f8e60 to 0x1402f8f2c (204 bytes)\n// \n// 20 xrefs:\n// > GameStatsManager::createReward @ 0x1402e51ff\n// > GameStatsManager::storeRewardState @ 0x1402e5315\n// > GameStatsManager::completedDailyLevel @ 0x1402e6d59\n// > GameStatsManager::createSpecialChestItems @ 0x1402ecad4\n// > GameStatsManager::createSpecialChestItems @ 0x1402ecc89\n// > GameStatsManager::createSpecialChestItems @ 0x1402ece34\n// > GameStatsManager::createSpecialChestItems @ 0x1402ecfa4\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed14f\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed304\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed4af\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed664\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed80f\n// > GameStatsManager::createSpecialChestItems @ 0x1402ed9c4\n// > GameStatsManager::addSimpleSpecialChestReward @ 0x1402ee3df\n// > GJRewardItem::create_1 @ 0x1402f8b4c\n// > GJRewardItem::createWithObject @ 0x1402f8ba5\n// > GJRewardItem::createWithObjects @ 0x1402f8c28\n// > GJRewardItem::createSpecial @ 0x1402f8e08\n// > GJObjectDecoder::getDecodedObject @ 0x140391f89\n// > <???> @ 0x14091e218\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:30:05 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCObject *__fastcall GJRewardItem::create(unsigned int a1, unsigned int a2, __int64 a3)\n{\n  cocos2d::CCObject *v6; // rsi\n  __int64 v7; // rax\n  _BYTE v9[32]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v10; // [rsp+48h] [rbp-30h]\n\n  v10 = a3;\n  v6 = (cocos2d::CCObject *)operator new(0x58u);\n  cocos2d::CCObject::CCObject(v6);\n  *(_QWORD *)v6 = &GJRewardItem::`vftable';\n  *((_QWORD *)v6 + 7) = 0;\n  *((_DWORD *)v6 + 16) = 0;\n  *((_QWORD *)v6 + 9) = 0;\n  *((_BYTE *)v6 + 80) = 0;\n  v7 = sub_14003F4F0((__int64)v9, a3);\n  if ( (unsigned __int8)GJRewardItem::init(v6, a1, a2, v7, v6) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    v6 = nullptr;\n  }\n  sub_14003D310(a3);\n  return v6;\n}", "assembly": "; \n; GJRewardItem::create from 0x1402f8e60 to 0x1402f8f2c (204 bytes)\n; \n; 20 xrefs:\n; > GameStatsManager::createReward @ 0x1402e51ff\n; > GameStatsManager::storeRewardState @ 0x1402e5315\n; > GameStatsManager::completedDailyLevel @ 0x1402e6d59\n; > GameStatsManager::createSpecialChestItems @ 0x1402ecad4\n; > GameStatsManager::createSpecialChestItems @ 0x1402ecc89\n; > GameStatsManager::createSpecialChestItems @ 0x1402ece34\n; > GameStatsManager::createSpecialChestItems @ 0x1402ecfa4\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed14f\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed304\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed4af\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed664\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed80f\n; > GameStatsManager::createSpecialChestItems @ 0x1402ed9c4\n; > GameStatsManager::addSimpleSpecialChestReward @ 0x1402ee3df\n; > GJRewardItem::create_1 @ 0x1402f8b4c\n; > GJRewardItem::createWithObject @ 0x1402f8ba5\n; > GJRewardItem::createWithObjects @ 0x1402f8c28\n; > GJRewardItem::createSpecial @ 0x1402f8e08\n; > GJObjectDecoder::getDecodedObject @ 0x140391f89\n; > <???> @ 0x14091e218\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:30:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402f8e60\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1402f8e65\npush    rsi                                                            ; +0xa, 0x1402f8e6a\npush    rdi                                                            ; +0xb, 0x1402f8e6b\npush    r14                                                            ; +0xc, 0x1402f8e6c\nsub     rsp, 60h                                                       ; +0xe, 0x1402f8e6e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1402f8e72\nxor     rax, rsp                                                       ; +0x19, 0x1402f8e79\nmov     [rsp+78h+var_28], rax                                          ; +0x1c, 0x1402f8e7c\nmov     rbp, r8                                                        ; +0x21, 0x1402f8e81\nmov     edi, edx                                                       ; +0x24, 0x1402f8e84\nmov     ebx, ecx                                                       ; +0x26, 0x1402f8e86\nmov     [rsp+78h+var_30], r8                                           ; +0x28, 0x1402f8e88\nmov     ecx, 58h ; 'X'; Size                                           ; +0x2d, 0x1402f8e8d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x1402f8e92\nmov     rsi, rax                                                       ; +0x37, 0x1402f8e97\nmov     [rsp+78h+var_58], rax                                          ; +0x3a, 0x1402f8e9a\nmov     rcx, rax                                                       ; +0x3f, 0x1402f8e9f\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x42, 0x1402f8ea2\nlea     rax, ??_7GJRewardItem@@6B@; const GJRewardItem::`vftable'      ; +0x48, 0x1402f8ea8\nmov     [rsi], rax                                                     ; +0x4f, 0x1402f8eaf\nxor     r14d, r14d                                                     ; +0x52, 0x1402f8eb2\nmov     [rsi+38h], r14                                                 ; +0x55, 0x1402f8eb5\nmov     [rsi+40h], r14d                                                ; +0x59, 0x1402f8eb9\nmov     [rsi+48h], r14                                                 ; +0x5d, 0x1402f8ebd\nmov     [rsi+50h], r14b                                                ; +0x61, 0x1402f8ec1\nmov     rdx, rbp                                                       ; +0x65, 0x1402f8ec5\nlea     rcx, [rsp+78h+var_50]                                          ; +0x68, 0x1402f8ec8\ncall    sub_14003F4F0                                                  ; +0x6d, 0x1402f8ecd\nmov     r9, rax                                                        ; +0x72, 0x1402f8ed2\nmov     r8d, edi                                                       ; +0x75, 0x1402f8ed5\nmov     edx, ebx                                                       ; +0x78, 0x1402f8ed8\nmov     rcx, rsi                                                       ; +0x7a, 0x1402f8eda\ncall    GJRewardItem__init                                             ; +0x7d, 0x1402f8edd\nmov     rcx, rsi                                                       ; +0x82, 0x1402f8ee2\ntest    al, al                                                         ; +0x85, 0x1402f8ee5\njz      short loc_1402F8EF1                                            ; +0x87, 0x1402f8ee7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x89, 0x1402f8ee9\njmp     short loc_1402F8EFF                                            ; +0x8f, 0x1402f8eef\nmov     rax, [rsi]                                                     ; +0x91, 0x1402f8ef1\nmov     edx, 1                                                         ; +0x94, 0x1402f8ef4\ncall    qword ptr [rax+8]                                              ; +0x99, 0x1402f8ef9\nmov     rsi, r14                                                       ; +0x9c, 0x1402f8efc\nmov     rcx, rbp                                                       ; +0x9f, 0x1402f8eff\ncall    sub_14003D310                                                  ; +0xa2, 0x1402f8f02\nmov     rax, rsi                                                       ; +0xa7, 0x1402f8f07\nmov     rcx, [rsp+78h+var_28]                                          ; +0xaa, 0x1402f8f0a\nxor     rcx, rsp; StackCookie                                          ; +0xaf, 0x1402f8f0f\ncall    __security_check_cookie                                        ; +0xb2, 0x1402f8f12\nlea     r11, [rsp+78h+var_18]                                          ; +0xb7, 0x1402f8f17\nmov     rbx, [r11+20h]                                                 ; +0xbc, 0x1402f8f1c\nmov     rbp, [r11+38h]                                                 ; +0xc0, 0x1402f8f20\nmov     rsp, r11                                                       ; +0xc4, 0x1402f8f24\npop     r14                                                            ; +0xc7, 0x1402f8f27\npop     rdi                                                            ; +0xc9, 0x1402f8f29\npop     rsi                                                            ; +0xca, 0x1402f8f2a\nretn                                                                   ; +0xcb, 0x1402f8f2b", "xrefs": ["GameStatsManager::createReward @ 0x1402e51ff", "GameStatsManager::storeRewardState @ 0x1402e5315", "GameStatsManager::completedDailyLevel @ 0x1402e6d59", "GameStatsManager::createSpecialChestItems @ 0x1402ecad4", "GameStatsManager::createSpecialChestItems @ 0x1402ecc89", "GameStatsManager::createSpecialChestItems @ 0x1402ece34", "GameStatsManager::createSpecialChestItems @ 0x1402ecfa4", "GameStatsManager::createSpecialChestItems @ 0x1402ed14f", "GameStatsManager::createSpecialChestItems @ 0x1402ed304", "GameStatsManager::createSpecialChestItems @ 0x1402ed4af", "GameStatsManager::createSpecialChestItems @ 0x1402ed664", "GameStatsManager::createSpecialChestItems @ 0x1402ed80f", "GameStatsManager::createSpecialChestItems @ 0x1402ed9c4", "GameStatsManager::addSimpleSpecialChestReward @ 0x1402ee3df", "GJRewardItem::create_1 @ 0x1402f8b4c", "GJRewardItem::createWithObject @ 0x1402f8ba5", "GJRewardItem::createWithObjects @ 0x1402f8c28", "GJRewardItem::createSpecial @ 0x1402f8e08", "GJObjectDecoder::getDecodedObject @ 0x140391f89", "<???> @ 0x14091e218"], "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"}