; ; EndPortalObject::updateEndPos from 0x140138410 to 0x140138798 (904 bytes) ; ; 3 xrefs: ; > EndPortalObject::setVisible @ 0x1401383fa ; > PlayLayer::checkForEnd @ 0x1403b4daa ; > @ 0x1406ca0bc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x140138410 push rsi ; +0x2, 0x140138412 push rdi ; +0x3, 0x140138413 sub rsp, 50h ; +0x4, 0x140138414 movaps [rsp+68h+var_28], xmm6 ; +0x8, 0x140138418 movaps [rsp+68h+var_38], xmm7 ; +0xd, 0x14013841d movaps [rsp+68h+var_48], xmm8 ; +0x12, 0x140138422 movzx esi, dl ; +0x18, 0x140138428 mov rdi, rcx ; +0x1b, 0x14013842b call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1e, 0x14013842e mov rcx, rax ; +0x24, 0x140138434 lea rdx, [rsp+68h+arg_0] ; +0x27, 0x140138437 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x2c, 0x14013843c cmp byte ptr [rdi+559h], 0 ; +0x32, 0x140138442 jz short loc_14013848F ; +0x39, 0x140138449 mov rax, [rdi] ; +0x3b, 0x14013844b lea rdx, [rsp+68h+arg_10] ; +0x3e, 0x14013844e mov rcx, rdi ; +0x46, 0x140138456 call qword ptr [rax+670h] ; +0x49, 0x140138459 movss xmm6, cs:dword_1406233FC ; +0x4f, 0x14013845f comiss xmm6, dword ptr [rax+4] ; +0x57, 0x140138467 ja loc_140138532 ; +0x5b, 0x14013846b mov rax, [rdi] ; +0x61, 0x140138471 lea rdx, [rsp+68h+arg_18] ; +0x64, 0x140138474 mov rcx, rdi ; +0x6c, 0x14013847c call qword ptr [rax+670h] ; +0x6f, 0x14013847f movss xmm6, dword ptr [rax+4] ; +0x75, 0x140138485 jmp loc_140138532 ; +0x7a, 0x14013848a mov rcx, cs:qword_1406C2ED8 ; +0x7f, 0x14013848f test rcx, rcx ; +0x86, 0x140138496 jnz short loc_1401384CD ; +0x89, 0x140138499 mov ecx, 668h; Size ; +0x8b, 0x14013849b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x90, 0x1401384a0 mov [rsp+68h+arg_10], rax ; +0x95, 0x1401384a5 mov rcx, rax ; +0x9d, 0x1401384ad call sub_14017AB00 ; +0xa0, 0x1401384b0 nop ; +0xa5, 0x1401384b5 mov cs:qword_1406C2ED8, rax ; +0xa6, 0x1401384b6 mov rdx, [rax] ; +0xad, 0x1401384bd mov rcx, rax ; +0xb0, 0x1401384c0 call qword ptr [rdx+48h] ; +0xb3, 0x1401384c3 mov rcx, cs:qword_1406C2ED8 ; +0xb6, 0x1401384c6 mov rcx, [rcx+208h] ; +0xbd, 0x1401384cd mov rax, [rcx+0DA0h] ; +0xc4, 0x1401384d4 cmp byte ptr [rax+9B9h], 0 ; +0xcb, 0x1401384db jz short loc_140138504 ; +0xd2, 0x1401384e2 movss xmm6, [rsp+68h+arg_4] ; +0xd4, 0x1401384e4 mulss xmm6, cs:dword_140622B08 ; +0xda, 0x1401384ea divss xmm6, dword ptr [rcx+1A8h] ; +0xe2, 0x1401384f2 addss xmm6, dword ptr [rcx+510h] ; +0xea, 0x1401384fa jmp short loc_140138532 ; +0xf2, 0x140138502 movss xmm0, [rsp+68h+arg_4] ; +0xf4, 0x140138504 mulss xmm0, cs:dword_140622B08 ; +0xfa, 0x14013850a divss xmm0, dword ptr [rcx+1A8h] ; +0x102, 0x140138512 addss xmm0, dword ptr [rcx+510h] ; +0x10a, 0x14013851a movss xmm6, cs:dword_1406233FC ; +0x112, 0x140138522 comiss xmm6, xmm0 ; +0x11a, 0x14013852a ja short loc_140138532 ; +0x11d, 0x14013852d movaps xmm6, xmm0 ; +0x11f, 0x14013852f mov rbx, [rdi] ; +0x122, 0x140138532 mov rcx, rdi ; +0x125, 0x140138535 call qword ptr [rbx+0C8h] ; +0x128, 0x140138538 movaps xmm2, xmm6 ; +0x12e, 0x14013853e movss xmm1, dword ptr [rax] ; +0x131, 0x140138541 lea rcx, [rsp+68h+arg_10] ; +0x135, 0x140138545 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13d, 0x14013854d mov rdx, rax ; +0x143, 0x140138553 mov rcx, rdi ; +0x146, 0x140138556 call qword ptr [rbx+4B0h] ; +0x149, 0x140138559 mov rcx, [rdi+308h] ; +0x14f, 0x14013855f movss xmm7, cs:flt_140622C24 ; +0x156, 0x140138566 movss xmm8, cs:dword_1406236F0 ; +0x15e, 0x14013856e test rcx, rcx ; +0x167, 0x140138577 jz loc_140138600 ; +0x16a, 0x14013857a test sil, sil ; +0x170, 0x140138580 jz short loc_14013858E ; +0x173, 0x140138583 mov rax, [rcx] ; +0x175, 0x140138585 movaps xmm1, xmm7 ; +0x178, 0x140138588 call qword ptr [rax+20h] ; +0x17b, 0x14013858b cmp byte ptr [rdi+558h], 0 ; +0x17e, 0x14013858e jz short loc_14013859D ; +0x185, 0x140138595 movaps xmm6, xmm8 ; +0x187, 0x140138597 jmp short loc_1401385A0 ; +0x18b, 0x14013859b movaps xmm6, xmm7 ; +0x18d, 0x14013859d mov rax, cs:qword_1406C2ED8 ; +0x190, 0x1401385a0 test rax, rax ; +0x197, 0x1401385a7 jnz short loc_1401385DE ; +0x19a, 0x1401385aa mov ecx, 668h; Size ; +0x19c, 0x1401385ac call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1a1, 0x1401385b1 mov [rsp+68h+arg_18], rax ; +0x1a6, 0x1401385b6 mov rcx, rax ; +0x1ae, 0x1401385be call sub_14017AB00 ; +0x1b1, 0x1401385c1 nop ; +0x1b6, 0x1401385c6 mov cs:qword_1406C2ED8, rax ; +0x1b7, 0x1401385c7 mov rdx, [rax] ; +0x1be, 0x1401385ce mov rcx, rax ; +0x1c1, 0x1401385d1 call qword ptr [rdx+48h] ; +0x1c4, 0x1401385d4 mov rax, cs:qword_1406C2ED8 ; +0x1c7, 0x1401385d7 mov rcx, [rdi+308h] ; +0x1ce, 0x1401385de mov rdx, [rcx] ; +0x1d5, 0x1401385e5 mov rax, [rax+208h] ; +0x1d8, 0x1401385e8 divss xmm6, dword ptr [rax+1ACh] ; +0x1df, 0x1401385ef movaps xmm1, xmm6 ; +0x1e7, 0x1401385f7 call qword ptr [rdx+0A0h] ; +0x1ea, 0x1401385fa cmp byte ptr [rdi+558h], 0 ; +0x1f0, 0x140138600 jz short loc_14013860F ; +0x1f7, 0x140138607 movaps xmm6, xmm8 ; +0x1f9, 0x140138609 jmp short loc_140138612 ; +0x1fd, 0x14013860d movaps xmm6, xmm7 ; +0x1ff, 0x14013860f mov rax, cs:qword_1406C2ED8 ; +0x202, 0x140138612 test rax, rax ; +0x209, 0x140138619 jnz short loc_140138650 ; +0x20c, 0x14013861c mov ecx, 668h; Size ; +0x20e, 0x14013861e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x213, 0x140138623 mov [rsp+68h+arg_18], rax ; +0x218, 0x140138628 mov rcx, rax ; +0x220, 0x140138630 call sub_14017AB00 ; +0x223, 0x140138633 nop ; +0x228, 0x140138638 mov cs:qword_1406C2ED8, rax ; +0x229, 0x140138639 mov rdx, [rax] ; +0x230, 0x140138640 mov rcx, rax ; +0x233, 0x140138643 call qword ptr [rdx+48h] ; +0x236, 0x140138646 mov rax, cs:qword_1406C2ED8 ; +0x239, 0x140138649 mov rdx, [rdi] ; +0x240, 0x140138650 mov rax, [rax+208h] ; +0x243, 0x140138653 divss xmm6, dword ptr [rax+1ACh] ; +0x24a, 0x14013865a movaps xmm1, xmm6 ; +0x252, 0x140138662 mov rcx, rdi ; +0x255, 0x140138665 call qword ptr [rdx+78h] ; +0x258, 0x140138668 mov rax, cs:qword_1406C2ED8 ; +0x25b, 0x14013866b test rax, rax ; +0x262, 0x140138672 jnz short loc_1401386A9 ; +0x265, 0x140138675 mov ecx, 668h; Size ; +0x267, 0x140138677 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x26c, 0x14013867c mov [rsp+68h+arg_10], rax ; +0x271, 0x140138681 mov rcx, rax ; +0x279, 0x140138689 call sub_14017AB00 ; +0x27c, 0x14013868c nop ; +0x281, 0x140138691 mov cs:qword_1406C2ED8, rax ; +0x282, 0x140138692 mov rdx, [rax] ; +0x289, 0x140138699 mov rcx, rax ; +0x28c, 0x14013869c call qword ptr [rdx+48h] ; +0x28f, 0x14013869f mov rax, cs:qword_1406C2ED8 ; +0x292, 0x1401386a2 mov rdx, [rdi] ; +0x299, 0x1401386a9 mov rax, [rax+208h] ; +0x29c, 0x1401386ac movaps xmm1, xmm7 ; +0x2a3, 0x1401386b3 divss xmm1, dword ptr [rax+1ACh] ; +0x2a6, 0x1401386b6 mov rcx, rdi ; +0x2ae, 0x1401386be call qword ptr [rdx+88h] ; +0x2b1, 0x1401386c1 mov rbx, [rdi+550h] ; +0x2b7, 0x1401386c7 test rbx, rbx ; +0x2be, 0x1401386ce jz loc_140138768 ; +0x2c1, 0x1401386d1 mov rax, cs:qword_1406C2ED8 ; +0x2c7, 0x1401386d7 test rax, rax ; +0x2ce, 0x1401386de jnz short loc_140138715 ; +0x2d1, 0x1401386e1 mov ecx, 668h; Size ; +0x2d3, 0x1401386e3 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2d8, 0x1401386e8 mov [rsp+68h+arg_10], rax ; +0x2dd, 0x1401386ed mov rcx, rax ; +0x2e5, 0x1401386f5 call sub_14017AB00 ; +0x2e8, 0x1401386f8 nop ; +0x2ed, 0x1401386fd mov cs:qword_1406C2ED8, rax ; +0x2ee, 0x1401386fe mov rdx, [rax] ; +0x2f5, 0x140138705 mov rcx, rax ; +0x2f8, 0x140138708 call qword ptr [rdx+48h] ; +0x2fb, 0x14013870b mov rax, cs:qword_1406C2ED8 ; +0x2fe, 0x14013870e mov rcx, [rdi+550h] ; +0x305, 0x140138715 mov rdx, [rcx] ; +0x30c, 0x14013871c mov rax, [rax+208h] ; +0x30f, 0x14013871f movss xmm1, [rsp+68h+arg_4] ; +0x316, 0x140138726 divss xmm1, dword ptr [rax+1ACh] ; +0x31c, 0x14013872c mulss xmm1, cs:dword_140622D04 ; +0x324, 0x140138734 divss xmm1, dword ptr [rbx+1B4h] ; +0x32c, 0x14013873c call qword ptr [rdx+88h] ; +0x334, 0x140138744 cmp byte ptr [rdi+558h], 0 ; +0x33a, 0x14013874a jnz short loc_140138757 ; +0x341, 0x140138751 movaps xmm8, xmm7 ; +0x343, 0x140138753 mov rcx, [rdi+550h] ; +0x347, 0x140138757 mov rax, [rcx] ; +0x34e, 0x14013875e movaps xmm1, xmm8 ; +0x351, 0x140138761 call qword ptr [rax+78h] ; +0x355, 0x140138765 mov rbx, [rdi] ; +0x358, 0x140138768 mov rcx, rdi ; +0x35b, 0x14013876b call qword ptr [rbx+0C8h] ; +0x35e, 0x14013876e mov rdx, rax ; +0x364, 0x140138774 mov rcx, rdi ; +0x367, 0x140138777 call qword ptr [rbx+0B8h] ; +0x36a, 0x14013877a movaps xmm6, [rsp+68h+var_28] ; +0x370, 0x140138780 movaps xmm7, [rsp+68h+var_38] ; +0x375, 0x140138785 movaps xmm8, [rsp+68h+var_48] ; +0x37a, 0x14013878a add rsp, 50h ; +0x380, 0x140138790 pop rdi ; +0x384, 0x140138794 pop rsi ; +0x385, 0x140138795 pop rbx ; +0x386, 0x140138796 retn ; +0x387, 0x140138797