Function at 0x409808
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffcc
mov edi, eax
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetUpdateRect
test eax, eax
je 0x409a5a
mov byte [edi + 0xc8], 1
mov bl, byte [edi + 0xa8]
test bl, bl
je 0x40984a
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x409870
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [esp + 0x10]
neg eax
push eax
mov eax, dword [esp + 0x10]
neg eax
push eax
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [edi + 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 [edi + 0xbc], 0
jne 0x4098af
lea ecx, [esp + 0x2c]
mov edx, 0x4096a8
mov eax, edi
call fcn.0040533c
push dword [esp + 0x30]
push dword [esp + 0x30]
mov eax, edi
call fcn.004054f0
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xc0]
cmp edx, eax
jg 0x4098df
mov ecx, dword [edi + 0xc4]
cmp ecx, dword [esp + 0x18]
jl 0x4098df
add edx, 0x20
cmp eax, edx
jg 0x4098df
mov eax, dword [esp + 0x18]
add eax, 0x20
cmp eax, dword [edi + 0xc4]
jge 0x4098f7
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x4098f7
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [edi + 0xbc], eax
cmp dword [edi + 0xbc], 0
jne 0x40992e
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [edi + 0xbc], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc0], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc4], eax
mov eax, dword [edi + 0xbc]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp + 8], eax
mov eax, dword [edi + 0xb8]
mov dword [esp + 4], eax
mov dword [edi + 0xb8], esi
test bl, bl
je 0x40998d
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_ClientToScreen
push 0
push esi
push 0x14
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_SendMessageA
push 0
push esi
push 0xf
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_SendMessageA
jmp 0x40999b
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [edi + 0x18]
push eax
lea ecx, [esp + 0x20]
mov edx, ebx
mov eax, esi
call fcn.004096bc
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetWindowDC
mov ebp, eax
mov ecx, ebp
mov edx, edi
mov eax, edi
call fcn.004095fc
test bl, bl
je 0x4099f2
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetWindowRect
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [esp + 0x1c]
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x10], eax
push 0xcc0020
push 0
push 0
push esi
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
push ebp
call sub.gdi32.dll_BitBlt
push ebp
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [esp + 8]
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 [edi + 0x18]
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [esp + 4]
mov dword [edi + 0xb8], eax
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_ValidateRect
mov byte [edi + 0xc8], 0
add esp, 0x34
pop ebp
pop edi
pop esi
pop ebx
ret