{"type": "func", "start": 5372865056, "end": 5372865419, "name": "SecretLayer5::onlineRewardStatusFinished", "pseudocode": "// \n// SecretLayer5::onlineRewardStatusFinished from 0x1403f6a20 to 0x1403f6b8b (363 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405d5790\n// > <???> @ 0x1406d827c\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=6\nvoid __fastcall SecretLayer5::onlineRewardStatusFinished(__int64 a1, void **a2)\n{\n  __int64 v4; // rbp\n  __int64 v5; // rcx\n  __int64 v6; // rbx\n  _QWORD *v7; // rbx\n  __int64 v8; // rcx\n  void *v9; // rdx\n  void *v10; // [rsp+20h] [rbp-68h]\n  void *v11; // [rsp+28h] [rbp-60h]\n  _BYTE v12[32]; // [rsp+38h] [rbp-50h] BYREF\n  void **v13; // [rsp+58h] [rbp-30h]\n\n  v13 = a2;\n  v4 = sub_14003BDB0((__int64)v12, (__int64)a2);\n  v5 = qword_1406C2EE8;\n  if ( !qword_1406C2EE8 )\n  {\n    v11 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n    v5 = qword_1406C2EE8;\n  }\n  v6 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v5 + 368), v4);\n  sub_14003A830(v4);\n  if ( !v6 )\n    goto LABEL_13;\n  v7 = (_QWORD *)sub_14003BDB0((__int64)v12, (__int64)a2);\n  v8 = qword_1406C2EE8;\n  if ( !qword_1406C2EE8 )\n  {\n    v10 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n    v8 = qword_1406C2EE8;\n  }\n  if ( GameStatsManager::isSpecialChestUnlocked(v8, v7) )\n  {\nLABEL_13:\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 8LL))(a1);\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 84) = 1;\n    if ( (void **)(a1 + 88) != a2 )\n    {\n      v9 = a2;\n      if ( (unsigned __int64)a2[3] > 0xF )\n        v9 = *a2;\n      sub_14003CCE0((void **)(a1 + 88), v9, (size_t)a2[2]);\n    }\n    if ( !*(_BYTE *)(a1 + 80) )\n      SecretLayer5::handleSecretResponse((SecretLayer5 *)(a1 - 432));\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; SecretLayer5::onlineRewardStatusFinished from 0x1403f6a20 to 0x1403f6b8b (363 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405d5790\n; > <???> @ 0x1406d827c\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_10], rbx                                              ; +0x0, 0x1403f6a20\npush    rbp                                                            ; +0x5, 0x1403f6a25\npush    rsi                                                            ; +0x6, 0x1403f6a26\npush    rdi                                                            ; +0x7, 0x1403f6a27\nsub     rsp, 70h                                                       ; +0x8, 0x1403f6a28\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1403f6a2c\nxor     rax, rsp                                                       ; +0x13, 0x1403f6a33\nmov     [rsp+88h+var_28], rax                                          ; +0x16, 0x1403f6a36\nmov     rdi, rdx                                                       ; +0x1b, 0x1403f6a3b\nmov     rsi, rcx                                                       ; +0x1e, 0x1403f6a3e\nmov     [rsp+88h+var_30], rdx                                          ; +0x21, 0x1403f6a41\nlea     rax, [rsp+88h+var_50]                                          ; +0x26, 0x1403f6a46\nmov     [rsp+88h+var_58], rax                                          ; +0x2b, 0x1403f6a4b\nlea     rcx, [rsp+88h+var_50]                                          ; +0x30, 0x1403f6a50\ncall    sub_14003BDB0                                                  ; +0x35, 0x1403f6a55\nmov     rbp, rax                                                       ; +0x3a, 0x1403f6a5a\nmov     [rsp+88h+var_68], rax                                          ; +0x3d, 0x1403f6a5d\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x42, 0x1403f6a62\ntest    rcx, rcx                                                       ; +0x49, 0x1403f6a69\njnz     short loc_1403F6A9D                                            ; +0x4c, 0x1403f6a6c\nmov     ecx, 3E0h; Size                                                ; +0x4e, 0x1403f6a6e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x1403f6a73\nmov     [rsp+88h+var_60], rax                                          ; +0x58, 0x1403f6a78\nmov     rcx, rax                                                       ; +0x5d, 0x1403f6a7d\ncall    sub_1401D0AE0                                                  ; +0x60, 0x1403f6a80\nnop                                                                    ; +0x65, 0x1403f6a85\nmov     cs:qword_1406C2EE8, rax                                        ; +0x66, 0x1403f6a86\nmov     rdx, [rax]                                                     ; +0x6d, 0x1403f6a8d\nmov     rcx, rax                                                       ; +0x70, 0x1403f6a90\ncall    qword ptr [rdx+48h]                                            ; +0x73, 0x1403f6a93\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x76, 0x1403f6a96\nmov     rdx, rbp                                                       ; +0x7d, 0x1403f6a9d\nmov     rcx, [rcx+170h]                                                ; +0x80, 0x1403f6aa0\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x87, 0x1403f6aa7\nmov     rbx, rax                                                       ; +0x8d, 0x1403f6aad\nmov     rcx, rbp                                                       ; +0x90, 0x1403f6ab0\ncall    sub_14003A830                                                  ; +0x93, 0x1403f6ab3\ntest    rbx, rbx                                                       ; +0x98, 0x1403f6ab8\njz      loc_1403F6B5C                                                  ; +0x9b, 0x1403f6abb\nlea     rax, [rsp+88h+var_50]                                          ; +0xa1, 0x1403f6ac1\nmov     [rsp+88h+var_60], rax                                          ; +0xa6, 0x1403f6ac6\nmov     rdx, rdi                                                       ; +0xab, 0x1403f6acb\nlea     rcx, [rsp+88h+var_50]                                          ; +0xae, 0x1403f6ace\ncall    sub_14003BDB0                                                  ; +0xb3, 0x1403f6ad3\nmov     rbx, rax                                                       ; +0xb8, 0x1403f6ad8\nmov     rcx, cs:qword_1406C2EE8                                        ; +0xbb, 0x1403f6adb\ntest    rcx, rcx                                                       ; +0xc2, 0x1403f6ae2\njnz     short loc_1403F6B16                                            ; +0xc5, 0x1403f6ae5\nmov     ecx, 3E0h; Size                                                ; +0xc7, 0x1403f6ae7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xcc, 0x1403f6aec\nmov     [rsp+88h+var_68], rax                                          ; +0xd1, 0x1403f6af1\nmov     rcx, rax                                                       ; +0xd6, 0x1403f6af6\ncall    sub_1401D0AE0                                                  ; +0xd9, 0x1403f6af9\nnop                                                                    ; +0xde, 0x1403f6afe\nmov     cs:qword_1406C2EE8, rax                                        ; +0xdf, 0x1403f6aff\nmov     rdx, [rax]                                                     ; +0xe6, 0x1403f6b06\nmov     rcx, rax                                                       ; +0xe9, 0x1403f6b09\ncall    qword ptr [rdx+48h]                                            ; +0xec, 0x1403f6b0c\nmov     rcx, cs:qword_1406C2EE8                                        ; +0xef, 0x1403f6b0f\nmov     rdx, rbx                                                       ; +0xf6, 0x1403f6b16\ncall    GameStatsManager__isSpecialChestUnlocked                       ; +0xf9, 0x1403f6b19\ntest    al, al                                                         ; +0xfe, 0x1403f6b1e\njnz     short loc_1403F6B5C                                            ; +0x100, 0x1403f6b20\nmov     dword ptr [rsi+54h], 1                                         ; +0x102, 0x1403f6b22\nlea     rcx, [rsi+58h]; void *                                         ; +0x109, 0x1403f6b29\ncmp     rcx, rdi                                                       ; +0x10d, 0x1403f6b2d\njz      short loc_1403F6B48                                            ; +0x110, 0x1403f6b30\nmov     rdx, rdi                                                       ; +0x112, 0x1403f6b32\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x115, 0x1403f6b35\njbe     short loc_1403F6B3F                                            ; +0x11a, 0x1403f6b3a\nmov     rdx, [rdi]; Src                                                ; +0x11c, 0x1403f6b3c\nmov     r8, [rdi+10h]; Size                                            ; +0x11f, 0x1403f6b3f\ncall    sub_14003CCE0                                                  ; +0x123, 0x1403f6b43\ncmp     byte ptr [rsi+50h], 0                                          ; +0x128, 0x1403f6b48\njnz     short loc_1403F6B66                                            ; +0x12c, 0x1403f6b4c\nlea     rcx, [rsi-1B0h]                                                ; +0x12e, 0x1403f6b4e\ncall    SecretLayer5__handleSecretResponse                             ; +0x135, 0x1403f6b55\njmp     short loc_1403F6B66                                            ; +0x13a, 0x1403f6b5a\nmov     rax, [rsi]                                                     ; +0x13c, 0x1403f6b5c\nmov     rcx, rsi                                                       ; +0x13f, 0x1403f6b5f\ncall    qword ptr [rax+8]                                              ; +0x142, 0x1403f6b62\nnop                                                                    ; +0x145, 0x1403f6b65\nmov     rcx, rdi                                                       ; +0x146, 0x1403f6b66\ncall    sub_14003A830                                                  ; +0x149, 0x1403f6b69\nmov     rcx, [rsp+88h+var_28]                                          ; +0x14e, 0x1403f6b6e\nxor     rcx, rsp; StackCookie                                          ; +0x153, 0x1403f6b73\ncall    __security_check_cookie                                        ; +0x156, 0x1403f6b76\nmov     rbx, [rsp+88h+arg_10]                                          ; +0x15b, 0x1403f6b7b\nadd     rsp, 70h                                                       ; +0x163, 0x1403f6b83\npop     rdi                                                            ; +0x167, 0x1403f6b87\npop     rsi                                                            ; +0x168, 0x1403f6b88\npop     rbp                                                            ; +0x169, 0x1403f6b89\nretn                                                                   ; +0x16a, 0x1403f6b8a", "xrefs": ["<???> @ 0x1405d5790", "<???> @ 0x1406d827c"], "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"}