{"type": "func", "start": 5371744912, "end": 5371745111, "name": "GameStatsManager::storeRewardState", "pseudocode": "// \n// GameStatsManager::storeRewardState from 0x1402e5290 to 0x1402e5357 (199 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::onGetGJRewardsCompleted @ 0x14025df03\n// > GameLevelManager::onGetGJRewardsCompleted @ 0x14025dffc\n// > <???> @ 0x14091df78\n// > <???> @ 0x14091df84\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:50 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameStatsManager::storeRewardState(__int64 a1, int a2, unsigned int a3, int a4, __int64 a5)\n{\n  __int64 v7; // rbp\n  unsigned int v9; // ebx\n  __int64 v10; // rax\n  __int64 v11; // rax\n  _BYTE v12[32]; // [rsp+20h] [rbp-78h] BYREF\n  __int64 v13; // [rsp+40h] [rbp-58h]\n  struct __timeb64 Time; // [rsp+48h] [rbp-50h] BYREF\n\n  v7 = a2;\n  v13 = a5;\n  v9 = 0;\n  if ( a4 > 0 )\n  {\n    ftime64(&Time);\n    v9 = a4 + (int)((double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time));\n  }\n  v10 = sub_14003F4F0((__int64)v12, a5);\n  v11 = GJRewardItem::create(a3, v9, v10);\n  *(_BYTE *)(v11 + 80) = 1;\n  *(_DWORD *)(v11 + 64) = v7;\n  cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 528), (struct cocos2d::CCObject *)v11, v7);\n  sub_14003D310(a5);\n}", "assembly": "; \n; GameStatsManager::storeRewardState from 0x1402e5290 to 0x1402e5357 (199 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::onGetGJRewardsCompleted @ 0x14025df03\n; > GameLevelManager::onGetGJRewardsCompleted @ 0x14025dffc\n; > <???> @ 0x14091df78\n; > <???> @ 0x14091df84\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:50 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402e5290\npush    rbp                                                            ; +0x2, 0x1402e5292\npush    rsi                                                            ; +0x3, 0x1402e5293\npush    rdi                                                            ; +0x4, 0x1402e5294\npush    r14                                                            ; +0x5, 0x1402e5295\npush    r15                                                            ; +0x7, 0x1402e5297\nsub     rsp, 68h                                                       ; +0x9, 0x1402e5299\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1402e529d\nxor     rax, rsp                                                       ; +0x14, 0x1402e52a4\nmov     [rsp+98h+var_40], rax                                          ; +0x17, 0x1402e52a7\nmov     edi, r9d                                                       ; +0x1c, 0x1402e52ac\nmov     r15d, r8d                                                      ; +0x1f, 0x1402e52af\nmovsxd  rbp, edx                                                       ; +0x22, 0x1402e52b2\nmov     r14, rcx                                                       ; +0x25, 0x1402e52b5\nmov     rsi, [rsp+98h+arg_20]                                          ; +0x28, 0x1402e52b8\nmov     [rsp+98h+var_58], rsi                                          ; +0x30, 0x1402e52c0\nxor     ebx, ebx                                                       ; +0x35, 0x1402e52c5\ntest    r9d, r9d                                                       ; +0x37, 0x1402e52c7\njle     short loc_1402E5300                                            ; +0x3a, 0x1402e52ca\nlea     rcx, [rsp+98h+Time]; Time                                      ; +0x3c, 0x1402e52cc\ncall    cs:_ftime64                                                    ; +0x41, 0x1402e52d1\nmovzx   eax, [rsp+98h+Time.millitm]                                    ; +0x47, 0x1402e52d7\nmovd    xmm1, eax                                                      ; +0x4c, 0x1402e52dc\ncvtdq2pd xmm1, xmm1                                                    ; +0x50, 0x1402e52e0\ndivsd   xmm1, cs:qword_140835460                                       ; +0x54, 0x1402e52e4\nxorps   xmm0, xmm0                                                     ; +0x5c, 0x1402e52ec\ncvtsi2sd xmm0, [rsp+98h+Time.time]                                     ; +0x5f, 0x1402e52ef\naddsd   xmm1, xmm0                                                     ; +0x66, 0x1402e52f6\ncvttsd2si ebx, xmm1                                                    ; +0x6a, 0x1402e52fa\nadd     ebx, edi                                                       ; +0x6e, 0x1402e52fe\nmov     rdx, rsi                                                       ; +0x70, 0x1402e5300\nlea     rcx, [rsp+98h+var_78]                                          ; +0x73, 0x1402e5303\ncall    sub_14003F4F0                                                  ; +0x78, 0x1402e5308\nmov     r8, rax                                                        ; +0x7d, 0x1402e530d\nmov     edx, ebx                                                       ; +0x80, 0x1402e5310\nmov     ecx, r15d                                                      ; +0x82, 0x1402e5312\ncall    GJRewardItem__create                                           ; +0x85, 0x1402e5315\nmov     byte ptr [rax+50h], 1                                          ; +0x8a, 0x1402e531a\nmov     [rax+40h], ebp                                                 ; +0x8e, 0x1402e531e\nmov     r8, rbp                                                        ; +0x91, 0x1402e5321\nmov     rdx, rax                                                       ; +0x94, 0x1402e5324\nmov     rcx, [r14+210h]                                                ; +0x97, 0x1402e5327\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x9e, 0x1402e532e\nnop                                                                    ; +0xa4, 0x1402e5334\nmov     rcx, rsi                                                       ; +0xa5, 0x1402e5335\ncall    sub_14003D310                                                  ; +0xa8, 0x1402e5338\nmov     rcx, [rsp+98h+var_40]                                          ; +0xad, 0x1402e533d\nxor     rcx, rsp; StackCookie                                          ; +0xb2, 0x1402e5342\ncall    __security_check_cookie                                        ; +0xb5, 0x1402e5345\nadd     rsp, 68h                                                       ; +0xba, 0x1402e534a\npop     r15                                                            ; +0xbe, 0x1402e534e\npop     r14                                                            ; +0xc0, 0x1402e5350\npop     rdi                                                            ; +0xc2, 0x1402e5352\npop     rsi                                                            ; +0xc3, 0x1402e5353\npop     rbp                                                            ; +0xc4, 0x1402e5354\npop     rbx                                                            ; +0xc5, 0x1402e5355\nretn                                                                   ; +0xc6, 0x1402e5356", "xrefs": ["GameLevelManager::onGetGJRewardsCompleted @ 0x14025df03", "GameLevelManager::onGetGJRewardsCompleted @ 0x14025dffc", "<???> @ 0x14091df78", "<???> @ 0x14091df84"], "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"}