{"type": "func", "start": 5370231024, "end": 5370231315, "name": "DailyLevelNode::onClaimReward", "pseudocode": "// \n// DailyLevelNode::onClaimReward from 0x1401738f0 to 0x140173a13 (291 bytes)\n// \n// 2 xrefs:\n// > DailyLevelNode::init @ 0x1401730c9\n// > <???> @ 0x1409183c8\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:27:32 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall DailyLevelNode::onClaimReward(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rax\n  int v5; // ecx\n  _QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF\n  char v7; // [rsp+50h] [rbp+8h] BYREF\n  _QWORD *v8; // [rsp+60h] [rbp+18h]\n  void *v9; // [rsp+68h] [rbp+20h]\n\n  if ( !*(_BYTE *)(a1 + 368) )\n  {\n    *(_BYTE *)(a1 + 368) = 1;\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n    cocos2d::CCPoint::operator+(v4, &v7, a1 + 352);\n    DailyLevelPage::claimLevelReward(\n      *(_DWORD **)(a1 + 336),\n      (cocos2d::CCNode *)a1,\n      *(_DWORD **)(a1 + 328),\n      (const struct cocos2d::CCPoint *)&v7);\n    if ( *(_DWORD *)(*(_QWORD *)(a1 + 336) + 732LL) != 1 )\n    {\n      v8 = v6;\n      v6[1] = 26471;\n      v6[2] = 10;\n      v6[3] = 15;\n      v6[0] = 0x6F2E3230646C6F67LL;\n      v5 = qword_14090BF60;\n      if ( !qword_14090BF60 )\n      {\n        v9 = operator new(0x8A8u);\n        qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v9);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n        v5 = qword_14090BF60;\n      }\n      FMODAudioEngine::playEffect_1(v5, (__int64)v6);\n    }\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 336LL))(a2, 0);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 936LL))(a2, 0);\n  }\n}", "assembly": "; \n; DailyLevelNode::onClaimReward from 0x1401738f0 to 0x140173a13 (291 bytes)\n; \n; 2 xrefs:\n; > DailyLevelNode::init @ 0x1401730c9\n; > <???> @ 0x1409183c8\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:27:32 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401738f0\npush    rdi                                                            ; +0x5, 0x1401738f5\nsub     rsp, 40h                                                       ; +0x6, 0x1401738f6\nmov     rdi, rdx                                                       ; +0xa, 0x1401738fa\nmov     rbx, rcx                                                       ; +0xd, 0x1401738fd\ncmp     byte ptr [rcx+170h], 0                                         ; +0x10, 0x140173900\njnz     loc_140173A08                                                  ; +0x17, 0x140173907\nmov     byte ptr [rcx+170h], 1                                         ; +0x1d, 0x14017390d\nmov     rax, [rcx]                                                     ; +0x24, 0x140173914\ncall    qword ptr [rax+0C8h]                                           ; +0x27, 0x140173917\nlea     r8, [rbx+160h]                                                 ; +0x2d, 0x14017391d\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x34, 0x140173924\nmov     rcx, rax                                                       ; +0x39, 0x140173929\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x3c, 0x14017392c\nlea     r9, [rsp+48h+arg_0]                                            ; +0x42, 0x140173932\nmov     r8, [rbx+148h]                                                 ; +0x47, 0x140173937\nmov     rdx, rbx                                                       ; +0x4e, 0x14017393e\nmov     rcx, [rbx+150h]                                                ; +0x51, 0x140173941\ncall    DailyLevelPage__claimLevelReward                               ; +0x58, 0x140173948\nmov     rax, [rbx+150h]                                                ; +0x5d, 0x14017394d\ncmp     dword ptr [rax+2DCh], 1                                        ; +0x64, 0x140173954\njz      loc_1401739EC                                                  ; +0x6b, 0x14017395b\nlea     rax, [rsp+48h+var_28]                                          ; +0x71, 0x140173961\nmov     [rsp+48h+arg_10], rax                                          ; +0x76, 0x140173966\nxorps   xmm0, xmm0                                                     ; +0x7b, 0x14017396b\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x7e, 0x14017396e\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x83, 0x140173973\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x8c, 0x14017397c\nmovsd   xmm0, cs:qword_14071BEC0                                       ; +0x95, 0x140173985\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x9d, 0x14017398d\nmovzx   eax, cs:word_14071BEC8                                         ; +0xa3, 0x140173993\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0xaa, 0x14017399a\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0xaf, 0x14017399f\nmov     rcx, cs:qword_14090BF60                                        ; +0xb4, 0x1401739a4\ntest    rcx, rcx                                                       ; +0xbb, 0x1401739ab\njnz     short loc_1401739E2                                            ; +0xbe, 0x1401739ae\nmov     ecx, 8A8h; Size                                                ; +0xc0, 0x1401739b0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc5, 0x1401739b5\nmov     [rsp+48h+arg_18], rax                                          ; +0xca, 0x1401739ba\nmov     rcx, rax                                                       ; +0xcf, 0x1401739bf\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xd2, 0x1401739c2\nnop                                                                    ; +0xd7, 0x1401739c7\nmov     cs:qword_14090BF60, rax                                        ; +0xd8, 0x1401739c8\nmov     rcx, [rax]                                                     ; +0xdf, 0x1401739cf\nmov     rdx, [rcx+48h]                                                 ; +0xe2, 0x1401739d2\nmov     rcx, rax                                                       ; +0xe6, 0x1401739d6\ncall    rdx                                                            ; +0xe9, 0x1401739d9\nmov     rcx, cs:qword_14090BF60                                        ; +0xeb, 0x1401739db\nlea     rdx, [rsp+48h+var_28]                                          ; +0xf2, 0x1401739e2\ncall    FMODAudioEngine__playEffect_1                                  ; +0xf7, 0x1401739e7\nmov     rax, [rdi]                                                     ; +0xfc, 0x1401739ec\nxor     edx, edx                                                       ; +0xff, 0x1401739ef\nmov     rcx, rdi                                                       ; +0x101, 0x1401739f1\ncall    qword ptr [rax+150h]                                           ; +0x104, 0x1401739f4\nmov     rax, [rdi]                                                     ; +0x10a, 0x1401739fa\nxor     edx, edx                                                       ; +0x10d, 0x1401739fd\nmov     rcx, rdi                                                       ; +0x10f, 0x1401739ff\ncall    qword ptr [rax+3A8h]                                           ; +0x112, 0x140173a02\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x118, 0x140173a08\nadd     rsp, 40h                                                       ; +0x11d, 0x140173a0d\npop     rdi                                                            ; +0x121, 0x140173a11\nretn                                                                   ; +0x122, 0x140173a12", "xrefs": ["DailyLevelNode::init @ 0x1401730c9", "<???> @ 0x1409183c8"], "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"}