Function at 0x402570
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x6030
call fcn.00407b00
mov eax, dword [0x414edc]
push ebx
push ebp
push esi
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4028ce
mov al, byte [0x414ee4]
xor ebx, ebx
xor ecx, ecx
mov edx, 5
test al, al
sete cl
sub edx, ecx
mov byte [esp + 0x1040], 0
test edx, edx
jle 0x40266e
mov edx, dword [0x414edc]
lea ecx, [esp + 0x18]
push ecx
push ebp
lea eax, [esp + 0x48]
push 0x102d
push edx
mov byte [esp + 0x50], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1040]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x414ee4]
test cl, cl
sete al
mov ecx, 5
sub ecx, eax
cmp ebx, ecx
jl 0x4025c3
mov edi, 0x4115fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
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 + 0x6044]
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 0x4028ce
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esp + 0x1040]
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
lea edi, [esp + 0x1040]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 [0x414edc]
push 2
push ebp
push 0x100c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4028bf
mov al, byte [0x414ee4]
xor ebx, ebx
xor edx, edx
mov byte [esp + 0x1040], 0
test al, al
sete dl
mov eax, 5
sub eax, edx
test eax, eax
jle 0x402804
mov eax, dword [0x414edc]
lea edx, [esp + 0x18]
push edx
push ebp
lea ecx, [esp + 0x48]
push 0x102d
push eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1040]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x414ee4]
test cl, cl
sete al
mov ecx, 5
sub ecx, eax
cmp ebx, ecx
jl 0x40275a
mov edi, 0x4115fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1044]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
mov ebx, ecx
add ebx, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x14], eax
lea edi, [esp + 0x1044]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [eax + esi - 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x414edc]
push 2
push ebp
push 0x100c
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402735
mov ebx, dword [esp + 0x10]
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, 0x6030
ret