; ; CreateParticlePopup::onPage from 0x1405c7a50 to 0x1405c7c83 (563 bytes) ; ; 3 xrefs: ; > CreateParticlePopup::init @ 0x1405c5ecc ; > CreateParticlePopup::init @ 0x1405c27ce ; > @ 0x14092e304 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:34:51 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1405c7a50 mov [rsp+arg_8], rbp ; +0x5, 0x1405c7a55 mov [rsp+arg_10], rsi ; +0xa, 0x1405c7a5a mov [rsp+arg_18], rdi ; +0xf, 0x1405c7a5f push r12 ; +0x14, 0x1405c7a64 push r14 ; +0x16, 0x1405c7a66 push r15 ; +0x18, 0x1405c7a68 sub rsp, 20h ; +0x1a, 0x1405c7a6a lea r14, [rcx+3E4h] ; +0x1e, 0x1405c7a6e mov r15, rcx ; +0x25, 0x1405c7a75 test rdx, rdx ; +0x28, 0x1405c7a78 jz short loc_1405C7A89 ; +0x2b, 0x1405c7a7b mov rax, [rdx] ; +0x2d, 0x1405c7a7d mov rcx, rdx ; +0x30, 0x1405c7a80 call qword ptr [rax+38h] ; +0x33, 0x1405c7a83 mov [r14], eax ; +0x36, 0x1405c7a86 mov ebp, 1 ; +0x39, 0x1405c7a89 lea r12, aGjButton01Png; "GJ_button_01.png" ; +0x3e, 0x1405c7a8e nop word ptr [rax+rax+00000000h] ; +0x45, 0x1405c7a95 mov rcx, [r15+2F8h] ; +0x50, 0x1405c7aa0 lea edx, [rbp-1] ; +0x57, 0x1405c7aa7 mov ebx, [r14] ; +0x5a, 0x1405c7aaa call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5d, 0x1405c7aad cmp ebx, ebp ; +0x63, 0x1405c7ab3 setz dl ; +0x65, 0x1405c7ab5 mov rcx, [rax] ; +0x68, 0x1405c7ab8 mov r8, [rcx+150h] ; +0x6b, 0x1405c7abb mov rcx, rax ; +0x72, 0x1405c7ac2 call r8 ; +0x75, 0x1405c7ac5 mov rcx, [r15+300h] ; +0x78, 0x1405c7ac8 lea edx, [rbp-1] ; +0x7f, 0x1405c7acf mov edi, [r14] ; +0x82, 0x1405c7ad2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x85, 0x1405c7ad5 cmp edi, ebp ; +0x8b, 0x1405c7adb lea rbx, aGjButton04Png; "GJ_button_04.png" ; +0x8d, 0x1405c7add cmovz rbx, r12 ; +0x94, 0x1405c7ae4 mov rcx, [rax] ; +0x98, 0x1405c7ae8 mov r8, [rcx+3B8h] ; +0x9b, 0x1405c7aeb mov rcx, rax ; +0xa2, 0x1405c7af2 call r8 ; +0xa5, 0x1405c7af5 mov rcx, rax ; +0xa8, 0x1405c7af8 mov rdx, rbx ; +0xab, 0x1405c7afb call ButtonSprite__updateBGImage ; +0xae, 0x1405c7afe mov rcx, [r15+2E8h] ; +0xb3, 0x1405c7b03 mov edx, ebp ; +0xba, 0x1405c7b0a call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xbc, 0x1405c7b0c test rax, rax ; +0xc2, 0x1405c7b12 jz short loc_1405C7B6D ; +0xc5, 0x1405c7b15 mov rbx, [rax+38h] ; +0xc7, 0x1405c7b17 test rbx, rbx ; +0xcb, 0x1405c7b1b jz short loc_1405C7B6D ; +0xce, 0x1405c7b1e mov rdi, [rbx+120h] ; +0xd0, 0x1405c7b20 nop word ptr [rax+rax+00000000h] ; +0xd7, 0x1405c7b27 mov rbx, [rbx+108h] ; +0xe0, 0x1405c7b30 cmp [r14], ebp ; +0xe7, 0x1405c7b37 mov rcx, rbx ; +0xea, 0x1405c7b3a setz dl ; +0xed, 0x1405c7b3d mov rax, [rbx] ; +0xf0, 0x1405c7b40 call qword ptr [rax+398h] ; +0xf3, 0x1405c7b43 cmp [r14], ebp ; +0xf9, 0x1405c7b49 jz short loc_1405C7B5C ; +0xfc, 0x1405c7b4c mov rax, [rbx] ; +0xfe, 0x1405c7b4e xor edx, edx ; +0x101, 0x1405c7b51 mov rcx, rbx ; +0x103, 0x1405c7b53 call qword ptr [rax+408h] ; +0x106, 0x1405c7b56 mov rbx, rdi ; +0x10c, 0x1405c7b5c test rdi, rdi ; +0x10f, 0x1405c7b5f jz short loc_1405C7B6D ; +0x112, 0x1405c7b62 mov rdi, [rdi+120h] ; +0x114, 0x1405c7b64 jmp short loc_1405C7B30 ; +0x11b, 0x1405c7b6b mov rcx, [r15+2F0h] ; +0x11d, 0x1405c7b6d mov edx, ebp ; +0x124, 0x1405c7b74 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x126, 0x1405c7b76 test rax, rax ; +0x12c, 0x1405c7b7c jz short loc_1405C7BC7 ; +0x12f, 0x1405c7b7f mov rcx, [rax+38h] ; +0x131, 0x1405c7b81 test rcx, rcx ; +0x135, 0x1405c7b85 jz short loc_1405C7BC7 ; +0x138, 0x1405c7b88 mov rbx, [rcx+120h] ; +0x13a, 0x1405c7b8a nop dword ptr [rax+00h] ; +0x141, 0x1405c7b91 nop word ptr [rax+rax+00000000h] ; +0x145, 0x1405c7b95 mov rcx, [rcx+108h] ; +0x150, 0x1405c7ba0 cmp [r14], ebp ; +0x157, 0x1405c7ba7 setz dl ; +0x15a, 0x1405c7baa mov rax, [rcx] ; +0x15d, 0x1405c7bad call qword ptr [rax+398h] ; +0x160, 0x1405c7bb0 mov rcx, rbx ; +0x166, 0x1405c7bb6 test rbx, rbx ; +0x169, 0x1405c7bb9 jz short loc_1405C7BC7 ; +0x16c, 0x1405c7bbc mov rbx, [rbx+120h] ; +0x16e, 0x1405c7bbe jmp short loc_1405C7BA0 ; +0x175, 0x1405c7bc5 mov rcx, [r15+310h] ; +0x177, 0x1405c7bc7 lea edx, [rbp-1] ; +0x17e, 0x1405c7bce call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x181, 0x1405c7bd1 mov rcx, rax ; +0x187, 0x1405c7bd7 mov rdi, rax ; +0x18a, 0x1405c7bda xor ebx, ebx ; +0x18d, 0x1405c7bdd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x18f, 0x1405c7bdf test eax, eax ; +0x195, 0x1405c7be5 jz short loc_1405C7C20 ; +0x197, 0x1405c7be7 nop dword ptr [rax+00000000h] ; +0x199, 0x1405c7be9 mov edx, ebx ; +0x1a0, 0x1405c7bf0 mov rcx, rdi ; +0x1a2, 0x1405c7bf2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a5, 0x1405c7bf5 cmp [r14], ebp ; +0x1ab, 0x1405c7bfb setz dl ; +0x1ae, 0x1405c7bfe mov rcx, [rax] ; +0x1b1, 0x1405c7c01 mov r8, [rcx+150h] ; +0x1b4, 0x1405c7c04 mov rcx, rax ; +0x1bb, 0x1405c7c0b call r8 ; +0x1be, 0x1405c7c0e mov rcx, rdi ; +0x1c1, 0x1405c7c11 inc ebx ; +0x1c4, 0x1405c7c14 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c6, 0x1405c7c16 cmp ebx, eax ; +0x1cc, 0x1405c7c1c jb short loc_1405C7BF0 ; +0x1ce, 0x1405c7c1e inc ebp ; +0x1d0, 0x1405c7c20 cmp ebp, 4 ; +0x1d2, 0x1405c7c22 jle loc_1405C7AA0 ; +0x1d5, 0x1405c7c25 cmp dword ptr [r15+3E4h], 1 ; +0x1db, 0x1405c7c2b jnz short loc_1405C7C52 ; +0x1e3, 0x1405c7c33 mov rcx, [r15+2C8h] ; +0x1e5, 0x1405c7c35 mov rax, [rcx] ; +0x1ec, 0x1405c7c3c call qword ptr [rax+610h] ; +0x1ef, 0x1405c7c3f test eax, eax ; +0x1f5, 0x1405c7c45 mov rcx, r15 ; +0x1f7, 0x1405c7c47 setz dl ; +0x1fa, 0x1405c7c4a call CreateParticlePopup__toggleGravityMode ; +0x1fd, 0x1405c7c4d cmp dword ptr [r15+3E4h], 4 ; +0x202, 0x1405c7c52 jnz short loc_1405C7C64 ; +0x20a, 0x1405c7c5a mov rcx, r15 ; +0x20c, 0x1405c7c5c call CreateParticlePopup__applyTexturePage ; +0x20f, 0x1405c7c5f mov rbx, [rsp+38h+arg_0] ; +0x214, 0x1405c7c64 mov rbp, [rsp+38h+arg_8] ; +0x219, 0x1405c7c69 mov rsi, [rsp+38h+arg_10] ; +0x21e, 0x1405c7c6e mov rdi, [rsp+38h+arg_18] ; +0x223, 0x1405c7c73 add rsp, 20h ; +0x228, 0x1405c7c78 pop r15 ; +0x22c, 0x1405c7c7c pop r14 ; +0x22e, 0x1405c7c7e pop r12 ; +0x230, 0x1405c7c80 retn ; +0x232, 0x1405c7c82