Function at 0x407f26
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x407f4a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [ebp - 8], eax
je 0x408134
push ebx
push edi
push dword [0x411c98]
lea eax, [ebp - 0x24]
push str._d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push 0x3f2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x34]
push eax
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
sub ebx, dword [ebp - 0x34]
sub edi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp - 4], eax
je 0x408120
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x408117
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40810e
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call esi
push eax
push edi
push ebx
push 0
push 0
push dword [ebp - 4]
call fcn.0040771f
add esp, 0x18
push 0x10
call esi
push eax
push 1
push ebx
push 0
push 0
push dword [ebp - 4]
call fcn.0040771f
add esp, 0x18
push 0x10
call esi
push eax
push edi
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0040771f
add esp, 0x18
push 0x14
call esi
push eax
push edi
push 1
lea eax, [ebx - 1]
push 0
push eax
push dword [ebp - 4]
call fcn.0040771f
add esp, 0x18
push 0x14
call esi
push eax
push 1
lea eax, [edi - 1]
push ebx
push eax
push 0
push dword [ebp - 4]
call fcn.0040771f
add esp, 0x18
push 2
call esi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x408101
mov eax, edi
mov dword [ebp - 0xc], 1
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [esi + 1]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
lea eax, [edi - 2]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], 2
push dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [esi + 2]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x4080db
mov eax, dword [0x411c98]
push 0x64
imul eax, ebx
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jl 0x40808d
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
push edi
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
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 - 0x18]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 0
pop edi
pop ebx
jne 0x408134
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
leave
ret