Function at 0x416510
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xe6
mov dword [ebp - 0xc], 0xa0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebp + 8]
jne 0x41654b
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call fcn.00416710
add esp, 4
test eax, eax
je 0x41655f
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040ff30
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412940
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x416709
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4166fd
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
xor edx, edx
cmp dword [ebp - 0x24], 0
setge dl
sub edx, 1
and edx, dword [ebp - 0x24]
add edx, 0x1a8
mov dword [ebp - 0x28], edx
xor eax, eax
cmp dword [ebp - 0x20], 0
setge al
sub eax, 1
and eax, dword [ebp - 0x20]
add eax, 0x183
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 0
jmp 0x416617
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x82
jge 0x4166b2
cmp dword [ebp - 0x34], 0
je 0x4166b2
mov dword [ebp - 0x40], 0
jmp 0x416640
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0x35
jge 0x4166ad
cmp dword [ebp - 0x34], 0
je 0x4166ad
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
and eax, 0xff
movzx ecx, al
movzx edx, word [ebp - 0x44]
sar edx, 8
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x4166a4
mov ecx, dword [ebp - 0x44]
and ecx, 0xff
movzx edx, cl
mov eax, dword [ebp - 0x44]
shr eax, 0x10
and eax, 0xff
movzx ecx, al
cmp edx, ecx
je 0x4166ab
mov dword [ebp - 0x34], 0
jmp 0x416637
jmp 0x41660e
cmp dword [ebp - 0x34], 0
je 0x4166d3
push 0x35
push 0x82
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412b70
add esp, 0x14
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x38]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret