Function at 0x507010
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x724a35
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5071f6
mov eax, dword [ebx + 0x218]
lea edi, [ebx + 0x218]
mov esi, dword [eax - 0xc]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi + esi]
lea esi, [esi*2 + 2]
mov dword [ebp - 0x14], eax
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebx, eax
push 0
push ebx
call fcn.006f7570
mov edx, dword [edi]
mov ecx, 1
add esp, 0xc
sub ecx, dword [edx - 4]
mov eax, dword [edx - 8]
or eax, ecx
jge 0x5070b0
push 0
mov ecx, edi
call fcn.004d5ad0
mov edx, dword [edi]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5070e7
test ebx, ebx
je 0x5070d7
push eax
test edx, edx
je 0x5070cc
push edx
push ebx
call fcn.006f6ff0
add esp, 0xc
jmp 0x5070e7
push 0
push ebx
call fcn.006f7570
add esp, 0xc
call fcn.006fba38
mov dword [eax], 0x16
call fcn.006fb95e
mov eax, dword [edi]
test eax, eax
jne 0x5070f1
xor ecx, ecx
jmp 0x507107
push dword [eax - 8]
push eax
call fcn.006fbebc
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x50720c
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x50720c
mov esi, dword [ebp - 0x10]
xor edx, edx
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
push esi
mov word [eax + ecx*2], dx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x507216
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x6e
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004d4560
push 4
push str._r_n_r_n
lea ecx, [ebp - 0x10]
call fcn.004e7bd0
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004e7bd0
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x507220
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x6f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004d4560
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 0
push esi
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5071da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x5071f6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004cf5d0
push 0x80004005
call fcn.004cf5d0
push 0x80004005
call fcn.004cf5d0
int3