{"type": "func", "start": 5369265536, "end": 5369265781, "name": "ChallengeNode::onClaimReward", "pseudocode": "// \n// ChallengeNode::onClaimReward from 0x140087d80 to 0x140087e75 (245 bytes)\n// \n// 2 xrefs:\n// > ChallengeNode::init @ 0x140087b23\n// > <???> @ 0x1406c6cb4\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 ChallengeNode::onClaimReward(ChallengeNode *a1, cocos2d::CCObject *a2)\n{\n  const cocos2d::CCPoint *v4; // rax\n  ChallengeNode *v5; // rdx\n  int v6; // ecx\n  _QWORD v7[5]; // [rsp+20h] [rbp-28h] BYREF\n  char v8; // [rsp+50h] [rbp+8h] BYREF\n  _QWORD *v9; // [rsp+58h] [rbp+10h]\n  FMODAudioEngine *v10; // [rsp+60h] [rbp+18h]\n\n  v4 = a1->getPosition_0(a1);\n  cocos2d::CCPoint::operator+(v4, &v8);\n  ChallengesPage::claimItem(a1->m_challengesPage, v5, a1->m_challengeItem, (cocos2d::CCPoint)&v8);\n  v9 = v7;\n  v7[1] = 26471;\n  v7[2] = 10;\n  v7[3] = 15;\n  v7[0] = 0x6F2E3230646C6F67LL;\n  v6 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v10 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v6 = qword_1406C2E88;\n  }\n  FMODAudioEngine::playEffect_1(v6, (__int64)v7);\n  ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[4].update)(a2, 0);\n  ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[12].getTag)(a2, 0);\n}", "assembly": "; \n; ChallengeNode::onClaimReward from 0x140087d80 to 0x140087e75 (245 bytes)\n; \n; 2 xrefs:\n; > ChallengeNode::init @ 0x140087b23\n; > <???> @ 0x1406c6cb4\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, 0x140087d80\npush    rdi                                                            ; +0x5, 0x140087d85\nsub     rsp, 40h                                                       ; +0x6, 0x140087d86\nmov     rdi, rdx                                                       ; +0xa, 0x140087d8a\nmov     rbx, rcx                                                       ; +0xd, 0x140087d8d\nmov     rax, [rcx]                                                     ; +0x10, 0x140087d90\ncall    qword ptr [rax+0C8h]                                           ; +0x13, 0x140087d93\nlea     r8, [rbx+150h]                                                 ; +0x19, 0x140087d99\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x20, 0x140087da0\nmov     rcx, rax                                                       ; +0x25, 0x140087da5\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x28, 0x140087da8\nlea     r9, [rsp+48h+arg_0]                                            ; +0x2e, 0x140087dae\nmov     r8, [rbx+148h]                                                 ; +0x33, 0x140087db3\nmov     rcx, [rbx+140h]                                                ; +0x3a, 0x140087dba\ncall    ChallengesPage__claimItem                                      ; +0x41, 0x140087dc1\nlea     rax, [rsp+48h+var_28]                                          ; +0x46, 0x140087dc6\nmov     [rsp+48h+arg_8], rax                                           ; +0x4b, 0x140087dcb\nxorps   xmm0, xmm0                                                     ; +0x50, 0x140087dd0\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x53, 0x140087dd3\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x58, 0x140087dd8\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x61, 0x140087de1\nmovsd   xmm0, cs:qword_14053DD70                                       ; +0x6a, 0x140087dea\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x72, 0x140087df2\nmovzx   eax, cs:word_14053DD78                                         ; +0x78, 0x140087df8\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x7f, 0x140087dff\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0x84, 0x140087e04\nmov     rcx, cs:qword_1406C2E88                                        ; +0x89, 0x140087e09\ntest    rcx, rcx                                                       ; +0x90, 0x140087e10\njnz     short loc_140087E44                                            ; +0x93, 0x140087e13\nmov     ecx, 888h; Size                                                ; +0x95, 0x140087e15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9a, 0x140087e1a\nmov     [rsp+48h+arg_10], rax                                          ; +0x9f, 0x140087e1f\nmov     rcx, rax                                                       ; +0xa4, 0x140087e24\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xa7, 0x140087e27\nnop                                                                    ; +0xac, 0x140087e2c\nmov     cs:qword_1406C2E88, rax                                        ; +0xad, 0x140087e2d\nmov     rdx, [rax]                                                     ; +0xb4, 0x140087e34\nmov     rcx, rax                                                       ; +0xb7, 0x140087e37\ncall    qword ptr [rdx+48h]                                            ; +0xba, 0x140087e3a\nmov     rcx, cs:qword_1406C2E88                                        ; +0xbd, 0x140087e3d\nlea     rdx, [rsp+48h+var_28]                                          ; +0xc4, 0x140087e44\ncall    FMODAudioEngine__playEffect_1                                  ; +0xc9, 0x140087e49\nmov     rax, [rdi]                                                     ; +0xce, 0x140087e4e\nxor     edx, edx                                                       ; +0xd1, 0x140087e51\nmov     rcx, rdi                                                       ; +0xd3, 0x140087e53\ncall    qword ptr [rax+140h]                                           ; +0xd6, 0x140087e56\nmov     rax, [rdi]                                                     ; +0xdc, 0x140087e5c\nxor     edx, edx                                                       ; +0xdf, 0x140087e5f\nmov     rcx, rdi                                                       ; +0xe1, 0x140087e61\nmov     rbx, [rsp+48h+arg_18]                                          ; +0xe4, 0x140087e64\nadd     rsp, 40h                                                       ; +0xe9, 0x140087e69\npop     rdi                                                            ; +0xed, 0x140087e6d\njmp     qword ptr [rax+398h]                                           ; +0xee, 0x140087e6e", "xrefs": ["ChallengeNode::init @ 0x140087b23", "<???> @ 0x1406c6cb4"], "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"}