{"type": "func", "start": 5371782464, "end": 5371782601, "name": "GameStatsManager::addSpecialRewardDescription", "pseudocode": "// \n// GameStatsManager::addSpecialRewardDescription from 0x1402ee540 to 0x1402ee5c9 (137 bytes)\n// \n// 3 xrefs:\n// > GameStatsManager::createSpecialChestItems @ 0x1402ec2ad\n// > GameStatsManager::createSpecialChestItems @ 0x1402edbc1\n// > <???> @ 0x14091e0d4\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:56 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameStatsManager::addSpecialRewardDescription(__int64 a1, __int64 a2, void **a3)\n{\n  void **v5; // rcx\n  void *v6; // rdx\n  _BYTE v7[16]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v8; // [rsp+30h] [rbp-28h]\n  void **v9; // [rsp+38h] [rbp-20h]\n\n  v8 = a2;\n  v9 = a3;\n  v5 = (void **)(*(_QWORD *)sub_1402F9FD0(a1 + 384, v7, a2) + 48LL);\n  if ( v5 != a3 )\n  {\n    v6 = a3;\n    if ( (unsigned __int64)a3[3] > 0xF )\n      v6 = *a3;\n    sub_1400405A0(v5, v6, (size_t)a3[2]);\n  }\n  sub_14003D310(a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameStatsManager::addSpecialRewardDescription from 0x1402ee540 to 0x1402ee5c9 (137 bytes)\n; \n; 3 xrefs:\n; > GameStatsManager::createSpecialChestItems @ 0x1402ec2ad\n; > GameStatsManager::createSpecialChestItems @ 0x1402edbc1\n; > <???> @ 0x14091e0d4\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:56 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1402ee540\npush    rdi                                                            ; +0x5, 0x1402ee545\nsub     rsp, 50h                                                       ; +0x6, 0x1402ee546\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402ee54a\nxor     rax, rsp                                                       ; +0x11, 0x1402ee551\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1402ee554\nmov     rbx, r8                                                        ; +0x19, 0x1402ee559\nmov     rdi, rdx                                                       ; +0x1c, 0x1402ee55c\nmov     [rsp+58h+var_28], rdx                                          ; +0x1f, 0x1402ee55f\nmov     [rsp+58h+var_20], rbx                                          ; +0x24, 0x1402ee564\nadd     rcx, 180h                                                      ; +0x29, 0x1402ee569\nmov     r8, rdx                                                        ; +0x30, 0x1402ee570\nlea     rdx, [rsp+58h+var_38]                                          ; +0x33, 0x1402ee573\ncall    sub_1402F9FD0                                                  ; +0x38, 0x1402ee578\nmov     rcx, [rax]                                                     ; +0x3d, 0x1402ee57d\nadd     rcx, 30h ; '0'; void *                                         ; +0x40, 0x1402ee580\ncmp     rcx, rbx                                                       ; +0x44, 0x1402ee584\njz      short loc_1402EE5A0                                            ; +0x47, 0x1402ee587\nmov     rdx, rbx                                                       ; +0x49, 0x1402ee589\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x4c, 0x1402ee58c\njbe     short loc_1402EE596                                            ; +0x51, 0x1402ee591\nmov     rdx, [rbx]; Src                                                ; +0x53, 0x1402ee593\nmov     r8, [rbx+10h]; Size                                            ; +0x56, 0x1402ee596\ncall    sub_1400405A0                                                  ; +0x5a, 0x1402ee59a\nnop                                                                    ; +0x5f, 0x1402ee59f\nmov     rcx, rdi                                                       ; +0x60, 0x1402ee5a0\ncall    sub_14003D310                                                  ; +0x63, 0x1402ee5a3\nnop                                                                    ; +0x68, 0x1402ee5a8\nmov     rcx, rbx                                                       ; +0x69, 0x1402ee5a9\ncall    sub_14003D310                                                  ; +0x6c, 0x1402ee5ac\nmov     rcx, [rsp+58h+var_18]                                          ; +0x71, 0x1402ee5b1\nxor     rcx, rsp; StackCookie                                          ; +0x76, 0x1402ee5b6\ncall    __security_check_cookie                                        ; +0x79, 0x1402ee5b9\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x7e, 0x1402ee5be\nadd     rsp, 50h                                                       ; +0x83, 0x1402ee5c3\npop     rdi                                                            ; +0x87, 0x1402ee5c7\nretn                                                                   ; +0x88, 0x1402ee5c8", "xrefs": ["GameStatsManager::createSpecialChestItems @ 0x1402ec2ad", "GameStatsManager::createSpecialChestItems @ 0x1402edbc1", "<???> @ 0x14091e0d4"], "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"}