Function at 0x406a54
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 0x406cf9
mov byte [ebp + 0xc8], 1
mov bl, byte [ebp + 0xa8]
test bl, bl
je 0x406a96
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x406abc
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 0x406afb
lea ecx, [esp + 0x3c]
mov edx, 0x406900
mov eax, ebp
call fcn.00405000
push dword [esp + 0x40]
push dword [esp + 0x40]
mov eax, ebp
call fcn.00405174
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0xc0]
cmp edx, eax
jg 0x406b2b
mov ecx, dword [ebp + 0xc4]
cmp ecx, dword [esp + 0x28]
jl 0x406b2b
add edx, 0x20
cmp eax, edx
jg 0x406b2b
mov eax, dword [esp + 0x28]
add eax, 0x20
cmp eax, dword [ebp + 0xc4]
jge 0x406b43
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x406b43
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [ebp + 0xbc], eax
cmp dword [ebp + 0xbc], 0
jne 0x406b7a
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 0x406c12
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.00406914
jmp 0x406c31
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.00406914
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.00406854
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
test bl, bl
je 0x406c91
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