Function at 0x40c170
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x1030
call fcn.00410aa0
mov eax, dword [0x4313b0]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40c379
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
push edx
push eax
mov eax, dword [0x4313b0]
push 0x102d
push eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], ecx
call ebp
mov edi, 0x41f144
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1044]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c379
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4313b0]
push 2
push ecx
push 0x100c
push edx
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40c36a
jmp 0x40c295
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
push edx
push eax
mov eax, dword [0x4313b0]
push 0x102d
push eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], ecx
call ebp
mov edi, 0x41f144
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x18]
not ecx
dec ecx
mov ebp, ecx
add ebp, esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [eax + esi - 1]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4313b0]
push 2
push ecx
push 0x100c
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40c28b
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1030
ret