Function at 0x50ac50
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517820
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x56bbe0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x1c]
call fcn.0049a116
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x60], 1
mov ecx, 0x575b78
call fcn.0049db0d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
je 0x50accc
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0049a534
jmp 0x50ace8
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0049a534
lea ecx, [ebp - 0x30]
call fcn.0049a116
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401100
lea ecx, [ebp - 0x54]
call fcn.00402070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00402be0
cmp dword [ebp - 0x38], 0
je 0x50ad28
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004010b0
jmp 0x50ad34
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.004023f0
lea ecx, [ebp - 0x20]
call fcn.00401980
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.004a2035
lea ecx, [ebp - 0x4c]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b10
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00402380
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004010d0
mov dword [ebp - 0x3c], eax
push 0xcc0020
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00402340
cmp dword [ebp + 8], 0
jne 0x50add5
mov ecx, dword [ebp - 0x34]
call fcn.00402320
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [ebp - 0x50]
push edx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x50aeab
lea ecx, [ebp - 0x74]
call fcn.00402300
mov byte [ebp - 4], 4
push 0x26
lea ecx, [ebp - 0x1c]
call fcn.00402290
and eax, 0x100
je 0x50ae67
mov dword [ebp - 0x7c], 0x408
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00498aad
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x80], ecx
mov edx, 0x300
mov eax, dword [ebp - 0x80]
mov word [eax], dx
mov ecx, dword [ebp - 0x80]
add ecx, 4
push ecx
push 0xff
push 0
lea ecx, [ebp - 0x1c]
call fcn.004044f0
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
mov edx, dword [ebp - 0x80]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402270
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.00498aa2
add esp, 4
lea eax, [ebp - 0x74]
push eax
push 0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0050a9e0
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.0050a8f0
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004022b0
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x30]
call fcn.004010d0
lea ecx, [ebp - 0x54]
call fcn.0049a7a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004019c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0049a5b3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0049a5b3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4