Function at 0x406b0c
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 0x406db1
mov byte [ebp + 0xc8], 1
mov bl, byte [ebp + 0xa8]
test bl, bl
je 0x406b4e
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x406b74
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 0x406bb3
lea ecx, [esp + 0x3c]
mov edx, 0x4069b8
mov eax, ebp
call fcn.00404e24
push dword [esp + 0x40]
push dword [esp + 0x40]
mov eax, ebp
call fcn.00404f98
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0xc0]
cmp edx, eax
jg 0x406be3
mov ecx, dword [ebp + 0xc4]
cmp ecx, dword [esp + 0x28]
jl 0x406be3
add edx, 0x20
cmp eax, edx
jg 0x406be3
mov eax, dword [esp + 0x28]
add eax, 0x20
cmp eax, dword [ebp + 0xc4]
jge 0x406bfb
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x406bfb
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [ebp + 0xbc], eax
cmp dword [ebp + 0xbc], 0
jne 0x406c32
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 0x406cca
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.004069cc
jmp 0x406ce9
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.004069cc
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.0040690c
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
test bl, bl
je 0x406d49
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