Function at 0x4078dc
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 0x407b2e
mov byte [edi + 0xc8], 1
mov bl, byte [edi + 0xa8]
test bl, bl
je 0x40791e
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.user32.dll_GetClientRect
jmp 0x407944
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 0x407983
lea ecx, [esp + 0x2c]
mov edx, 0x40777c
mov eax, edi
call fcn.00405018
push dword [esp + 0x30]
push dword [esp + 0x30]
mov eax, edi
call fcn.0040519c
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xc0]
cmp edx, eax
jg 0x4079b3
mov ecx, dword [edi + 0xc4]
cmp ecx, dword [esp + 0x18]
jl 0x4079b3
add edx, 0x20
cmp eax, edx
jg 0x4079b3
mov eax, dword [esp + 0x18]
add eax, 0x20
cmp eax, dword [edi + 0xc4]
jge 0x4079cb
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x4079cb
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [edi + 0xbc], eax
cmp dword [edi + 0xbc], 0
jne 0x407a02
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 0x407a61
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 0x407a6f
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.00407790
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.004076d0
test bl, bl
je 0x407ac6
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