Function at 0x4050d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a598
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6ed420]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4052bd
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x18]
call fcn.00402540
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
test edx, edx
je 0x405194
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
push edx
call fcn.00404e70
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jg 0x405152
jmp 0x405194
mov eax, dword [ebp - 0x30]
mov byte [ebp + eax - 0x2c], 0
lea ecx, [ebp - 0x2c]
test ecx, ecx
jne 0x40516a
mov dword [ebp - 0x54], 0
jmp 0x405179
lea edx, [ebp - 0x2c]
push edx
call fcn.00553d40
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004246a0
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
jmp 0x40512a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00553d40
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405217
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405217
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.005538c0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x20]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x6ef460]
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405217
mov dword [ebp - 0x10], 1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.004052e0
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.005536f9
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
lea ecx, [eax + eax + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4052a0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4052a0
mov eax, dword [ebp - 0x40]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.005538c0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x3c]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [ebp - 0x38]
call fcn.00427490
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00427490
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00552f15
mov esp, ebp
pop ebp
ret