Function at 0x40177c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov eax, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x44
test eax, eax
push ebx
push esi
mov dword [ebp - 8], eax
push edi
jne 0x40179c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401983
mov eax, dword [0x40af48]
lea ecx, [ebp - 0x44]
push eax
push str._d__
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
push 0x67
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x2c]
push ecx
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
sub eax, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x28]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x401971
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40196a
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401961
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
push dword [ebp - 4]
push 0
push 0
push esi
mov ebx, 1
call fcn.00401000
add esp, 0x18
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
push dword [ebp - 4]
push 0
push 0
push esi
call fcn.00401000
add esp, 0x18
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
push ebx
push 0
push 0
push esi
call fcn.00401000
add esp, 0x18
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
push ebx
mov eax, dword [ebp - 4]
push 0
dec eax
push eax
push esi
call fcn.00401000
add esp, 0x18
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [edi - 1]
push ebx
push dword [ebp - 4]
push edx
push 0
push esi
call fcn.00401000
add esp, 0x18
push 2
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401957
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
lea ecx, [edi - 2]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ecx
push dword [ebp - 0x10]
push edx
add ebx, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], ebx
add ebx, 2
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 0x18], eax
cmp ecx, eax
jle 0x401931
mov eax, dword [0x40af48]
sub edx, edx
imul eax, ecx
mov ecx, 0x64
div ecx
cmp eax, dword [ebp - 0x18]
jg 0x4018e5
push 0xcc0020
push 0
push 0
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 0
jne 0x401983
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret