; ; cocos2d::CCEGLView::performSafeClipboardPaste from 0x18007aa20 to 0x18007ac82 (610 bytes) ; ; 3 xrefs: ; > cocos2d::CCEGLView::pumpRawInput @ 0x18007b441 ; > @ 0x18014cf68 ; > @ 0x1801bed64 ; ; 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:22:00 +0000 ; mov [rsp-8+arg_0], rbx ; +0x0, 0x18007aa20 mov [rsp-8+arg_8], rdi ; +0x5, 0x18007aa25 push rbp ; +0xa, 0x18007aa2a mov rbp, rsp ; +0xb, 0x18007aa2b sub rsp, 60h ; +0xe, 0x18007aa2e mov rax, cs:__security_cookie ; +0x12, 0x18007aa32 xor rax, rsp ; +0x19, 0x18007aa39 mov [rbp+var_8], rax ; +0x1c, 0x18007aa3c xor ecx, ecx; hWndNewOwner ; +0x20, 0x18007aa40 call cs:OpenClipboard ; +0x22, 0x18007aa42 test eax, eax ; +0x28, 0x18007aa48 jnz short loc_18007AABF ; +0x2a, 0x18007aa4a cmp cs:byte_1801B2530, al ; +0x2c, 0x18007aa4c jnz short loc_18007AA68 ; +0x32, 0x18007aa52 lea rcx, Frequency; lpFrequency ; +0x34, 0x18007aa54 call cs:QueryPerformanceFrequency ; +0x3b, 0x18007aa5b mov cs:byte_1801B2530, 1 ; +0x41, 0x18007aa61 lea rcx, [rbp+PerformanceCount]; lpPerformanceCount ; +0x48, 0x18007aa68 call cs:QueryPerformanceCounter ; +0x4c, 0x18007aa6c xorps xmm1, xmm1 ; +0x52, 0x18007aa72 cvtsi2sd xmm1, qword ptr [rbp+PerformanceCount] ; +0x55, 0x18007aa75 xorps xmm0, xmm0 ; +0x5b, 0x18007aa7b cvtsi2sd xmm0, qword ptr cs:Frequency ; +0x5e, 0x18007aa7e divsd xmm1, xmm0 ; +0x67, 0x18007aa87 mulsd xmm1, cs:qword_180106C78 ; +0x6b, 0x18007aa8b cvttsd2si rcx, xmm1 ; +0x73, 0x18007aa93 mov rax, cs:qword_1801B2660 ; +0x78, 0x18007aa98 cmp rcx, rax ; +0x7f, 0x18007aa9f jl loc_18007AC66 ; +0x82, 0x18007aaa2 lea rax, [rcx+64h] ; +0x88, 0x18007aaa8 mov cs:qword_1801B2660, rax ; +0x8c, 0x18007aaac mov cs:byte_1801B2548, 1 ; +0x93, 0x18007aab3 jmp loc_18007AC66 ; +0x9a, 0x18007aaba mov ecx, 0Dh; uFormat ; +0x9f, 0x18007aabf call cs:GetClipboardData ; +0xa4, 0x18007aac4 mov rbx, rax ; +0xaa, 0x18007aaca test rax, rax ; +0xad, 0x18007aacd jz loc_18007ABC1 ; +0xb0, 0x18007aad0 mov rcx, rax; hMem ; +0xb6, 0x18007aad6 call cs:GlobalLock ; +0xb9, 0x18007aad9 mov rdi, rax ; +0xbf, 0x18007aadf test rax, rax ; +0xc2, 0x18007aae2 jz loc_18007AC60 ; +0xc5, 0x18007aae5 mov rcx, rax; String ; +0xcb, 0x18007aaeb call wcslen ; +0xce, 0x18007aaee mov r8d, eax ; +0xd3, 0x18007aaf3 mov rdx, rdi ; +0xd6, 0x18007aaf6 lea rcx, [rbp+Block] ; +0xd9, 0x18007aaf9 call sub_18007C2C0 ; +0xdd, 0x18007aafd nop ; +0xe2, 0x18007ab02 mov rcx, rbx; hMem ; +0xe3, 0x18007ab03 call cs:GlobalUnlock ; +0xe6, 0x18007ab06 mov rdi, [rbp+var_18] ; +0xec, 0x18007ab0c test rdi, rdi ; +0xf0, 0x18007ab10 jz short loc_18007AB67 ; +0xf3, 0x18007ab13 cmp rdi, 100000h ; +0xf5, 0x18007ab15 jbe short loc_18007AB3F ; +0xfc, 0x18007ab1c mov [rbp+var_18], 100000h ; +0xfe, 0x18007ab1e lea rax, [rbp+Block] ; +0x106, 0x18007ab26 cmp [rbp+var_10], 0Fh ; +0x10a, 0x18007ab2a cmova rax, [rbp+Block] ; +0x10f, 0x18007ab2f mov byte ptr [rax+100000h], 0 ; +0x114, 0x18007ab34 mov rdi, [rbp+var_18] ; +0x11b, 0x18007ab3b lea rbx, [rbp+Block] ; +0x11f, 0x18007ab3f cmp [rbp+var_10], 0Fh ; +0x123, 0x18007ab43 cmova rbx, [rbp+Block] ; +0x128, 0x18007ab48 call ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0x12d, 0x18007ab4d mov rcx, rax ; +0x132, 0x18007ab52 mov r9d, 0FFFFFFFFh ; +0x135, 0x18007ab55 mov r8d, edi ; +0x13b, 0x18007ab5b mov rdx, rbx ; +0x13e, 0x18007ab5e call ?dispatchInsertText@CCIMEDispatcher@cocos2d@@QEAAXPEBDHW4enumKeyCodes@2@@Z; cocos2d::CCIMEDispatcher::dispatchInsertText(char const *,int,cocos2d::enumKeyCodes) ; +0x141, 0x18007ab61 nop ; +0x146, 0x18007ab66 mov rdx, [rbp+var_10] ; +0x147, 0x18007ab67 cmp rdx, 0Fh ; +0x14b, 0x18007ab6b jbe loc_18007AC60 ; +0x14f, 0x18007ab6f inc rdx ; +0x155, 0x18007ab75 mov rcx, [rbp+Block]; Block ; +0x158, 0x18007ab78 mov rax, rcx ; +0x15c, 0x18007ab7c cmp rdx, 1000h ; +0x15f, 0x18007ab7f jb short loc_18007ABB7 ; +0x166, 0x18007ab86 add rdx, 27h ; ''' ; +0x168, 0x18007ab88 mov rcx, [rcx-8] ; +0x16c, 0x18007ab8c sub rax, rcx ; +0x170, 0x18007ab90 sub rax, 8 ; +0x173, 0x18007ab93 cmp rax, 1Fh ; +0x177, 0x18007ab97 jbe short loc_18007ABB7 ; +0x17b, 0x18007ab9b mov [rsp+60h+Reserved], 0; Reserved ; +0x17d, 0x18007ab9d xor r9d, r9d; LineNo ; +0x186, 0x18007aba6 xor r8d, r8d; FileName ; +0x189, 0x18007aba9 xor edx, edx; FunctionName ; +0x18c, 0x18007abac xor ecx, ecx; Expression ; +0x18e, 0x18007abae call cs:_invoke_watson ; +0x190, 0x18007abb0 db 0CCh ; +0x196, 0x18007abb6 call j_j_free_0 ; +0x197, 0x18007abb7 jmp loc_18007AC60 ; +0x19c, 0x18007abbc mov ecx, 1; uFormat ; +0x1a1, 0x18007abc1 call cs:GetClipboardData ; +0x1a6, 0x18007abc6 mov rbx, rax ; +0x1ac, 0x18007abcc test rax, rax ; +0x1af, 0x18007abcf jz loc_18007AC60 ; +0x1b2, 0x18007abd2 mov rcx, rax; hMem ; +0x1b8, 0x18007abd8 call cs:GlobalLock ; +0x1bb, 0x18007abdb test rax, rax ; +0x1c1, 0x18007abe1 jz short loc_18007AC60 ; +0x1c4, 0x18007abe4 mov rdx, rax; Str ; +0x1c6, 0x18007abe6 lea rcx, [rbp+Block]; void * ; +0x1c9, 0x18007abe9 call sub_180005A10 ; +0x1cd, 0x18007abed nop ; +0x1d2, 0x18007abf2 mov rcx, rbx; hMem ; +0x1d3, 0x18007abf3 call cs:GlobalUnlock ; +0x1d6, 0x18007abf6 mov rdi, [rbp+var_18] ; +0x1dc, 0x18007abfc test rdi, rdi ; +0x1e0, 0x18007ac00 jz short loc_18007AC57 ; +0x1e3, 0x18007ac03 cmp rdi, 100000h ; +0x1e5, 0x18007ac05 jbe short loc_18007AC2F ; +0x1ec, 0x18007ac0c mov [rbp+var_18], 100000h ; +0x1ee, 0x18007ac0e lea rax, [rbp+Block] ; +0x1f6, 0x18007ac16 cmp [rbp+var_10], 0Fh ; +0x1fa, 0x18007ac1a cmova rax, [rbp+Block] ; +0x1ff, 0x18007ac1f mov byte ptr [rax+100000h], 0 ; +0x204, 0x18007ac24 mov rdi, [rbp+var_18] ; +0x20b, 0x18007ac2b lea rbx, [rbp+Block] ; +0x20f, 0x18007ac2f cmp [rbp+var_10], 0Fh ; +0x213, 0x18007ac33 cmova rbx, [rbp+Block] ; +0x218, 0x18007ac38 call ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0x21d, 0x18007ac3d mov rcx, rax ; +0x222, 0x18007ac42 mov r9d, 0FFFFFFFFh ; +0x225, 0x18007ac45 mov r8d, edi ; +0x22b, 0x18007ac4b mov rdx, rbx ; +0x22e, 0x18007ac4e call ?dispatchInsertText@CCIMEDispatcher@cocos2d@@QEAAXPEBDHW4enumKeyCodes@2@@Z; cocos2d::CCIMEDispatcher::dispatchInsertText(char const *,int,cocos2d::enumKeyCodes) ; +0x231, 0x18007ac51 nop ; +0x236, 0x18007ac56 lea rcx, [rbp+Block] ; +0x237, 0x18007ac57 call sub_180005C70 ; +0x23b, 0x18007ac5b call cs:CloseClipboard ; +0x240, 0x18007ac60 mov rcx, [rbp+var_8] ; +0x246, 0x18007ac66 xor rcx, rsp; StackCookie ; +0x24a, 0x18007ac6a call __security_check_cookie ; +0x24d, 0x18007ac6d mov rbx, [rsp+60h+arg_0] ; +0x252, 0x18007ac72 mov rdi, [rsp+60h+arg_8] ; +0x257, 0x18007ac77 add rsp, 60h ; +0x25c, 0x18007ac7c pop rbp ; +0x260, 0x18007ac80 retn ; +0x261, 0x18007ac81