; ; EmotePickerPopup::init from 0x140123970 to 0x140123c5b (747 bytes) ; ; 11 xrefs: ; > ThreadViewPopup::onEmotes @ 0x1400de3c5 ; > NewThreadPopup::onEmotes @ 0x1400f06a9 ; > NewThreadPopup::onPickIcon @ 0x1400f0824 ; > ThreadDescPopup::onPickIcon @ 0x1400fd9f8 ; > ThreadDescPopup::onEmotes @ 0x1400fdb25 ; > EditLevelLayer::onEmotes @ 0x14017b7a2 ; > SoundPackDescPopup::onPickIcon @ 0x14019a0c8 ; > SoundPackDescPopup::onEmotes @ 0x14019a1f5 ; > SetTextPopup::onEmotes @ 0x1403a8557 ; > ShareCommentLayer::onEmotes @ 0x14063000c ; > @ 0x14091682c ; ; 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:26:57 +0000 ; mov rax, rsp ; +0x0, 0x140123970 mov [rax+18h], rbx ; +0x3, 0x140123973 mov [rax+20h], rsi ; +0x7, 0x140123977 push rdi ; +0xb, 0x14012397b sub rsp, 0A0h ; +0xc, 0x14012397c movaps xmmword ptr [rax-18h], xmm6 ; +0x13, 0x140123983 movaps xmmword ptr [rax-28h], xmm7 ; +0x17, 0x140123987 movaps xmmword ptr [rax-38h], xmm8 ; +0x1b, 0x14012398b movaps xmmword ptr [rax-48h], xmm9 ; +0x20, 0x140123990 mov rsi, r8 ; +0x25, 0x140123995 mov rbx, rcx ; +0x28, 0x140123998 mov [rcx+480h], rdx ; +0x2b, 0x14012399b mov [rcx+488h], r9d ; +0x32, 0x1401239a2 mov eax, [rsp+0A8h+arg_20] ; +0x39, 0x1401239a9 mov [rcx+48Ch], eax ; +0x40, 0x1401239b0 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x46, 0x1401239b6 mov rcx, rax ; +0x4c, 0x1401239bc lea rdx, [rsp+0A8h+arg_0] ; +0x4f, 0x1401239bf call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x57, 0x1401239c7 movss xmm6, cs:dword_140909780 ; +0x5d, 0x1401239cd movss xmm7, cs:dword_14083585C ; +0x65, 0x1401239d5 xorps xmm8, xmm8 ; +0x6d, 0x1401239dd comiss xmm6, xmm8 ; +0x71, 0x1401239e1 jbe short loc_140123A00 ; +0x75, 0x1401239e5 movss xmm0, [rsp+0A8h+arg_4] ; +0x77, 0x1401239e7 subss xmm0, xmm6 ; +0x80, 0x1401239f0 subss xmm0, cs:dword_1408355E4 ; +0x84, 0x1401239f4 minss xmm7, xmm0 ; +0x8c, 0x1401239fc comiss xmm8, xmm6 ; +0x90, 0x140123a00 jb loc_140123A9B ; +0x94, 0x140123a04 mov rdx, cs:qword_14090BFD0 ; +0x9a, 0x140123a0a test rdx, rdx ; +0xa1, 0x140123a11 jnz short loc_140123A4B ; +0xa4, 0x140123a14 mov ecx, 6E8h; Size ; +0xa6, 0x140123a16 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xab, 0x140123a1b mov [rsp+0A8h+arg_8], rax ; +0xb0, 0x140123a20 mov rcx, rax ; +0xb8, 0x140123a28 call GameManager__GameManager ; +0xbb, 0x140123a2b nop ; +0xc0, 0x140123a30 mov cs:qword_14090BFD0, rax ; +0xc1, 0x140123a31 mov rcx, [rax] ; +0xc8, 0x140123a38 mov rdx, [rcx+48h] ; +0xcb, 0x140123a3b mov rcx, rax ; +0xcf, 0x140123a3f call rdx ; +0xd2, 0x140123a42 mov rdx, cs:qword_14090BFD0 ; +0xd4, 0x140123a44 mov rcx, [rdx+478h] ; +0xdb, 0x140123a4b mov rax, [rcx+8] ; +0xe2, 0x140123a52 mov r8, rcx ; +0xe6, 0x140123a56 cmp byte ptr [rax+19h], 0 ; +0xe9, 0x140123a59 jnz short loc_140123A7F ; +0xed, 0x140123a5d nop ; +0xef, 0x140123a5f cmp dword ptr [rax+1Ch], 2 ; +0xf0, 0x140123a60 jge short loc_140123A6C ; +0xf4, 0x140123a64 mov rax, [rax+10h] ; +0xf6, 0x140123a66 jmp short loc_140123A72 ; +0xfa, 0x140123a6a mov rcx, rax ; +0xfc, 0x140123a6c mov rax, [rax] ; +0xff, 0x140123a6f cmp byte ptr [rax+19h], 0 ; +0x102, 0x140123a72 jz short loc_140123A60 ; +0x106, 0x140123a76 mov r8, [rdx+478h] ; +0x108, 0x140123a78 cmp byte ptr [rcx+19h], 0 ; +0x10f, 0x140123a7f jnz short loc_140123A9B ; +0x113, 0x140123a83 cmp dword ptr [rcx+1Ch], 2 ; +0x115, 0x140123a85 jg short loc_140123A9B ; +0x119, 0x140123a89 cmp rcx, r8 ; +0x11b, 0x140123a8b jz short loc_140123A9B ; +0x11e, 0x140123a8e cmp dword ptr [rcx+38h], 1 ; +0x120, 0x140123a90 jnz short loc_140123A9B ; +0x124, 0x140123a94 mov dil, 1 ; +0x126, 0x140123a96 jmp short loc_140123A9E ; +0x129, 0x140123a99 xor dil, dil ; +0x12b, 0x140123a9b mov dword ptr [rbx+458h], 42E00000h ; +0x12e, 0x140123a9e mov dword ptr [rbx+45Ch], 42800000h ; +0x138, 0x140123aa8 mov dword ptr [rbx+460h], 43AA0000h ; +0x142, 0x140123ab2 mov dword ptr [rbx+464h], 43960000h ; +0x14c, 0x140123abc mov byte ptr [rbx+478h], 1 ; +0x156, 0x140123ac6 mov eax, 2 ; +0x15d, 0x140123acd xor ecx, ecx ; +0x162, 0x140123ad2 comiss xmm6, xmm8 ; +0x164, 0x140123ad4 cmova eax, ecx ; +0x168, 0x140123ad8 mov [rsp+0A8h+var_88], eax ; +0x16b, 0x140123adb movaps xmm3, xmm7 ; +0x16f, 0x140123adf movss xmm2, cs:dword_140835928 ; +0x172, 0x140123ae2 xor edx, edx ; +0x17a, 0x140123aea mov rcx, rbx ; +0x17c, 0x140123aec call EditorWindowPopup__initWindow ; +0x17f, 0x140123aef test al, al ; +0x184, 0x140123af4 jz loc_140123C32 ; +0x186, 0x140123af6 comiss xmm6, xmm8 ; +0x18c, 0x140123afc jbe short loc_140123B77 ; +0x190, 0x140123b00 movss xmm9, dword ptr [rbx+418h] ; +0x192, 0x140123b02 movaps xmm7, xmm9 ; +0x19b, 0x140123b0b mulss xmm7, dword ptr [rbx+414h] ; +0x19f, 0x140123b0f mulss xmm9, dword ptr [rbx+410h] ; +0x1a7, 0x140123b17 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1b0, 0x140123b20 mov rcx, rax ; +0x1b6, 0x140123b26 call cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0x1b9, 0x140123b29 movaps xmm8, xmm0 ; +0x1bf, 0x140123b2f subss xmm8, cs:flt_140835490 ; +0x1c3, 0x140123b33 mulss xmm7, cs:dword_140834F20 ; +0x1cc, 0x140123b3c subss xmm8, xmm7 ; +0x1d4, 0x140123b44 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d9, 0x140123b49 mov rcx, rax ; +0x1df, 0x140123b4f call cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x1e2, 0x140123b52 subss xmm0, cs:flt_1408354EC ; +0x1e8, 0x140123b58 mulss xmm9, cs:dword_140834F20 ; +0x1f0, 0x140123b60 subss xmm0, xmm9 ; +0x1f9, 0x140123b69 movaps xmm2, xmm8 ; +0x1fe, 0x140123b6e movaps xmm1, xmm0 ; +0x202, 0x140123b72 jmp short loc_140123BD1 ; +0x205, 0x140123b75 test dil, dil ; +0x207, 0x140123b77 jnz loc_140123C07 ; +0x20a, 0x140123b7a movss xmm2, dword ptr [rsi+4] ; +0x210, 0x140123b80 movss xmm1, dword ptr [rbx+418h] ; +0x215, 0x140123b85 mulss xmm1, dword ptr [rbx+414h] ; +0x21d, 0x140123b8d movss xmm0, [rsp+0A8h+arg_4] ; +0x225, 0x140123b95 movss xmm3, cs:dword_140834F20 ; +0x22e, 0x140123b9e mulss xmm0, xmm3 ; +0x236, 0x140123ba6 mulss xmm1, xmm3 ; +0x23a, 0x140123baa comiss xmm0, xmm2 ; +0x23e, 0x140123bae jbe short loc_140123BC1 ; +0x241, 0x140123bb1 addss xmm2, cs:dword_140835530 ; +0x243, 0x140123bb3 addss xmm2, xmm1 ; +0x24b, 0x140123bbb jmp short loc_140123BCD ; +0x24f, 0x140123bbf subss xmm2, cs:dword_140835530 ; +0x251, 0x140123bc1 subss xmm2, xmm1 ; +0x259, 0x140123bc9 movss xmm1, dword ptr [rsi] ; +0x25d, 0x140123bcd lea rcx, [rsp+0A8h+arg_8] ; +0x261, 0x140123bd1 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x269, 0x140123bd9 mov r8, rax ; +0x26f, 0x140123bdf lea rdx, [rsp+0A8h+var_78] ; +0x272, 0x140123be2 mov rcx, rbx ; +0x277, 0x140123be7 call EditorWindowPopup__clampWindowOnScreen ; +0x27a, 0x140123bea mov rdx, rax ; +0x27f, 0x140123bef lea rcx, [rbx+41Ch] ; +0x282, 0x140123bf2 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x289, 0x140123bf9 mov rcx, rbx ; +0x28f, 0x140123bff call EditorWindowPopup__layoutWindow ; +0x292, 0x140123c02 mov byte ptr [rbx+255h], 1 ; +0x297, 0x140123c07 mov rcx, rbx ; +0x29e, 0x140123c0e call EmotePickerPopup__refreshEnabled ; +0x2a1, 0x140123c11 mov rcx, [rbx+480h] ; +0x2a6, 0x140123c16 test rcx, rcx ; +0x2ad, 0x140123c1d jz short loc_140123C30 ; +0x2b0, 0x140123c20 lea rax, [rbx+220h] ; +0x2b2, 0x140123c22 mov [rcx+200h], rax ; +0x2b9, 0x140123c29 mov al, 1 ; +0x2c0, 0x140123c30 lea r11, [rsp+0A8h+var_8] ; +0x2c2, 0x140123c32 mov rbx, [r11+20h] ; +0x2ca, 0x140123c3a mov rsi, [r11+28h] ; +0x2ce, 0x140123c3e movaps xmm6, xmmword ptr [r11-10h] ; +0x2d2, 0x140123c42 movaps xmm7, xmmword ptr [r11-20h] ; +0x2d7, 0x140123c47 movaps xmm8, xmmword ptr [r11-30h] ; +0x2dc, 0x140123c4c movaps xmm9, xmmword ptr [r11-40h] ; +0x2e1, 0x140123c51 mov rsp, r11 ; +0x2e6, 0x140123c56 pop rdi ; +0x2e9, 0x140123c59 retn ; +0x2ea, 0x140123c5a