{"type": "func", "start": 5370716848, "end": 5370716985, "name": "GameStatsManager::addSpecialRewardDescription", "pseudocode": "// \n// GameStatsManager::addSpecialRewardDescription from 0x1401ea2b0 to 0x1401ea339 (137 bytes)\n// \n// 3 xrefs:\n// > GameStatsManager::createSpecialChestItems @ 0x1401e811c\n// > GameStatsManager::createSpecialChestItems @ 0x1401e994c\n// > <???> @ 0x1406cc648\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=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_1401F4F70(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_14003CCE0(v5, v6, (size_t)a3[2]);\n  }\n  sub_14003A830(a2);\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameStatsManager::addSpecialRewardDescription from 0x1401ea2b0 to 0x1401ea339 (137 bytes)\n; \n; 3 xrefs:\n; > GameStatsManager::createSpecialChestItems @ 0x1401e811c\n; > GameStatsManager::createSpecialChestItems @ 0x1401e994c\n; > <???> @ 0x1406cc648\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1401ea2b0\npush    rdi                                                            ; +0x5, 0x1401ea2b5\nsub     rsp, 50h                                                       ; +0x6, 0x1401ea2b6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1401ea2ba\nxor     rax, rsp                                                       ; +0x11, 0x1401ea2c1\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1401ea2c4\nmov     rbx, r8                                                        ; +0x19, 0x1401ea2c9\nmov     rdi, rdx                                                       ; +0x1c, 0x1401ea2cc\nmov     [rsp+58h+var_28], rdx                                          ; +0x1f, 0x1401ea2cf\nmov     [rsp+58h+var_20], rbx                                          ; +0x24, 0x1401ea2d4\nadd     rcx, 180h                                                      ; +0x29, 0x1401ea2d9\nmov     r8, rdx                                                        ; +0x30, 0x1401ea2e0\nlea     rdx, [rsp+58h+var_38]                                          ; +0x33, 0x1401ea2e3\ncall    sub_1401F4F70                                                  ; +0x38, 0x1401ea2e8\nmov     rcx, [rax]                                                     ; +0x3d, 0x1401ea2ed\nadd     rcx, 30h ; '0'; void *                                         ; +0x40, 0x1401ea2f0\ncmp     rcx, rbx                                                       ; +0x44, 0x1401ea2f4\njz      short loc_1401EA310                                            ; +0x47, 0x1401ea2f7\nmov     rdx, rbx                                                       ; +0x49, 0x1401ea2f9\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x4c, 0x1401ea2fc\njbe     short loc_1401EA306                                            ; +0x51, 0x1401ea301\nmov     rdx, [rbx]; Src                                                ; +0x53, 0x1401ea303\nmov     r8, [rbx+10h]; Size                                            ; +0x56, 0x1401ea306\ncall    sub_14003CCE0                                                  ; +0x5a, 0x1401ea30a\nnop                                                                    ; +0x5f, 0x1401ea30f\nmov     rcx, rdi                                                       ; +0x60, 0x1401ea310\ncall    sub_14003A830                                                  ; +0x63, 0x1401ea313\nnop                                                                    ; +0x68, 0x1401ea318\nmov     rcx, rbx                                                       ; +0x69, 0x1401ea319\ncall    sub_14003A830                                                  ; +0x6c, 0x1401ea31c\nmov     rcx, [rsp+58h+var_18]                                          ; +0x71, 0x1401ea321\nxor     rcx, rsp; StackCookie                                          ; +0x76, 0x1401ea326\ncall    __security_check_cookie                                        ; +0x79, 0x1401ea329\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x7e, 0x1401ea32e\nadd     rsp, 50h                                                       ; +0x83, 0x1401ea333\npop     rdi                                                            ; +0x87, 0x1401ea337\nretn                                                                   ; +0x88, 0x1401ea338", "xrefs": ["GameStatsManager::createSpecialChestItems @ 0x1401e811c", "GameStatsManager::createSpecialChestItems @ 0x1401e994c", "<???> @ 0x1406cc648"], "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"}