Function at 0x40d6c0
Capabilities:
Capture screenshot

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebp
mov dword [esi + 0x2c], eax
jne 0x40d6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D:_vncwinvnc_vncDesktop.cpp:_tGetDC___failed__error_d_n
jmp 0x40d7b2
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x2c]
push 0xa
push eax
call edi
mov ecx, dword [esi + 0x54]
push eax
push ecx
push str.D:_vncwinvnc_vncDesktop.cpp:_tbitmap_dimensions_are__dx_d_n
push 9
push 0x44b018
mov dword [esi + 0x58], eax
call fcn.004024a0
mov edx, dword [esi + 0x2c]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebp
mov dword [esi + 0x28], eax
jne 0x40d73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D:_vncwinvnc_vncDesktop.cpp:_tCreateCompatibleDC___failed__error_d_n
jmp 0x40d7b2
mov eax, dword [esi + 0x2c]
push 0x26
push eax
call edi
test al, 1
jne 0x40d766
mov ecx, dword [0x44890c]
push 0x10
push ecx
push str.vncDesktop_:_root_device_doesnt_support_BitBlt_nWinVNC_cannot_be_used_with_this_graphic_device_driver
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x28]
push 0x26
push edx
call edi
test al, 0x80
jne 0x40d78d
mov eax, dword [0x44890c]
push 0x10
push eax
push str.vncDesktop_:_memory_device_doesnt_support_GetDIBits_nWinVNC_cannot_be_used_with_this_graphics_device_driver
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebp
mov dword [esi + 0x30], eax
jne 0x40d7c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D:_vncwinvnc_vncDesktop.cpp:_tfailed_to_create_memory_bitmap__error_d_n
push ebp
push 0x44b018
call fcn.004024a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push str.D:_vncwinvnc_vncDesktop.cpp:_tcreated_memory_bitmap_n
push 9
push 0x44b018
call fcn.004024a0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
add esp, 0xc
lea ebx, [esi + 0x60]
mov word [esi + 0x6e], bp
push ebp
push ebx
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetDIBits]
push ecx
push edx
mov dword [ebx], 0x28
call ebp
test eax, eax
jne 0x40d807
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
push 0
push ebx
push 0
push 1
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x40d823
pop edi
pop esi
pop ebp
pop ebx
ret
push str.D:_vncwinvnc_vncDesktop.cpp:_tgot_bitmap_format_n
push 9
push 0x44b018
call fcn.004024a0
mov edx, dword [esi + 0x2c]
add esp, 0xc
push 0xe
push edx
call edi
push eax
push str.D:_vncwinvnc_vncDesktop.cpp:_tDBG:display_context_has__d_planes__n
push 9
push 0x44b018
call fcn.004024a0
mov eax, dword [esi + 0x28]
add esp, 0x10
push 0xe
push eax
call edi
push eax
push str.D:_vncwinvnc_vncDesktop.cpp:_tDBG:memory_context_has__d_planes__n
push 9
push 0x44b018
call fcn.004024a0
mov ecx, dword [esi + 0x28]
add esp, 0x10
push 0xe
push ecx
call edi
cmp eax, 1
je 0x40d89b
mov edx, dword [0x44890c]
push 0x10
push edx
push str.vncDesktop_:_current_display_is_PLANAR__not_CHUNKY__nWinVNC_cannot_be_used_with_this_graphics_device_driver
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x68]
push 0x26
cdq
xor eax, edx
sub eax, edx
neg eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x28]
push eax
call edi
not eax
shr eax, 8
and eax, 1
pop edi
mov dword [esi + 0x5c], eax
pop esi
pop ebp
mov eax, 1
pop ebx
ret