{"type": "func", "start": 5370681568, "end": 5370681726, "name": "GameStatsManager::storeRewardState", "pseudocode": "// \n// GameStatsManager::storeRewardState from 0x1401e18e0 to 0x1401e197e (158 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::onGetGJRewardsCompleted @ 0x140167212\n// > GameLevelManager::onGetGJRewardsCompleted @ 0x140167305\n// > <???> @ 0x1406cc51c\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\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 v6; // rbp\n  unsigned int v8; // ebx\n  __int64 v9; // rax\n  __int64 v10; // rax\n  _BYTE v11[32]; // [rsp+28h] [rbp-70h] BYREF\n  __int64 v12; // [rsp+48h] [rbp-50h]\n\n  v6 = a2;\n  v12 = a5;\n  v8 = 0;\n  if ( a4 > 0 )\n    v8 = a4 + (int)sub_14003CF30();\n  v9 = sub_14003BDB0((__int64)v11, a5);\n  v10 = GJRewardItem::create(a3, v8, v9);\n  *(_BYTE *)(v10 + 80) = 1;\n  *(_DWORD *)(v10 + 64) = v6;\n  cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 528), (struct cocos2d::CCObject *)v10, v6);\n  sub_14003A830(a5);\n}", "assembly": "; \n; GameStatsManager::storeRewardState from 0x1401e18e0 to 0x1401e197e (158 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::onGetGJRewardsCompleted @ 0x140167212\n; > GameLevelManager::onGetGJRewardsCompleted @ 0x140167305\n; > <???> @ 0x1406cc51c\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    rbx                                                            ; +0x0, 0x1401e18e0\npush    rbp                                                            ; +0x2, 0x1401e18e2\npush    rsi                                                            ; +0x3, 0x1401e18e3\npush    rdi                                                            ; +0x4, 0x1401e18e4\npush    r14                                                            ; +0x5, 0x1401e18e5\npush    r15                                                            ; +0x7, 0x1401e18e7\nsub     rsp, 68h                                                       ; +0x9, 0x1401e18e9\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1401e18ed\nxor     rax, rsp                                                       ; +0x14, 0x1401e18f4\nmov     [rsp+98h+var_48], rax                                          ; +0x17, 0x1401e18f7\nmov     edi, r9d                                                       ; +0x1c, 0x1401e18fc\nmov     r15d, r8d                                                      ; +0x1f, 0x1401e18ff\nmovsxd  rbp, edx                                                       ; +0x22, 0x1401e1902\nmov     r14, rcx                                                       ; +0x25, 0x1401e1905\nmov     rsi, [rsp+98h+arg_20]                                          ; +0x28, 0x1401e1908\nmov     [rsp+98h+var_50], rsi                                          ; +0x30, 0x1401e1910\nxor     ebx, ebx                                                       ; +0x35, 0x1401e1915\ntest    r9d, r9d                                                       ; +0x37, 0x1401e1917\njle     short loc_1401E1927                                            ; +0x3a, 0x1401e191a\ncall    sub_14003CF30                                                  ; +0x3c, 0x1401e191c\ncvttsd2si ebx, xmm0                                                    ; +0x41, 0x1401e1921\nadd     ebx, edi                                                       ; +0x45, 0x1401e1925\nmov     rdx, rsi                                                       ; +0x47, 0x1401e1927\nlea     rcx, [rsp+98h+var_70]                                          ; +0x4a, 0x1401e192a\ncall    sub_14003BDB0                                                  ; +0x4f, 0x1401e192f\nmov     r8, rax                                                        ; +0x54, 0x1401e1934\nmov     edx, ebx                                                       ; +0x57, 0x1401e1937\nmov     ecx, r15d                                                      ; +0x59, 0x1401e1939\ncall    GJRewardItem__create                                           ; +0x5c, 0x1401e193c\nmov     byte ptr [rax+50h], 1                                          ; +0x61, 0x1401e1941\nmov     [rax+40h], ebp                                                 ; +0x65, 0x1401e1945\nmov     r8, rbp                                                        ; +0x68, 0x1401e1948\nmov     rdx, rax                                                       ; +0x6b, 0x1401e194b\nmov     rcx, [r14+210h]                                                ; +0x6e, 0x1401e194e\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x75, 0x1401e1955\nnop                                                                    ; +0x7b, 0x1401e195b\nmov     rcx, rsi                                                       ; +0x7c, 0x1401e195c\ncall    sub_14003A830                                                  ; +0x7f, 0x1401e195f\nmov     rcx, [rsp+98h+var_48]                                          ; +0x84, 0x1401e1964\nxor     rcx, rsp; StackCookie                                          ; +0x89, 0x1401e1969\ncall    __security_check_cookie                                        ; +0x8c, 0x1401e196c\nadd     rsp, 68h                                                       ; +0x91, 0x1401e1971\npop     r15                                                            ; +0x95, 0x1401e1975\npop     r14                                                            ; +0x97, 0x1401e1977\npop     rdi                                                            ; +0x99, 0x1401e1979\npop     rsi                                                            ; +0x9a, 0x1401e197a\npop     rbp                                                            ; +0x9b, 0x1401e197b\npop     rbx                                                            ; +0x9c, 0x1401e197c\nretn                                                                   ; +0x9d, 0x1401e197d", "xrefs": ["GameLevelManager::onGetGJRewardsCompleted @ 0x140167212", "GameLevelManager::onGetGJRewardsCompleted @ 0x140167305", "<???> @ 0x1406cc51c"], "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"}