Function at 0x414690
Capabilities:
Capture screenshot
Enumerate gui resources

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp + 0x74], esi
call fcn.0042e290
mov edi, 1
cmp eax, edi
jne 0x414836
mov ecx, ebp
call fcn.004168f0
test eax, eax
je 0x414836
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov word [esp + 0x3c], 0x9c
push eax
push 0xffffffffffffffff
push esi
mov word [esp + 0x4a], si
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push str.USER32
mov dword [esp + 0x44], 0x1c0000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.EnumDisplayDevicesA
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x414820
mov ecx, 0x6a
xor eax, eax
lea edi, [esp + 0xb4]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], 0x1a8
push ecx
push esi
push esi
mov byte [esp + 0x28], al
mov dword [esp + 0x24], esi
call ebx
test eax, eax
je 0x414820
mov edi, str.Winvnc_video_hook_driver
lea esi, [esp + 0xd8]
mov ecx, 0x19
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
push edx
je 0x414784
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x24], eax
call ebx
test eax, eax
jne 0x41474e
jmp 0x414820
lea edx, [esp + 0xbc]
push 0
push edx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [ebp + 0xdbcc], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xbc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0xdbcc]
test eax, eax
mov dword [ebp + 0x6c], edx
mov esi, 1
je 0x4147d4
mov dword [ebp + 0x74], esi
mov ecx, ebp
call fcn.0042c4d0
lea ecx, [ebp + 4]
call fcn.0040a390
cmp eax, 2
mov dword [ebp + 0xe1d4], eax
mov dword [ebp + 0xe1d0], esi
jne 0x414808
cmp dword [ebp + 0xe1cc], esi
jle 0x414820
mov dword [ebp + 0xe1d0], 2
jmp 0x414820
cmp eax, 3
jne 0x414820
cmp dword [ebp + 0xe1cc], 1
jle 0x414820
mov dword [ebp + 0xe1d0], 3
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x414831
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 1
mov ecx, dword [ebp + 0xdbb0]
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
je 0x414856
cmp dword [ebp + 0x64], esi
jne 0x414856
push ebp
push 0x414600
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp + 0xdbcc]
cmp eax, esi
jne 0x41498b
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_No_driver_used__n
push esi
push 0x46f3bc
call fcn.00405970
add esp, 0xc
mov ecx, ebp
call fcn.0042c4d0
lea ecx, [ebp + 4]
call fcn.0040a390
mov ebx, 2
mov dword [ebp + 0xe1d4], eax
cmp eax, ebx
mov dword [ebp + 0xe1d0], edi
jne 0x4148ab
cmp dword [ebp + 0xe1cc], edi
jle 0x4148c2
mov dword [ebp + 0xe1d0], ebx
jmp 0x4148c2
cmp eax, 3
jne 0x4148c2
cmp dword [ebp + 0xe1cc], edi
jle 0x4148c2
mov dword [ebp + 0xe1d0], 3
cmp dword [ebp + 0xe1d0], 3
jne 0x4148d1
mov dword [ebp + 0xe1d0], edi
cmp dword [ebp + 0xe1d0], edi
jne 0x414905
push esi
lea eax, [ebp + 0xe13c]
push esi
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [ebp + 0xe15c]
mov edx, dword [ebp + 0xe160]
mov dword [ebp + 0xdbcc], eax
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x70], edx
cmp dword [ebp + 0xe1d0], ebx
jne 0x414939
push esi
lea eax, [ebp + 0xe170]
push esi
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [ebp + 0xe190]
mov edx, dword [ebp + 0xe194]
mov dword [ebp + 0xdbcc], eax
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x70], edx
cmp dword [ebp + 0xe1d0], 3
jne 0x414961
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp + 0xe1c8]
mov dword [ebp + 0xdbcc], eax
mov eax, dword [ebp + 0xe1c4]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0xdbcc]
cmp eax, esi
jne 0x41498b
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_Failed_m_rootdc__n
push esi
push 0x46f3bc
call fcn.00405970
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push eax
call ebx
mov edx, dword [ebp + 0xdbcc]
push 8
push edx
mov esi, eax
xor edi, edi
call ebx
lea ecx, [ebp + 0xdbec]
mov edx, ecx
xor ecx, ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], esi
mov eax, dword [ebp + 0xdbf8]
mov ecx, dword [ebp + 0xdbf4]
push eax
push ecx
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_bitmap_dimensions_are__d_x__d_n
push 9
push 0x46f3bc
call fcn.00405970
mov edx, dword [ebp + 0xdbcc]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0xdbc8], eax
jne 0x414a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_compatibleDC__d__n
push edi
push 0x46f3bc
call fcn.00405970
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov eax, dword [ebp + 0xdbcc]
push 0x26
push eax
call ebx
test al, 1
jne 0x414a4c
mov ecx, dword [str.WinVNC]
push 0x10
push ecx
push str.vncDesktop_:_root_device_doesnt_support_BitBlt_nWinVNC_cannot_be_used_with_this_graphic_device_driver
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
mov edx, dword [ebp + 0xdbc8]
push 0x26
push edx
call ebx
test al, al
js 0x414a7d
mov eax, dword [str.WinVNC]
push 0x10
push eax
push str.vncDesktop_:_memory_device_doesnt_support_GetDIBits_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
add esp, 0x24c
ret
mov ecx, dword [ebp + 0xdbf8]
mov edx, dword [ebp + 0xdbf4]
mov eax, dword [ebp + 0xdbcc]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp + 0xdbd0], eax
jne 0x414aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_memory_bitmap__d__n
push 0
push 0x46f3bc
call fcn.00405970
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_created_memory_bitmap_n
push 9
push 0x46f3bc
call fcn.00405970
add esp, 0xc
lea edi, [ebp + 0xdbfc]
xor eax, eax
mov ecx, 0x10c
lea esi, [ebp + 0xdc00]
mov dword [esp + 0x10], edi
push eax
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xdbd0]
mov edx, dword [ebp + 0xdbc8]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
push eax
push 1
push eax
push ecx
push edx
mov dword [esi], 0x28
mov word [ebp + 0xdc0e], ax
call edi
test eax, eax
jne 0x414b2b
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_unable_to_get_display_format_n
jmp 0x414b4d
mov eax, dword [ebp + 0xdbd0]
mov ecx, dword [ebp + 0xdbc8]
push 0
push esi
push 0
push 1
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x414b69
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_unable_to_get_display_colour_info_n
push 0
push 0x46f3bc
call fcn.00405970
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_got_bitmap_format_n
push 9
push 0x46f3bc
call fcn.00405970
mov eax, dword [ebp + 0xdc08]
add esp, 0xc
cdq
xor eax, edx
push 0x26
sub eax, edx
mov edx, dword [ebp + 0xdbc8]
neg eax
push edx
mov dword [ebp + 0xdc08], eax
call ebx
mov ecx, dword [esp + 0x10]
push 1
not eax
shr eax, 8
and eax, 1
push 0
push 0
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret