Function at 0x4076e0
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 + 0x1c], eax
je 0x4077d3
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x3c], ebp
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x1c]
push 0xa
push eax
call edi
mov ecx, dword [esi + 0x44]
push eax
push ecx
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_bitmap_dimensions_are__d_x__d_n
push 9
push 0x41d498
mov dword [esi + 0x48], eax
call fcn.004018c0
mov edx, dword [esi + 0x1c]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebp
mov dword [esi + 0x18], eax
jne 0x407751
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_failed_to_create_compatibleDC__d__n
jmp 0x4077c5
mov eax, dword [esi + 0x1c]
push 0x26
push eax
call edi
test al, 1
jne 0x407779
mov ecx, dword [0x41d190]
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 + 0x18]
push 0x26
push edx
call edi
test al, 0x80
jne 0x4077a0
mov eax, dword [0x41d190]
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 + 0x48]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebp
mov dword [esi + 0x20], eax
jne 0x4077da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_failed_to_create_memory_bitmap__d__n
push ebp
push 0x41d498
call fcn.004018c0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_created_memory_bitmap_n
push 9
push 0x41d498
call fcn.004018c0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add esp, 0xc
lea ebx, [esi + 0x50]
mov word [esi + 0x5e], 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 0x40781a
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
push 0
push ebx
push 0
push 1
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x407836
pop edi
pop esi
pop ebp
pop ebx
ret
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_got_bitmap_format_n
push 9
push 0x41d498
call fcn.004018c0
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0xe
push edx
call edi
push eax
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_DBG:display_context_has__d_planes__n
push 9
push 0x41d498
call fcn.004018c0
mov eax, dword [esi + 0x18]
add esp, 0x10
push 0xe
push eax
call edi
push eax
push str.D:ORL_vsswinvnc_vncDesktop.cpp_:_DBG:memory_context_has__d_planes__n
push 9
push 0x41d498
call fcn.004018c0
mov ecx, dword [esi + 0x18]
add esp, 0x10
push 0xe
push ecx
call edi
cmp eax, 1
je 0x4078ae
mov edx, dword [0x41d190]
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 + 0x58]
push 0x26
cdq
xor eax, edx
sub eax, edx
neg eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x18]
push eax
call edi
not eax
shr eax, 8
and eax, 1
pop edi
mov dword [esi + 0x4c], eax
pop esi
pop ebp
mov eax, 1
pop ebx
ret