Function at 0x6f4680
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xb0]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, 1
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x3c]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x6f4908
mov edx, 0
lea eax, [ebp - 0x1c]
call fcn.00409430
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x6f46e7
mov eax, dword [eax - 4]
add eax, 1
lea ebx, [eax - 1]
mov dword [ebp - 0x14], 0
cmp ebx, dword [ebp - 0x14]
jl 0x6f4737
sub dword [ebp - 0x14], 1
mov esi, esi
add dword [ebp - 0x14], 1
push 0
lea eax, [ebp - 0x5c]
call fcn.00404190
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov edx, dword [eax + edx*4]
mov ecx, 0x8c67a8
lea eax, [ebp - 0x5c]
call fcn.00409530
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
call fcn.00409530
cmp ebx, dword [ebp - 0x14]
jg 0x6f46fc
push 0
mov ecx, 0x8c67a8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
call fcn.00409530
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
call fcn.00434cb0
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x20]
call fcn.0040bdb0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6f476b
mov eax, dword [eax - 4]
shr eax, 1
mov dword [ebp - 0x18], eax
add eax, 2
lea eax, [eax*2 + 0x14]
push eax
push 0x2042
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov eax, 1
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x6c]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x6f48c2
cmp dword [ebp - 0x10], 0
je 0x6f48c2
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
test eax, eax
je 0x6f48c2
mov eax, 1
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x94]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x6f480a
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x14
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x14]
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov eax, dword [ebp - 0x20]
call fcn.00403aa0
call fcn.0040ebd0
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x6f4821
call fcn.0040ed00
push 0
call sub.user32.dll_OpenClipboard
call sub.user32.dll_EmptyClipboard
push dword [ebp - 0x10]
push 0xf
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 8], 0
je 0x6f48bd
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
cmp eax, 1
jb 0x6f487a
sub eax, 1
je 0x6f4861
sub eax, 1
je 0x6f486a
sub eax, 1
je 0x6f4873
jmp 0x6f487a
mov dword [ebp - 0x2c], 1
jmp 0x6f487a
mov dword [ebp - 0x2c], 2
jmp 0x6f487a
mov dword [ebp - 0x2c], 4
cmp dword [ebp - 0x2c], 0
jbe 0x6f48bd
mov eax, str.Preferred_DropEffect
push eax
call sub.user32.dll_RegisterClipboardFormatA
mov dword [ebp - 0x30], eax
push 4
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
push dword [ebp - 0x24]
call sub.kernel32.dll_GlobalUnlock
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
call fcn.0040ebd0
pop eax
test eax, eax
je 0x6f4908
mov eax, 1
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x94]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x6f48f4
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalFree
call fcn.0040ebd0
pop eax
test eax, eax
je 0x6f4903
call fcn.0040ee00
call fcn.0040edf0
call fcn.0040ebd0
lea eax, [ebp - 0x60]
call fcn.0040bbc0
lea eax, [ebp - 0x5c]
call fcn.00404190
lea eax, [ebp - 0x1c]
call fcn.00404190
lea eax, [ebp - 0x20]
call fcn.0040ad40
pop eax
test eax, eax
je 0x6f4937
call fcn.0040ed00
pop ebx
leave
ret