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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
jne 0x406cf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [ebp - 4], 0
jle 0x406d05
mov dword [esi + 8], eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jle 0x406d15
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x406d35
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x406d62
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
mov dword [ebp - 0x24], edi
jne 0x406d8e
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov dword [ebp - 0x18], edx
jge 0x406daa
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
cmp edx, ebx
jge 0x406db3
mov dword [ebp - 0x18], ebx
mov edx, ebx
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx + 0x60]
cmp eax, ebx
jle 0x406dbf
mov eax, ebx
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx + 0x64]
cmp esi, ebx
jle 0x406dcb
mov esi, ebx
sub eax, ecx
sub esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x406e21
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call esi
push edi
call esi
mov edx, dword [ebp - 0x14]
push 0
push 0x5e0340
push 0x5e0318
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406eb7
lea ecx, [ebp - 0x38]
call fcn.00572d84
push edi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x406e50
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xd4]
test eax, eax
je 0x406e70
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x34]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push 0xcc0020
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [ebp - 0x1c]
push edx
push eax
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CDC::CDC
jmp 0x406ed5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push 0xcc0020
push eax
push ecx
push edx
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call esi
push edi
call esi
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x24], edi
je 0x406f96
mov esi, dword [ebp - 0x14]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, edi
je 0x406f2b
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x20]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0xd4]
cmp ecx, edi
je 0x406e0c
cmp dword [ecx + 4], edi
je 0x406e0c
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x406e0c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8