{"type": "func", "start": 5373170576, "end": 5373170794, "name": "SetupRandTriggerPopup::onClose", "pseudocode": "// \n// SetupRandTriggerPopup::onClose from 0x140441390 to 0x14044146a (218 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405ec7d0\n// > <???> @ 0x1406da3f4\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\nvoid SetupRandTriggerPopup::onClose(SetupRandTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v4; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  a1->m_groupID1Input->m_delegate = nullptr;\n  a1->m_groupID1Input->onClickTrackNode(a1->m_groupID1Input, 0);\n  a1->m_groupID2Input->m_delegate = nullptr;\n  a1->m_groupID2Input->onClickTrackNode(a1->m_groupID2Input, 0);\n  a1->m_chanceInput->m_delegate = nullptr;\n  a1->m_chanceInput->onClickTrackNode(a1->m_chanceInput, 0);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  *(_BYTE *)(*(_QWORD *)(v4 + 528) + 14401LL) = 1;\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetupRandTriggerPopup::onClose from 0x140441390 to 0x14044146a (218 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405ec7d0\n; > <???> @ 0x1406da3f4\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_8], rbx                                               ; +0x0, 0x140441390\npush    rdi                                                            ; +0x5, 0x140441395\nsub     rsp, 20h                                                       ; +0x6, 0x140441396\nmov     rdi, rdx                                                       ; +0xa, 0x14044139a\nmov     rbx, rcx                                                       ; +0xd, 0x14044139d\nmov     rax, [rcx+3C0h]                                                ; +0x10, 0x1404413a0\nmov     qword ptr [rax+230h], 0                                        ; +0x17, 0x1404413a7\nmov     rcx, [rcx+3C0h]                                                ; +0x22, 0x1404413b2\nmov     rax, [rcx]                                                     ; +0x29, 0x1404413b9\nxor     edx, edx                                                       ; +0x2c, 0x1404413bc\ncall    qword ptr [rax+3F8h]                                           ; +0x2e, 0x1404413be\nmov     rax, [rbx+3C8h]                                                ; +0x34, 0x1404413c4\nmov     qword ptr [rax+230h], 0                                        ; +0x3b, 0x1404413cb\nmov     rcx, [rbx+3C8h]                                                ; +0x46, 0x1404413d6\nmov     rax, [rcx]                                                     ; +0x4d, 0x1404413dd\nxor     edx, edx                                                       ; +0x50, 0x1404413e0\ncall    qword ptr [rax+3F8h]                                           ; +0x52, 0x1404413e2\nmov     rax, [rbx+3A8h]                                                ; +0x58, 0x1404413e8\nmov     qword ptr [rax+230h], 0                                        ; +0x5f, 0x1404413ef\nmov     rcx, [rbx+3A8h]                                                ; +0x6a, 0x1404413fa\nmov     rax, [rcx]                                                     ; +0x71, 0x140441401\nxor     edx, edx                                                       ; +0x74, 0x140441404\ncall    qword ptr [rax+3F8h]                                           ; +0x76, 0x140441406\nmov     rax, cs:qword_1406C2ED8                                        ; +0x7c, 0x14044140c\ntest    rax, rax                                                       ; +0x83, 0x140441413\njnz     short loc_140441447                                            ; +0x86, 0x140441416\nmov     ecx, 668h; Size                                                ; +0x88, 0x140441418\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8d, 0x14044141d\nmov     [rsp+28h+arg_0], rax                                           ; +0x92, 0x140441422\nmov     rcx, rax                                                       ; +0x97, 0x140441427\ncall    sub_14017AB00                                                  ; +0x9a, 0x14044142a\nnop                                                                    ; +0x9f, 0x14044142f\nmov     cs:qword_1406C2ED8, rax                                        ; +0xa0, 0x140441430\nmov     rdx, [rax]                                                     ; +0xa7, 0x140441437\nmov     rcx, rax                                                       ; +0xaa, 0x14044143a\ncall    qword ptr [rdx+48h]                                            ; +0xad, 0x14044143d\nmov     rax, cs:qword_1406C2ED8                                        ; +0xb0, 0x140441440\nmov     rax, [rax+210h]                                                ; +0xb7, 0x140441447\nmov     byte ptr [rax+3841h], 1                                        ; +0xbe, 0x14044144e\nmov     rdx, rdi                                                       ; +0xc5, 0x140441455\nmov     rcx, rbx                                                       ; +0xc8, 0x140441458\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xcb, 0x14044145b\nadd     rsp, 20h                                                       ; +0xd0, 0x140441460\npop     rdi                                                            ; +0xd4, 0x140441464\njmp     SetupTriggerPopup__onClose                                     ; +0xd5, 0x140441465", "xrefs": ["<???> @ 0x1405ec7d0", "<???> @ 0x1406da3f4"], "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"}