{"type": "func", "start": 5372469520, "end": 5372470176, "name": "GJPathPage::unlockAnimationStep2", "pseudocode": "// \n// GJPathPage::unlockAnimationStep2 from 0x140396110 to 0x1403963a0 (656 bytes)\n// \n// 2 xrefs:\n// > GJPathPage::playUnlockAnimation @ 0x140395ff0\n// > <???> @ 0x1409230f0\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:31:13 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GJPathPage::unlockAnimationStep2(int *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  struct cocos2d::CCParticleSystemQuad *v4; // rdi\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  void *v7; // rcx\n  float v8[2]; // [rsp+30h] [rbp-D0h] BYREF\n  _BYTE v9[16]; // [rsp+38h] [rbp-C8h] BYREF\n  __int128 v10; // [rsp+48h] [rbp-B8h] BYREF\n  void *Block[2]; // [rsp+58h] [rbp-A8h] BYREF\n  __int64 v12; // [rsp+68h] [rbp-98h]\n  unsigned __int64 v13; // [rsp+70h] [rbp-90h]\n  unsigned int v14[66]; // [rsp+80h] [rbp-80h] BYREF\n  _BYTE v15[40]; // [rsp+188h] [rbp+88h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, v8);\n  *(_OWORD *)Block = 0;\n  v12 = 0;\n  v13 = 0;\n  Block[0] = sub_14003D460(0xB0u);\n  v12 = 170;\n  v13 = 175;\n  strcpy(\n    (char *)Block[0],\n    \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1\"\n    \"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0\");\n  if ( v12 )\n  {\n    sub_14006BF90((__int64)v14);\n    GameToolbox::particleStringToStruct((__int64 *)Block, (__int64)v14);\n    v4 = GameToolbox::particleFromStruct(v14, nullptr, 0);\n    sub_14003D310((__int64)v15);\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  LOBYTE(v3) = 1;\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v4 + 1544LL))(v4, v3);\n  (*(void (__fastcall **)(int *, struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v4, 11);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v4 + 160LL))(v4);\n  cocos2d::CCParticleSystem::resetSystem(v4);\n  v5 = *(_QWORD *)v4;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v8[0] * 0.5, v8[1] * 0.5);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(v5 + 184))(v4, v6);\n  v10 = *(_OWORD *)sub_1403924A0((__int64)v9, a1[172]);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int128 *))(*(_QWORD *)v4 + 1352LL))(v4, &v10);\n  v10 = *(_OWORD *)sub_140392390((__int64)v9, a1[172]);\n  (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int128 *))(*(_QWORD *)v4 + 1384LL))(v4, &v10);\n  if ( v13 > 0xF )\n  {\n    v7 = Block[0];\n    if ( v13 + 1 >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; GJPathPage::unlockAnimationStep2 from 0x140396110 to 0x1403963a0 (656 bytes)\n; \n; 2 xrefs:\n; > GJPathPage::playUnlockAnimation @ 0x140395ff0\n; > <???> @ 0x1409230f0\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:31:13 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140396110\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x140396115\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x14039611a\npush    rbp                                                            ; +0xf, 0x14039611f\nlea     rbp, [rsp-0C0h]                                                ; +0x10, 0x140396120\nsub     rsp, 1C0h                                                      ; +0x18, 0x140396128\nmov     rax, cs:__security_cookie                                      ; +0x1f, 0x14039612f\nxor     rax, rsp                                                       ; +0x26, 0x140396136\nmov     [rbp+0C0h+var_10], rax                                         ; +0x29, 0x140396139\nmov     rsi, rcx                                                       ; +0x30, 0x140396140\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x140396143\nmov     rcx, rax                                                       ; +0x39, 0x140396149\nlea     rdx, [rsp+1C0h+var_190]                                        ; +0x3c, 0x14039614c\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x41, 0x140396151\nxorps   xmm0, xmm0                                                     ; +0x47, 0x140396157\nmovups  xmmword ptr [rsp+1C0h+Block], xmm0                             ; +0x4a, 0x14039615a\nmov     [rsp+1C0h+var_158], 0                                          ; +0x4f, 0x14039615f\nmov     [rsp+1C0h+var_150], 0                                          ; +0x58, 0x140396168\nmov     ecx, 0B0h                                                      ; +0x61, 0x140396171\ncall    sub_14003D460                                                  ; +0x66, 0x140396176\nmov     r8, rax                                                        ; +0x6b, 0x14039617b\nmov     [rsp+1C0h+Block], rax                                          ; +0x6e, 0x14039617e\nmov     [rsp+1C0h+var_158], 0AAh                                       ; +0x73, 0x140396183\nmov     [rsp+1C0h+var_150], 0AFh                                       ; +0x7c, 0x14039618c\nlea     rcx, a84a097a1a016a7; \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0\"... ; +0x85, 0x140396195\nmovups  xmm0, xmmword ptr [rcx]                                        ; +0x8c, 0x14039619c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8f, 0x14039619f\nmovups  xmm1, xmmword ptr [rcx+10h]                                    ; +0x92, 0x1403961a2\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x96, 0x1403961a6\nmovups  xmm0, xmmword ptr [rcx+20h]                                    ; +0x9a, 0x1403961aa\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x9e, 0x1403961ae\nmovups  xmm1, xmmword ptr [rcx+30h]                                    ; +0xa2, 0x1403961b2\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xa6, 0x1403961b6\nmovups  xmm0, xmmword ptr [rcx+40h]                                    ; +0xaa, 0x1403961ba\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xae, 0x1403961be\nmovups  xmm1, xmmword ptr [rcx+50h]                                    ; +0xb2, 0x1403961c2\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0xb6, 0x1403961c6\nmovups  xmm0, xmmword ptr [rcx+60h]                                    ; +0xba, 0x1403961ca\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0xbe, 0x1403961ce\nmovups  xmm0, xmmword ptr [rcx+70h]                                    ; +0xc2, 0x1403961d2\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0xc6, 0x1403961d6\nmovups  xmm1, xmmword ptr [rcx+80h]                                    ; +0xca, 0x1403961da\nmovups  xmmword ptr [rax+80h], xmm1                                    ; +0xd1, 0x1403961e1\nmovups  xmm0, xmmword ptr [rcx+90h]                                    ; +0xd8, 0x1403961e8\nmovups  xmmword ptr [rax+90h], xmm0                                    ; +0xdf, 0x1403961ef\nmov     rax, [rcx+0A0h]                                                ; +0xe6, 0x1403961f6\nmov     [r8+0A0h], rax                                                 ; +0xed, 0x1403961fd\nmovzx   eax, word ptr [rcx+0A8h]                                       ; +0xf4, 0x140396204\nmov     [r8+0A8h], ax                                                  ; +0xfb, 0x14039620b\nmov     byte ptr [r8+0AAh], 0                                          ; +0x103, 0x140396213\ncmp     [rsp+1C0h+var_158], 0                                          ; +0x10b, 0x14039621b\njnz     short loc_140396227                                            ; +0x111, 0x140396221\nxor     edi, edi                                                       ; +0x113, 0x140396223\njmp     short loc_14039625C                                            ; +0x115, 0x140396225\nlea     rcx, [rbp+0C0h+var_140]                                        ; +0x117, 0x140396227\ncall    sub_14006BF90                                                  ; +0x11b, 0x14039622b\nnop                                                                    ; +0x120, 0x140396230\nlea     rdx, [rbp+0C0h+var_140]                                        ; +0x121, 0x140396231\nlea     rcx, [rsp+1C0h+Block]                                          ; +0x125, 0x140396235\ncall    GameToolbox__particleStringToStruct                            ; +0x12a, 0x14039623a\nxor     r8d, r8d                                                       ; +0x12f, 0x14039623f\nxor     edx, edx                                                       ; +0x132, 0x140396242\nlea     rcx, [rbp+0C0h+var_140]                                        ; +0x134, 0x140396244\ncall    GameToolbox__particleFromStruct                                ; +0x138, 0x140396248\nmov     rdi, rax                                                       ; +0x13d, 0x14039624d\nlea     rcx, [rbp+0C0h+var_38]                                         ; +0x140, 0x140396250\ncall    sub_14003D310                                                  ; +0x147, 0x140396257\nmov     rax, [rdi]                                                     ; +0x14c, 0x14039625c\nmov     dl, 1                                                          ; +0x14f, 0x14039625f\nmov     rcx, rdi                                                       ; +0x151, 0x140396261\ncall    qword ptr [rax+608h]                                           ; +0x154, 0x140396264\nmov     rax, [rsi]                                                     ; +0x15a, 0x14039626a\nmov     r8d, 0Bh                                                       ; +0x15d, 0x14039626d\nmov     rdx, rdi                                                       ; +0x163, 0x140396273\nmov     rcx, rsi                                                       ; +0x166, 0x140396276\ncall    qword ptr [rax+1C8h]                                           ; +0x169, 0x140396279\nmov     rax, [rdi]                                                     ; +0x16f, 0x14039627f\nmovss   xmm1, cs:width                                                 ; +0x172, 0x140396282\nmov     rcx, rdi                                                       ; +0x17a, 0x14039628a\ncall    qword ptr [rax+0A0h]                                           ; +0x17d, 0x14039628d\nmov     rcx, rdi                                                       ; +0x183, 0x140396293\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x186, 0x140396296\nmov     rbx, [rdi]                                                     ; +0x18c, 0x14039629c\nmovss   xmm2, [rsp+1C0h+var_18C]                                       ; +0x18f, 0x14039629f\nmulss   xmm2, cs:dword_140834F20                                       ; +0x195, 0x1403962a5\nmovss   xmm1, [rsp+1C0h+var_190]                                       ; +0x19d, 0x1403962ad\nmulss   xmm1, cs:dword_140834F20                                       ; +0x1a3, 0x1403962b3\nlea     rcx, [rsp+1C0h+var_178]                                        ; +0x1ab, 0x1403962bb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b0, 0x1403962c0\nmov     rdx, rax                                                       ; +0x1b6, 0x1403962c6\nmov     rcx, rdi                                                       ; +0x1b9, 0x1403962c9\ncall    qword ptr [rbx+0B8h]                                           ; +0x1bc, 0x1403962cc\nmov     edx, [rsi+2B0h]                                                ; +0x1c2, 0x1403962d2\nlea     rcx, [rsp+1C0h+var_188]                                        ; +0x1c8, 0x1403962d8\ncall    sub_1403924A0                                                  ; +0x1cd, 0x1403962dd\nmovups  xmm3, xmmword ptr [rax]                                        ; +0x1d2, 0x1403962e2\nmovups  [rsp+1C0h+var_178], xmm3                                       ; +0x1d5, 0x1403962e5\nmov     rax, [rdi]                                                     ; +0x1da, 0x1403962ea\nlea     rdx, [rsp+1C0h+var_178]                                        ; +0x1dd, 0x1403962ed\nmov     rcx, rdi                                                       ; +0x1e2, 0x1403962f2\ncall    qword ptr [rax+548h]                                           ; +0x1e5, 0x1403962f5\nmov     edx, [rsi+2B0h]                                                ; +0x1eb, 0x1403962fb\nlea     rcx, [rsp+1C0h+var_188]                                        ; +0x1f1, 0x140396301\ncall    sub_140392390                                                  ; +0x1f6, 0x140396306\nmovups  xmm3, xmmword ptr [rax]                                        ; +0x1fb, 0x14039630b\nmovups  [rsp+1C0h+var_178], xmm3                                       ; +0x1fe, 0x14039630e\nmov     rax, [rdi]                                                     ; +0x203, 0x140396313\nlea     rdx, [rsp+1C0h+var_178]                                        ; +0x206, 0x140396316\nmov     rcx, rdi                                                       ; +0x20b, 0x14039631b\ncall    qword ptr [rax+568h]                                           ; +0x20e, 0x14039631e\nnop                                                                    ; +0x214, 0x140396324\nmov     rdx, [rsp+1C0h+var_150]                                        ; +0x215, 0x140396325\ncmp     rdx, 0Fh                                                       ; +0x21a, 0x14039632a\njbe     short loc_140396378                                            ; +0x21e, 0x14039632e\ninc     rdx                                                            ; +0x220, 0x140396330\nmov     rcx, [rsp+1C0h+Block]; Block                                   ; +0x223, 0x140396333\nmov     rax, rcx                                                       ; +0x228, 0x140396338\ncmp     rdx, 1000h                                                     ; +0x22b, 0x14039633b\njb      short loc_140396373                                            ; +0x232, 0x140396342\nadd     rdx, 27h ; '''                                                 ; +0x234, 0x140396344\nmov     rcx, [rcx-8]                                                   ; +0x238, 0x140396348\nsub     rax, rcx                                                       ; +0x23c, 0x14039634c\nsub     rax, 8                                                         ; +0x23f, 0x14039634f\ncmp     rax, 1Fh                                                       ; +0x243, 0x140396353\njbe     short loc_140396373                                            ; +0x247, 0x140396357\nmov     [rsp+1C0h+Reserved], 0; Reserved                               ; +0x249, 0x140396359\nxor     r9d, r9d; LineNo                                               ; +0x252, 0x140396362\nxor     r8d, r8d; FileName                                             ; +0x255, 0x140396365\nxor     edx, edx; FunctionName                                         ; +0x258, 0x140396368\nxor     ecx, ecx; Expression                                           ; +0x25a, 0x14039636a\ncall    cs:_invoke_watson                                              ; +0x25c, 0x14039636c\ndb 0CCh                                                                ; +0x262, 0x140396372\ncall    j_j_free                                                       ; +0x263, 0x140396373\nmov     rcx, [rbp+0C0h+var_10]                                         ; +0x268, 0x140396378\nxor     rcx, rsp; StackCookie                                          ; +0x26f, 0x14039637f\ncall    __security_check_cookie                                        ; +0x272, 0x140396382\nlea     r11, [rsp+1C0h+var_s0]                                         ; +0x277, 0x140396387\nmov     rbx, [r11+18h]                                                 ; +0x27f, 0x14039638f\nmov     rsi, [r11+20h]                                                 ; +0x283, 0x140396393\nmov     rdi, [r11+28h]                                                 ; +0x287, 0x140396397\nmov     rsp, r11                                                       ; +0x28b, 0x14039639b\npop     rbp                                                            ; +0x28e, 0x14039639e\nretn                                                                   ; +0x28f, 0x14039639f", "xrefs": ["GJPathPage::playUnlockAnimation @ 0x140395ff0", "<???> @ 0x1409230f0"], "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"}