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

Disassembly:
mov eax, 0x1000
call fcn.0040ba40
mov eax, dword [0x46eef8]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x409b33
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
jne 0x409a0e
mov byte [esp + 0x10], bl
jmp 0x409a2f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x1000
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040ac90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.USER32.dll_CloseClipboard]
call ebx
mov edx, dword [esp + 0x1014]
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x1000
jb 0x409a77
push 0x1000
push edx
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ac90
add esp, 0xc
jmp 0x409aa2
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
lea ebp, [esp + 0x10]
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x409ad2
pop edi
pop esi
mov dword [0x46eef8], ebp
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1000
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [0x46eef8], eax
pop ebx
add esp, 0x1000
ret
mov esi, dword [esp + 0x1014]
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, ebx
jne 0x409b68
pop edi
pop esi
pop ebp
mov dword [0x46eef8], ebx
or eax, 0xffffffff
pop ebx
add esp, 0x1000
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
or ecx, 0xffffffff
mov edx, eax
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov dword [0x46eef8], ebx
xor eax, eax
pop ebx
add esp, 0x1000
ret