Function at 0x40a5d4
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 0x40a826
mov byte [edi + 0xc8], 1
mov bl, byte [edi + 0xa8]
test bl, bl
je 0x40a616
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x40a63c
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 0x40a67b
lea ecx, [esp + 0x2c]
mov edx, 0x40a474
mov eax, edi
call fcn.00405c24
push dword [esp + 0x30]
push dword [esp + 0x30]
mov eax, edi
call fcn.00405de0
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xc0]
cmp edx, eax
jg 0x40a6ab
mov ecx, dword [edi + 0xc4]
cmp ecx, dword [esp + 0x18]
jl 0x40a6ab
add edx, 0x20
cmp eax, edx
jg 0x40a6ab
mov eax, dword [esp + 0x18]
add eax, 0x20
cmp eax, dword [edi + 0xc4]
jge 0x40a6c3
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40a6c3
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [edi + 0xbc], eax
cmp dword [edi + 0xbc], 0
jne 0x40a6fa
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 0x40a759
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 0x40a767
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.0040a488
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.0040a3c8
test bl, bl
je 0x40a7be
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