Function at 0x408804
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov ebp, eax
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetUpdateRect
test eax, eax
je 0x408aa9
mov byte [ebp + 0xc8], 1
mov bl, byte [ebp + 0xa8]
test bl, bl
je 0x408846
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x40886c
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [esp + 0x20]
neg eax
push eax
mov eax, dword [esp + 0x20]
neg eax
push eax
lea eax, [esp + 0x24]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetDC
mov dword [esp], eax
mov eax, dword [esp]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
cmp dword [ebp + 0xbc], 0
jne 0x4088ab
lea ecx, [esp + 0x3c]
mov edx, 0x4086b0
mov eax, ebp
call fcn.004058dc
push dword [esp + 0x40]
push dword [esp + 0x40]
mov eax, ebp
call fcn.00405a68
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0xc0]
cmp edx, eax
jg 0x4088db
mov ecx, dword [ebp + 0xc4]
cmp ecx, dword [esp + 0x28]
jl 0x4088db
add edx, 0x20
cmp eax, edx
jg 0x4088db
mov eax, dword [esp + 0x28]
add eax, 0x20
cmp eax, dword [ebp + 0xc4]
jge 0x4088f3
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x4088f3
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [ebp + 0xbc], eax
cmp dword [ebp + 0xbc], 0
jne 0x40892a
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp + 0xbc], eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 0xc0], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0xc4], eax
mov eax, dword [ebp + 0xbc]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0x18], eax
mov dword [ebp + 0xb8], esi
test bl, bl
je 0x4089c2
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetClientRect
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call sub.user32.dll_OffsetRect
push 0
push esi
push 0x14
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_SendMessageA
push 0
push esi
push 0xf
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_SendMessageA
push 5
mov edi, dword [ebp + 0x18]
push edi
call sub.user32.dll_GetWindow
push eax
lea ecx, [esp + 0x30]
mov edx, edi
mov eax, esi
call fcn.004086c4
jmp 0x4089e1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x30]
mov edx, eax
mov eax, esi
call fcn.004086c4
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetWindowDC
mov edi, eax
mov ecx, edi
mov edx, ebp
mov eax, ebp
call fcn.00408604
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
test bl, bl
je 0x408a41
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetWindowRect
lea eax, [esp + 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [esp + 0x2c]
sub dword [esp + 8], eax
mov eax, dword [esp + 0x30]
sub dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetClientRect
push 0xcc0020
push 0
push 0
push esi
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
push edi
call sub.gdi32.dll_BitBlt
push edi
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [esp + 4]
push eax
push esi
call sub.gdi32.dll_SelectObject
push esi
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [esp + 0x18]
mov dword [ebp + 0xb8], eax
push 0
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_ValidateRect
mov byte [ebp + 0xc8], 0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret