Function at 0x40dba8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, edi
mov dword [ebp - 8], esi
je 0x40de6e
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40de6e
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x40de6e
push 0x430
push edi
push 0x438738
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ebx, 0x43873c
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [0x43873c], 0x28
push edi
push ebx
push edi
push 1
push edi
mov word [0x43874a], di
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
test eax, eax
je 0x40de6e
push edi
push ebx
push edi
push 1
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
test eax, eax
je 0x40de6e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push dword [ebp - 8]
call esi
push 0xa
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
call esi
mov ecx, eax
mov edx, dword [ebp - 0x38]
movzx eax, word [0x43874a]
imul eax, ecx
imul eax, edx
mov dword [0x438740], edx
push 8
mov dword [ebp - 0x34], ecx
mov dword [0x438744], ecx
cdq
pop ecx
idiv ecx
push eax
call sub.MSVCRT.dll_abs
push dword [0x438744]
mov dword [0x438750], eax
call sub.MSVCRT.dll_abs
pop ecx
pop ecx
push 0x26
push dword [ebp - 4]
neg eax
mov dword [0x438744], eax
call esi
movzx ecx, word [0x43874a]
not eax
shr eax, 8
and eax, 1
push 8
mov dword [0x438738], eax
mov eax, ecx
imul eax, dword [0x438740]
cdq
pop esi
idiv esi
push edi
push edi
shr ecx, 3
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40dd12
push dword [ebp - 0x34]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x38]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40de6e
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
push dword [ebp - 4]
call ebx
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x40de6e
push 0x40cc0020
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x20]
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x38]
push 0x20
cdq
pop ecx
mov dword [ebp - 0x28], edi
idiv ecx
mov ecx, eax
cmp ecx, edi
jle 0x40ddbd
mov eax, dword [ebp - 0x34]
push 0x20
cdq
pop ebx
mov dword [ebp - 0x20], ecx
idiv ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, edi
jle 0x40ddaf
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
add eax, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memcpy
add ebx, dword [ebp - 0x2c]
add esp, 0xc
dec dword [ebp - 0x10]
jne 0x40dd92
mov ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x18]
dec dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jne 0x40dd88
call esi
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
call esi
mov ebx, eax
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x38]
push 0x20
cdq
pop ecx
idiv ecx
cdq
idiv ecx
mov ecx, 0xc8
cdq
idiv ecx
cmp eax, edi
jle 0x40ddfa
mov dword [ebp - 0x20], eax
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetPixel]
dec dword [ebp - 0x20]
jne 0x40dde8
call esi
imul ebx, ebx, 0xc8
mov esi, eax
push dword [ebp - 0x10]
imul esi, esi, 0xc8
sub esi, ebx
mov ebx, 0x4386e8
cmp esi, dword [ebp - 0x10]
push esi
setb al
mov byte [0x438b70], al
movzx eax, al
push eax
push str.C:cppSCZ_SCwinvncwinvnc_vncdesktop.cpp_:__G_USE_PIXEL__i__i__i_n
push 9
push ebx
call fcn.00405446
movzx eax, byte [0x438b70]
add esp, 0x18
push eax
push esi
push dword [ebp - 0x10]
push str.C:cppSCZ_SCwinvncwinvnc_vncdesktop.cpp_:_Blit_time__i__Getpixeltime__i__Use_getpixel__i_n
push 9
push ebx
call fcn.00405446
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
add esp, 0x18
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], edi
je 0x40de6e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret