Function at 0x407eb0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x407edb
push eax
push eax
push 0x882
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0x7d8
push edi
call ebx
push 0
push 0
push 0x7d9
push edi
mov esi, eax
call ebx
push 0
push 0
cmp esi, eax
je 0x407f61
push 0x977
push edi
call ebx
cmp eax, 1
jne 0x407f2d
push 0xc356
push eax
call fcn.004027f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x861
push edi
call ebx
push 0
push 0
push 0x85f
push edi
mov esi, eax
call ebx
sub esi, eax
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
push 0
push 0x871
jmp 0x407f83
push 0x7d6
push edi
call ebx
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push 0x886
push edi
call ebx
push 0
push 0
push 0x859
push edi
call ebx
push 0
push 0
mov edx, 0xfde9
xor ecx, ecx
push 0xffffffffffffffff
cmp eax, edx
push esi
cmove ecx, edx
push 0
push ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x40800a
push str._r_n_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 4], eax
push str._r_n_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
shr eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
push eax
push 0xffffffffffffffff
push esi
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x408012
mov ebx, 0x636dac
mov dword [ebp - 4], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x408039
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
lea ecx, [esi*2 + 2]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push dword [ebp - 0xc]
call esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret