Function at 0x401460
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
call sym._GetDesktopWindow_0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetWindowRect_8
sub esp, 8
mov dword [esp], 0
call sym._GetDC_4
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CreateCompatibleDC_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
sub edx, eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
sub ecx, eax
mov eax, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
sub edx, eax
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._BitBlt_36
sub esp, 0x24
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x1c], 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40162c
mov dword [ebp - 0x60], 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov word [ebp - 0x54], 1
mov eax, dword [ebp - 0x1c]
mov word [ebp - 0x52], ax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x18], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._GetDIBits_28
sub esp, 0x1c
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._ReleaseDC_8
sub esp, 8
mov eax, dword [ebp - 0x28]
leave
ret