Function at 0x40a6d0
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 0x40a922
mov byte [edi + 0xc8], 1
mov bl, byte [edi + 0xa8]
test bl, bl
je 0x40a712
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x40a738
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 0x40a777
lea ecx, [esp + 0x2c]
mov edx, 0x40a570
mov eax, edi
call fcn.00405cfc
push dword [esp + 0x30]
push dword [esp + 0x30]
mov eax, edi
call fcn.00405eb8
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xc0]
cmp edx, eax
jg 0x40a7a7
mov ecx, dword [edi + 0xc4]
cmp ecx, dword [esp + 0x18]
jl 0x40a7a7
add edx, 0x20
cmp eax, edx
jg 0x40a7a7
mov eax, dword [esp + 0x18]
add eax, 0x20
cmp eax, dword [edi + 0xc4]
jge 0x40a7bf
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40a7bf
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [edi + 0xbc], eax
cmp dword [edi + 0xbc], 0
jne 0x40a7f6
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 0x40a855
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 0x40a863
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.0040a584
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.0040a4c4
test bl, bl
je 0x40a8ba
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