Function at 0x4213a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x160
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi + 0xc]
push 0x1032
push eax
mov dword [esp + 0x28], edi
call ebp
cmp eax, 1
mov dword [esp + 0xc], eax
jge 0x4213d9
pop edi
xor eax, eax
pop ebp
add esp, 0x160
ret 4
push ebx
push esi
push 0x80
call fcn.004be967
add esp, 4
mov esi, eax
lea eax, [edi + 0x20c]
mov dword [esp + 0x28], esi
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x1f
or ebx, 0xffffffff
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 0x7f02
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x421526
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0xc]
push 2
push ebx
push 0x100c
push ecx
call ebp
lea edx, [esp + 0x44]
mov ebx, eax
mov eax, dword [edi + 0xc]
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
call ebp
mov edx, dword [esp + 0x64]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x421491
cmp eax, 1
jne 0x421511
test ebp, ebp
je 0x4214f5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 1]
cmp edx, ecx
mov dword [esp + 0x40], ecx
jne 0x4214e9
lea ecx, [eax*4 + 0x104]
push ecx
call fcn.004be967
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov edi, eax
push edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
call fcn.004be975
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add esp, 8
add eax, 0x40
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + eax*4], ebp
inc eax
mov dword [esp + 0x2c], eax
mov ebp, dword [ebp + 0x68]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
dec eax
mov dword [esp + 0x14], eax
jne 0x42143f
mov eax, dword [esp + 0x2c]
xor ebx, ebx
test eax, eax
je 0x42173a
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42173a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [edi + 0xc]
xor esi, esi
push esi
push esi
push 0x1004
push ecx
call ebp
mov ebx, eax
mov edx, ebx
dec ebx
test edx, edx
je 0x421588
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x44]
push eax
push ebx
push 0x102b
push ecx
mov dword [esp + 0x64], 4
mov dword [esp + 0x60], esi
call ebp
mov edx, ebx
dec ebx
test edx, edx
jne 0x421564
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea eax, [ebp + 0x14]
push eax
push 2
call esi
mov ecx, dword [esp + 0x2c]
mov ebx, eax
add ecx, ebp
mov dword [esp + 0x18], ebx
push ecx
push 2
call esi
mov ebp, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x18], ebp
call ebx
push ebp
mov esi, eax
call ebx
xor ebp, ebp
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi], 0x14
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
add esi, 0x14
cmp eax, ebp
jle 0x4216c7
mov ecx, dword [esp + 0x28]
lea edx, [eax - 1]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
jmp 0x4215fd
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x174]
test ecx, ecx
je 0x421643
mov ecx, 4
cmp ebp, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
jge 0x421625
test ebp, ebp
jl 0x421625
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
jmp 0x421627
xor eax, eax
mov edx, dword [eax + 0x5c]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x44]
push ecx
push edx
push 0x102b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jge 0x421653
test ebp, ebp
jl 0x421653
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
jmp 0x421655
xor eax, eax
mov edx, dword [eax + 0x68]
add edi, 0x20c
push edx
lea eax, [esp + 0x70]
push edi
push eax
call fcn.0044a2d0
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x6c]
mov edi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x6c]
lea esi, [esi + edi + 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
add ebx, edi
cmp ebp, eax
jge 0x4216af
push 0x4e08a8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add ebx, 2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x10], ecx
jl 0x4215f5
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [esi], 0
mov esi, dword [esp + 0x18]
mov byte [ebx], 0
push esi
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov ebp, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0xf
call ebp
mov edx, dword [esp + 0x14]
push edx
push 1
call ebp
push 4
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x174]
xor ebx, ebx
test edx, edx
mov esi, eax
setne bl
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [eax], ebx
call edi
push esi
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
push eax
call ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [esp + 0x28]
mov ebx, 1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call fcn.004be975
add esp, 4
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x160
ret 4