{"type": "func", "start": 5371419616, "end": 5371419918, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x140295be0 to 0x140295d0e (302 bytes)\n// \n// 41 xrefs:\n// > EndPortalObject::init @ 0x140208fac\n// > GameObject::customSetup @ 0x14028e986\n// > GameObject::customSetup @ 0x14028ea16\n// > GameObject::customSetup @ 0x14028eb51\n// > GameObject::customSetup @ 0x14028eba0\n// > GameObject::customSetup @ 0x14028ec06\n// > GameObject::customSetup @ 0x14028ec9e\n// > GameObject::customSetup @ 0x14028ed31\n// > GameObject::customSetup @ 0x14028edc4\n// > GameObject::customSetup @ 0x14028ee99\n// > GameObject::customSetup @ 0x14028ef5f\n// > GameObject::customSetup @ 0x14028f025\n// > GameObject::customSetup @ 0x14028f0eb\n// > GameObject::customSetup @ 0x14028f1bc\n// > GameObject::customSetup @ 0x14028f29c\n// > GameObject::customSetup @ 0x14028f369\n// > GameObject::customSetup @ 0x14028f8ac\n// > GameObject::customSetup @ 0x14028f910\n// > GameObject::customSetup @ 0x14028f974\n// > GameObject::customSetup @ 0x14028f9d8\n// > GameObject::customSetup @ 0x14028fa3c\n// > GameObject::customSetup @ 0x14028fb06\n// > GameObject::customSetup @ 0x14028fb6a\n// > GameObject::customSetup @ 0x14028fc18\n// > GameObject::customSetup @ 0x14028fc8e\n// > GameObject::customSetup @ 0x14028fd7f\n// > GameObject::customSetup @ 0x14028fe82\n// > GameObject::customSetup @ 0x14028ff85\n// > GameObject::customSetup @ 0x140290063\n// > GameObject::customSetup @ 0x140290171\n// > GameObject::customSetup @ 0x14029025e\n// > GameObject::customSetup @ 0x14029033c\n// > GameObject::customSetup @ 0x14029041a\n// > GameObject::customSetup @ 0x1402904f8\n// > GameObject::customSetup @ 0x140290a2a\n// > GameObject::commonInteractiveSetup @ 0x140293f78\n// > EnhancedGameObject::customSetup @ 0x1402a23c5\n// > EnhancedGameObject::customSetup @ 0x1402a2503\n// > EnhancedGameObject::customSetup @ 0x1402a28ff\n// > EnhancedGameObject::updateUserCoin @ 0x1402a3a0f\n// > <???> @ 0x14091d630\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:29:10 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall GameObject::createAndAddParticle(__int64 a1, int a2, int a3, int a4, int a5)\n{\n  __int64 v9; // rcx\n  __int64 v10; // rcx\n  int v11; // ecx\n  __int64 Particle; // r15\n  __int64 ParticleKey; // rax\n  void *v15; // [rsp+30h] [rbp-68h]\n  void *v16; // [rsp+30h] [rbp-68h]\n  _BYTE v17[32]; // [rsp+38h] [rbp-60h] BYREF\n\n  v9 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v15 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v9 = qword_14090BFD0;\n  }\n  v10 = *(_QWORD *)(v9 + 560);\n  if ( !v10 || *(_BYTE *)(a1 + 1053) )\n    return 0;\n  Particle = GJBaseGameLayer::createParticle(v10, a2, a3, a4, a5);\n  if ( !qword_14090BFD0 )\n  {\n    v16 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v16);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  ParticleKey = GJBaseGameLayer::getParticleKey(v11, (unsigned int)v17, a2, a3, a4, a5);\n  sub_140059C40(a1 + 784, ParticleKey);\n  sub_14003D310((__int64)v17);\n  *(_BYTE *)(a1 + 816) = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x140295be0 to 0x140295d0e (302 bytes)\n; \n; 41 xrefs:\n; > EndPortalObject::init @ 0x140208fac\n; > GameObject::customSetup @ 0x14028e986\n; > GameObject::customSetup @ 0x14028ea16\n; > GameObject::customSetup @ 0x14028eb51\n; > GameObject::customSetup @ 0x14028eba0\n; > GameObject::customSetup @ 0x14028ec06\n; > GameObject::customSetup @ 0x14028ec9e\n; > GameObject::customSetup @ 0x14028ed31\n; > GameObject::customSetup @ 0x14028edc4\n; > GameObject::customSetup @ 0x14028ee99\n; > GameObject::customSetup @ 0x14028ef5f\n; > GameObject::customSetup @ 0x14028f025\n; > GameObject::customSetup @ 0x14028f0eb\n; > GameObject::customSetup @ 0x14028f1bc\n; > GameObject::customSetup @ 0x14028f29c\n; > GameObject::customSetup @ 0x14028f369\n; > GameObject::customSetup @ 0x14028f8ac\n; > GameObject::customSetup @ 0x14028f910\n; > GameObject::customSetup @ 0x14028f974\n; > GameObject::customSetup @ 0x14028f9d8\n; > GameObject::customSetup @ 0x14028fa3c\n; > GameObject::customSetup @ 0x14028fb06\n; > GameObject::customSetup @ 0x14028fb6a\n; > GameObject::customSetup @ 0x14028fc18\n; > GameObject::customSetup @ 0x14028fc8e\n; > GameObject::customSetup @ 0x14028fd7f\n; > GameObject::customSetup @ 0x14028fe82\n; > GameObject::customSetup @ 0x14028ff85\n; > GameObject::customSetup @ 0x140290063\n; > GameObject::customSetup @ 0x140290171\n; > GameObject::customSetup @ 0x14029025e\n; > GameObject::customSetup @ 0x14029033c\n; > GameObject::customSetup @ 0x14029041a\n; > GameObject::customSetup @ 0x1402904f8\n; > GameObject::customSetup @ 0x140290a2a\n; > GameObject::commonInteractiveSetup @ 0x140293f78\n; > EnhancedGameObject::customSetup @ 0x1402a23c5\n; > EnhancedGameObject::customSetup @ 0x1402a2503\n; > EnhancedGameObject::customSetup @ 0x1402a28ff\n; > EnhancedGameObject::updateUserCoin @ 0x1402a3a0f\n; > <???> @ 0x14091d630\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:29:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x140295be0\npush    rbp                                                            ; +0x2, 0x140295be2\npush    rsi                                                            ; +0x3, 0x140295be3\npush    rdi                                                            ; +0x4, 0x140295be4\npush    r14                                                            ; +0x5, 0x140295be5\npush    r15                                                            ; +0x7, 0x140295be7\nsub     rsp, 68h                                                       ; +0x9, 0x140295be9\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140295bed\nxor     rax, rsp                                                       ; +0x14, 0x140295bf4\nmov     [rsp+98h+var_40], rax                                          ; +0x17, 0x140295bf7\nmov     ebp, r9d                                                       ; +0x1c, 0x140295bfc\nmov     rsi, r8                                                        ; +0x1f, 0x140295bff\nmov     edi, edx                                                       ; +0x22, 0x140295c02\nmov     rbx, rcx                                                       ; +0x24, 0x140295c04\nmov     r14d, [rsp+98h+arg_20]                                         ; +0x27, 0x140295c07\nmov     rcx, cs:qword_14090BFD0                                        ; +0x2f, 0x140295c0f\ntest    rcx, rcx                                                       ; +0x36, 0x140295c16\njnz     short loc_140295C4D                                            ; +0x39, 0x140295c19\nmov     ecx, 6E8h; Size                                                ; +0x3b, 0x140295c1b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x40, 0x140295c20\nmov     [rsp+98h+var_68], rax                                          ; +0x45, 0x140295c25\nmov     rcx, rax                                                       ; +0x4a, 0x140295c2a\ncall    GameManager__GameManager                                       ; +0x4d, 0x140295c2d\nnop                                                                    ; +0x52, 0x140295c32\nmov     cs:qword_14090BFD0, rax                                        ; +0x53, 0x140295c33\nmov     rcx, [rax]                                                     ; +0x5a, 0x140295c3a\nmov     rdx, [rcx+48h]                                                 ; +0x5d, 0x140295c3d\nmov     rcx, rax                                                       ; +0x61, 0x140295c41\ncall    rdx                                                            ; +0x64, 0x140295c44\nmov     rcx, cs:qword_14090BFD0                                        ; +0x66, 0x140295c46\nmov     rcx, [rcx+230h]                                                ; +0x6d, 0x140295c4d\ntest    rcx, rcx                                                       ; +0x74, 0x140295c54\njz      loc_140295CF2                                                  ; +0x77, 0x140295c57\ncmp     byte ptr [rbx+41Dh], 0                                         ; +0x7d, 0x140295c5d\njnz     loc_140295CF2                                                  ; +0x84, 0x140295c64\nmov     [rsp+98h+var_78], r14d                                         ; +0x8a, 0x140295c6a\nmov     r9d, ebp                                                       ; +0x8f, 0x140295c6f\nmov     r8, rsi                                                        ; +0x92, 0x140295c72\nmov     edx, edi                                                       ; +0x95, 0x140295c75\ncall    GJBaseGameLayer__createParticle                                ; +0x97, 0x140295c77\nmov     r15, rax                                                       ; +0x9c, 0x140295c7c\ncmp     cs:qword_14090BFD0, 0                                          ; +0x9f, 0x140295c7f\njnz     short loc_140295CB4                                            ; +0xa7, 0x140295c87\nmov     ecx, 6E8h; Size                                                ; +0xa9, 0x140295c89\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xae, 0x140295c8e\nmov     [rsp+98h+var_68], rax                                          ; +0xb3, 0x140295c93\nmov     rcx, rax                                                       ; +0xb8, 0x140295c98\ncall    GameManager__GameManager                                       ; +0xbb, 0x140295c9b\nnop                                                                    ; +0xc0, 0x140295ca0\nmov     cs:qword_14090BFD0, rax                                        ; +0xc1, 0x140295ca1\nmov     rcx, [rax]                                                     ; +0xc8, 0x140295ca8\nmov     rdx, [rcx+48h]                                                 ; +0xcb, 0x140295cab\nmov     rcx, rax                                                       ; +0xcf, 0x140295caf\ncall    rdx                                                            ; +0xd2, 0x140295cb2\nmov     [rsp+98h+var_70], r14d                                         ; +0xd4, 0x140295cb4\nmov     [rsp+98h+var_78], ebp                                          ; +0xd9, 0x140295cb9\nmov     r9, rsi                                                        ; +0xdd, 0x140295cbd\nmov     r8d, edi                                                       ; +0xe0, 0x140295cc0\nlea     rdx, [rsp+98h+var_60]                                          ; +0xe3, 0x140295cc3\ncall    GJBaseGameLayer__getParticleKey                                ; +0xe8, 0x140295cc8\nlea     rcx, [rbx+310h]                                                ; +0xed, 0x140295ccd\nmov     rdx, rax                                                       ; +0xf4, 0x140295cd4\ncall    sub_140059C40                                                  ; +0xf7, 0x140295cd7\nlea     rcx, [rsp+98h+var_60]                                          ; +0xfc, 0x140295cdc\ncall    sub_14003D310                                                  ; +0x101, 0x140295ce1\nmov     byte ptr [rbx+330h], 1                                         ; +0x106, 0x140295ce6\nmov     rax, r15                                                       ; +0x10d, 0x140295ced\njmp     short loc_140295CF4                                            ; +0x110, 0x140295cf0\nxor     eax, eax                                                       ; +0x112, 0x140295cf2\nmov     rcx, [rsp+98h+var_40]                                          ; +0x114, 0x140295cf4\nxor     rcx, rsp; StackCookie                                          ; +0x119, 0x140295cf9\ncall    __security_check_cookie                                        ; +0x11c, 0x140295cfc\nadd     rsp, 68h                                                       ; +0x121, 0x140295d01\npop     r15                                                            ; +0x125, 0x140295d05\npop     r14                                                            ; +0x127, 0x140295d07\npop     rdi                                                            ; +0x129, 0x140295d09\npop     rsi                                                            ; +0x12a, 0x140295d0a\npop     rbp                                                            ; +0x12b, 0x140295d0b\npop     rbx                                                            ; +0x12c, 0x140295d0c\nretn                                                                   ; +0x12d, 0x140295d0d", "xrefs": ["EndPortalObject::init @ 0x140208fac", "GameObject::customSetup @ 0x14028e986", "GameObject::customSetup @ 0x14028ea16", "GameObject::customSetup @ 0x14028eb51", "GameObject::customSetup @ 0x14028eba0", "GameObject::customSetup @ 0x14028ec06", "GameObject::customSetup @ 0x14028ec9e", "GameObject::customSetup @ 0x14028ed31", "GameObject::customSetup @ 0x14028edc4", "GameObject::customSetup @ 0x14028ee99", "GameObject::customSetup @ 0x14028ef5f", "GameObject::customSetup @ 0x14028f025", "GameObject::customSetup @ 0x14028f0eb", "GameObject::customSetup @ 0x14028f1bc", "GameObject::customSetup @ 0x14028f29c", "GameObject::customSetup @ 0x14028f369", "GameObject::customSetup @ 0x14028f8ac", "GameObject::customSetup @ 0x14028f910", "GameObject::customSetup @ 0x14028f974", "GameObject::customSetup @ 0x14028f9d8", "GameObject::customSetup @ 0x14028fa3c", "GameObject::customSetup @ 0x14028fb06", "GameObject::customSetup @ 0x14028fb6a", "GameObject::customSetup @ 0x14028fc18", "GameObject::customSetup @ 0x14028fc8e", "GameObject::customSetup @ 0x14028fd7f", "GameObject::customSetup @ 0x14028fe82", "GameObject::customSetup @ 0x14028ff85", "GameObject::customSetup @ 0x140290063", "GameObject::customSetup @ 0x140290171", "GameObject::customSetup @ 0x14029025e", "GameObject::customSetup @ 0x14029033c", "GameObject::customSetup @ 0x14029041a", "GameObject::customSetup @ 0x1402904f8", "GameObject::customSetup @ 0x140290a2a", "GameObject::commonInteractiveSetup @ 0x140293f78", "EnhancedGameObject::customSetup @ 0x1402a23c5", "EnhancedGameObject::customSetup @ 0x1402a2503", "EnhancedGameObject::customSetup @ 0x1402a28ff", "EnhancedGameObject::updateUserCoin @ 0x1402a3a0f", "<???> @ 0x14091d630"], "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"}