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

Disassembly:
push 0xffffffffffffffff
push 0x59da08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x614b80]
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.00569fcc
xor esi, esi
mov ecx, 0x6271c8
mov dword [esp + 0x64], esi
call fcn.0056d69b
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.0056a44b
lea ecx, [esp + 0x38]
call fcn.00569fcc
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.0056a44b
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.00569c1e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405917
push 0x80004005
call fcn.004028d0
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.00571c29
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.0056a68e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.0056a71d
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 0x4059bd
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 0x405a68
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 0x405a32
push 0x408
call fcn.005684a2
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.0056a68e
push esi
call fcn.005684ad
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
call fcn.00405b00
mov esi, eax
test esi, esi
je 0x405a4f
mov ebx, ebp
call fcn.00405cf0
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.00402450
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405a73
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.0056a71d
lea ecx, [esp + 0x18]
call fcn.0056a6ba
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 0x405aac
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.00402450
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 0
call fcn.0056a4ca
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], 0xffffffff
call fcn.0056a4ca
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