{"type": "func", "start": 5374767984, "end": 5374768383, "name": "CreateParticlePopup::onPasteSettings", "pseudocode": "// \n// CreateParticlePopup::onPasteSettings from 0x1405c7370 to 0x1405c74ff (399 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x1405c1ffe\n// > <???> @ 0x14092e2c8\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:34:51 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall CreateParticlePopup::onPasteSettings(_QWORD *a1)\n{\n  __int64 v2; // rsi\n  __int64 v3; // rsi\n  __int64 v4; // rax\n  __int64 v5; // rbx\n  __int64 v6; // rdx\n  unsigned int *v7; // rdi\n  __int64 v8; // rax\n  __int64 *v9; // rdi\n  __int64 *i; // rbp\n  __int64 v11; // rbx\n  __int64 v12; // rdx\n  _BYTE v13[56]; // [rsp+20h] [rbp-38h] BYREF\n  void *v14; // [rsp+70h] [rbp+18h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v14 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v14);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  v3 = *(_QWORD *)(v2 + 568);\n  if ( v3 )\n  {\n    v4 = a1[86];\n    v5 = a1[85];\n    v6 = *(_QWORD *)(v3 + 14784);\n    if ( v6 )\n    {\n      if ( v5 )\n      {\n        sub_14003F4F0((__int64)v13, v6 + 1464);\n        ParticleGameObject::setParticleString(v5, v13);\n        *(_BYTE *)(v5 + 1800) = *(_BYTE *)(*(_QWORD *)(v3 + 14784) + 1800LL);\n        *(_BYTE *)(v5 + 1433) = *(_BYTE *)(*(_QWORD *)(v3 + 14784) + 1433LL);\n        ParticleGameObject::updateParticle(v5);\n      }\n      else if ( v4 )\n      {\n        v7 = *(unsigned int **)(v4 + 56);\n        v8 = *v7;\n        if ( (_DWORD)v8 )\n        {\n          v9 = *((__int64 **)v7 + 2);\n          for ( i = &v9[v8 - 1]; v9 <= i; ++v9 )\n          {\n            v11 = *v9;\n            if ( !*v9 )\n              break;\n            sub_14003F4F0((__int64)v13, *(_QWORD *)(v3 + 14784) + 1464LL);\n            ParticleGameObject::setParticleString(v11, v13);\n            *(_BYTE *)(v11 + 1800) = *(_BYTE *)(*(_QWORD *)(v3 + 14784) + 1800LL);\n            *(_BYTE *)(v11 + 1433) = *(_BYTE *)(*(_QWORD *)(v3 + 14784) + 1433LL);\n            ParticleGameObject::updateParticle(v11);\n          }\n        }\n      }\n    }\n    CreateParticlePopup::willClose(a1);\n    LOBYTE(v12) = 1;\n    (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v12);\n  }\n}", "assembly": "; \n; CreateParticlePopup::onPasteSettings from 0x1405c7370 to 0x1405c74ff (399 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x1405c1ffe\n; > <???> @ 0x14092e2c8\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:34:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1405c7370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1405c7375\npush    rsi                                                            ; +0xa, 0x1405c737a\npush    rdi                                                            ; +0xb, 0x1405c737b\npush    r14                                                            ; +0xc, 0x1405c737c\nsub     rsp, 40h                                                       ; +0xe, 0x1405c737e\nmov     r14, rcx                                                       ; +0x12, 0x1405c7382\nmov     rsi, cs:qword_14090BFD0                                        ; +0x15, 0x1405c7385\ntest    rsi, rsi                                                       ; +0x1c, 0x1405c738c\njnz     short loc_1405C73C3                                            ; +0x1f, 0x1405c738f\nmov     ecx, 6E8h; Size                                                ; +0x21, 0x1405c7391\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x1405c7396\nmov     [rsp+58h+arg_10], rax                                          ; +0x2b, 0x1405c739b\nmov     rcx, rax                                                       ; +0x30, 0x1405c73a0\ncall    GameManager__GameManager                                       ; +0x33, 0x1405c73a3\nnop                                                                    ; +0x38, 0x1405c73a8\nmov     cs:qword_14090BFD0, rax                                        ; +0x39, 0x1405c73a9\nmov     rcx, [rax]                                                     ; +0x40, 0x1405c73b0\nmov     rdx, [rcx+48h]                                                 ; +0x43, 0x1405c73b3\nmov     rcx, rax                                                       ; +0x47, 0x1405c73b7\ncall    rdx                                                            ; +0x4a, 0x1405c73ba\nmov     rsi, cs:qword_14090BFD0                                        ; +0x4c, 0x1405c73bc\nmov     rsi, [rsi+238h]                                                ; +0x53, 0x1405c73c3\ntest    rsi, rsi                                                       ; +0x5a, 0x1405c73ca\njz      loc_1405C74EC                                                  ; +0x5d, 0x1405c73cd\nmov     rax, [r14+2B0h]                                                ; +0x63, 0x1405c73d3\nmov     rbx, [r14+2A8h]                                                ; +0x6a, 0x1405c73da\nmov     rdx, [rsi+39C0h]                                               ; +0x71, 0x1405c73e1\ntest    rdx, rdx                                                       ; +0x78, 0x1405c73e8\njz      loc_1405C74D6                                                  ; +0x7b, 0x1405c73eb\ntest    rbx, rbx                                                       ; +0x81, 0x1405c73f1\njz      short loc_1405C7449                                            ; +0x84, 0x1405c73f4\nadd     rdx, 5B8h                                                      ; +0x86, 0x1405c73f6\nlea     rcx, [rsp+58h+var_38]                                          ; +0x8d, 0x1405c73fd\ncall    sub_14003F4F0                                                  ; +0x92, 0x1405c7402\nlea     rdx, [rsp+58h+var_38]                                          ; +0x97, 0x1405c7407\nmov     rcx, rbx                                                       ; +0x9c, 0x1405c740c\ncall    ParticleGameObject__setParticleString                          ; +0x9f, 0x1405c740f\nmov     rax, [rsi+39C0h]                                               ; +0xa4, 0x1405c7414\nmovzx   edx, byte ptr [rax+708h]                                       ; +0xab, 0x1405c741b\nmov     [rbx+708h], dl                                                 ; +0xb2, 0x1405c7422\nmov     rax, [rsi+39C0h]                                               ; +0xb8, 0x1405c7428\nmovzx   edx, byte ptr [rax+599h]                                       ; +0xbf, 0x1405c742f\nmov     [rbx+599h], dl                                                 ; +0xc6, 0x1405c7436\nmov     rcx, rbx                                                       ; +0xcc, 0x1405c743c\ncall    ParticleGameObject__updateParticle                             ; +0xcf, 0x1405c743f\njmp     loc_1405C74D6                                                  ; +0xd4, 0x1405c7444\ntest    rax, rax                                                       ; +0xd9, 0x1405c7449\njz      loc_1405C74D6                                                  ; +0xdc, 0x1405c744c\nmov     rdi, [rax+38h]                                                 ; +0xe2, 0x1405c7452\nmov     eax, [rdi]                                                     ; +0xe6, 0x1405c7456\ntest    eax, eax                                                       ; +0xe8, 0x1405c7458\njz      short loc_1405C74D6                                            ; +0xea, 0x1405c745a\nmov     rdi, [rdi+10h]                                                 ; +0xec, 0x1405c745c\nlea     rbp, [rax-1]                                                   ; +0xf0, 0x1405c7460\nlea     rbp, [rdi+rbp*8]                                               ; +0xf4, 0x1405c7464\ncmp     rdi, rbp                                                       ; +0xf8, 0x1405c7468\nja      short loc_1405C74D6                                            ; +0xfb, 0x1405c746b\nnop     dword ptr [rax]                                                ; +0xfd, 0x1405c746d\nmov     rbx, [rdi]                                                     ; +0x100, 0x1405c7470\ntest    rbx, rbx                                                       ; +0x103, 0x1405c7473\njz      short loc_1405C74D6                                            ; +0x106, 0x1405c7476\nmov     rdx, [rsi+39C0h]                                               ; +0x108, 0x1405c7478\nadd     rdx, 5B8h                                                      ; +0x10f, 0x1405c747f\nlea     rcx, [rsp+58h+var_38]                                          ; +0x116, 0x1405c7486\ncall    sub_14003F4F0                                                  ; +0x11b, 0x1405c748b\nlea     rdx, [rsp+58h+var_38]                                          ; +0x120, 0x1405c7490\nmov     rcx, rbx                                                       ; +0x125, 0x1405c7495\ncall    ParticleGameObject__setParticleString                          ; +0x128, 0x1405c7498\nmov     rax, [rsi+39C0h]                                               ; +0x12d, 0x1405c749d\nmovzx   edx, byte ptr [rax+708h]                                       ; +0x134, 0x1405c74a4\nmov     [rbx+708h], dl                                                 ; +0x13b, 0x1405c74ab\nmov     rax, [rsi+39C0h]                                               ; +0x141, 0x1405c74b1\nmovzx   edx, byte ptr [rax+599h]                                       ; +0x148, 0x1405c74b8\nmov     [rbx+599h], dl                                                 ; +0x14f, 0x1405c74bf\nmov     rcx, rbx                                                       ; +0x155, 0x1405c74c5\ncall    ParticleGameObject__updateParticle                             ; +0x158, 0x1405c74c8\nadd     rdi, 8                                                         ; +0x15d, 0x1405c74cd\ncmp     rdi, rbp                                                       ; +0x161, 0x1405c74d1\njbe     short loc_1405C7470                                            ; +0x164, 0x1405c74d4\nmov     rcx, r14                                                       ; +0x166, 0x1405c74d6\ncall    CreateParticlePopup__willClose                                 ; +0x169, 0x1405c74d9\nmov     rax, [r14]                                                     ; +0x16e, 0x1405c74de\nmov     dl, 1                                                          ; +0x171, 0x1405c74e1\nmov     rcx, r14                                                       ; +0x173, 0x1405c74e3\ncall    qword ptr [rax+208h]                                           ; +0x176, 0x1405c74e6\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x17c, 0x1405c74ec\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x181, 0x1405c74f1\nadd     rsp, 40h                                                       ; +0x186, 0x1405c74f6\npop     r14                                                            ; +0x18a, 0x1405c74fa\npop     rdi                                                            ; +0x18c, 0x1405c74fc\npop     rsi                                                            ; +0x18d, 0x1405c74fd\nretn                                                                   ; +0x18e, 0x1405c74fe", "xrefs": ["CreateParticlePopup::init @ 0x1405c1ffe", "<???> @ 0x14092e2c8"], "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"}