Function at 0x4064d0
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x512958
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5706b0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.004de87c
xor esi, esi
mov ecx, 0x57c828
mov dword [esp + 0x64], esi
call fcn.004e1f23
mov ebx, eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
lea ecx, [esp + 0x2c]
call fcn.004decd9
lea ecx, [esp + 0x38]
call fcn.004de87c
mov byte [esp + 0x64], 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.004decd9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
lea edx, [esp + 0x48]
mov byte [esp + 0x64], 2
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
call fcn.004de4ce
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x406587
push 0x80004005
call fcn.004027b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
mov byte [esp + 0x68], 3
call fcn.004e64a1
mov esi, dword [esp + 0x54]
sub esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.004def1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.004defab
mov edx, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edx
push esi
push edi
push 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
jne 0x40662d
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [esp + 0x1c]
push edx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4066d8
mov edi, vtable.CPalette.0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
mov byte [esp + 0x64], 4
mov eax, dword [esp + 0x30]
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4066a2
push 0x408
call fcn.004dcd28
mov esi, eax
add esp, 4
lea edx, [esi + 4]
push edx
mov ecx, 0x300
push 0xff
mov word [esi], cx
mov eax, dword [esp + 0x34]
push 0
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push esi
mov word [esi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x24]
call fcn.004def1c
push esi
call fcn.004dcd33
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
call fcn.00406770
mov esi, eax
test esi, esi
je 0x4066bf
mov ebx, ebp
call fcn.00406960
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [esp + 0x64], 3
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.00402330
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4066e3
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004defab
lea ecx, [esp + 0x18]
call fcn.004def48
mov byte [esp + 0x64], 2
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40671c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CBitmap.0
call fcn.00402330
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 0
call fcn.004ded58
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], 0xffffffff
call fcn.004ded58
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4