Function at 0x406fbc
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 0x40720e
mov byte [edi + 0xc8], 1
mov bl, byte [edi + 0xa8]
test bl, bl
je 0x406ffe
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x407024
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 0x407063
lea ecx, [esp + 0x2c]
mov edx, 0x406e5c
mov eax, edi
call fcn.00404df0
push dword [esp + 0x30]
push dword [esp + 0x30]
mov eax, edi
call fcn.00404f54
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xc0]
cmp edx, eax
jg 0x407093
mov ecx, dword [edi + 0xc4]
cmp ecx, dword [esp + 0x18]
jl 0x407093
add edx, 0x20
cmp eax, edx
jg 0x407093
mov eax, dword [esp + 0x18]
add eax, 0x20
cmp eax, dword [edi + 0xc4]
jge 0x4070ab
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x4070ab
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [edi + 0xbc], eax
cmp dword [edi + 0xbc], 0
jne 0x4070e2
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 0x407141
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 0x40714f
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.00406e70
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.00406db0
test bl, bl
je 0x4071a6
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