Function at 0x420720
Capabilities:
Capture screenshot
Enumerate gui resources

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [0x4bb5d4]
push ebx
push ebp
push esi
mov ebp, 1
mov esi, ecx
push edi
mov dword [esi + 0x74], 0
cmp eax, ebp
je 0x420758
cmp eax, 2
jne 0x420913
mov eax, dword [esi + 0xe0fc]
test eax, eax
je 0x420913
cmp dword [eax + 8], 0
jne 0x42077d
mov dword [esi + 0xe130], ebp
mov dword [esi + 0xe134], ebp
jmp 0x420913
push 0x9c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004858b0
mov ebx, dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
xor edx, edx
push 0xffffffffffffffff
mov ecx, 0x9c
push edx
mov word [esp + 0x48], cx
mov word [esp + 0x4a], dx
call ebx
push str.USER32
mov dword [esp + 0x44], 0x1c0000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.EnumDisplayDevicesA
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x420904
push 0x1a8
lea ecx, [esp + 0xbc]
push 0
push ecx
call fcn.004858b0
add esp, 0xc
xor ebp, ebp
push ebp
lea edx, [esp + 0xbc]
push edx
push ebp
push ebp
mov dword [esp + 0xc8], 0x1a8
mov byte [esp + 0x28], 0
call edi
test eax, eax
je 0x4208ff
lea ecx, [ecx]
mov ecx, str.mv_video_hook_driver2
lea eax, [esp + 0xdc]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x420850
test dl, dl
je 0x42084c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x420850
add eax, 2
add ecx, 2
test dl, dl
jne 0x420830
xor eax, eax
jmp 0x420855
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
je 0x420872
lea eax, [esp + 0xbc]
push eax
inc ebp
push ebp
push 0
call edi
test eax, eax
jne 0x420820
jmp 0x4208ff
push 0
lea ecx, [esp + 0xc4]
push ecx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0xdc24], eax
push 0xffffffffffffffff
lea eax, [esp + 0xc4]
push eax
call ebx
cmp dword [esi + 0xdc24], 0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
mov edi, 1
je 0x4208bd
mov dword [esi + 0x74], edi
call fcn.004408c0
lea ecx, [esi + 4]
call fcn.004137f0
mov dword [esi + 0xe228], eax
mov dword [esi + 0xe224], edi
cmp eax, 2
jne 0x4208eb
cmp dword [esi + 0xe220], edi
jle 0x4208ff
mov dword [esi + 0xe224], eax
jmp 0x4208ff
cmp eax, 3
jne 0x4208ff
cmp dword [esi + 0xe220], 1
jle 0x4208ff
mov dword [esi + 0xe224], eax
mov ebp, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420913
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esi + 0xdc0c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
test eax, eax
je 0x420936
cmp dword [esi + 0x64], 0
jne 0x420936
push esi
push 0x420680
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0xdc24]
test eax, eax
jne 0x420a8a
push str.._vncdesktop.cpp_:_No_driver_used__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
call fcn.004408c0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x42096d
cmp dword [esi + 0x14], eax
je 0x420993
test eax, eax
je 0x420977
cmp dword [esi + 0x14], 0
je 0x420993
test eax, eax
jne 0x420988
cmp dword [esi + 0x14], 0
je 0x420984
mov eax, 2
jmp 0x420995
test eax, eax
je 0x420993
cmp dword [esi + 0x14], 0
mov eax, 3
jne 0x420995
mov eax, ebp
mov edi, 2
mov dword [esi + 0xe228], eax
mov dword [esi + 0xe224], ebp
cmp eax, edi
jne 0x4209ba
cmp dword [esi + 0xe220], ebp
jle 0x4209cd
mov dword [esi + 0xe224], edi
jmp 0x4209cd
cmp eax, 3
jne 0x4209cd
cmp dword [esi + 0xe220], ebp
jle 0x4209cd
mov dword [esi + 0xe224], eax
cmp dword [esi + 0xe224], ebp
jne 0x420a03
push 0
push 0
lea eax, [esi + 0xe190]
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [esi + 0xe1b0]
mov edx, dword [esi + 0xe1b4]
mov dword [esi + 0xdc24], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
cmp dword [esi + 0xe224], edi
jne 0x420a39
push 0
push 0
lea eax, [esi + 0xe1c4]
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [esi + 0xe1e4]
mov edx, dword [esi + 0xe1e8]
mov dword [esi + 0xdc24], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
cmp dword [esi + 0xe224], 3
jne 0x420a62
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 0xe21c]
mov dword [esi + 0xdc24], eax
mov eax, dword [esi + 0xe218]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ecx
mov eax, dword [esi + 0xdc24]
test eax, eax
jne 0x420a8a
push str.._vncdesktop.cpp_:_Failed_m_rootdc__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov eax, 6
jmp 0x420d9d
mov ecx, dword [esi + 0xe224]
cmp ecx, 3
jne 0x420ad8
mov edx, dword [esi + 0xe0fc]
test edx, edx
je 0x420ab1
cmp dword [edx + 8], 0
jne 0x420ad8
mov dword [esi + 0xe130], ebp
mov dword [esi + 0xe134], ebp
mov edx, dword [esi + 0xe1ec]
mov edi, dword [esi + 0xe1f0]
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xdc44], eax
mov dword [esi + 0xdc48], ecx
mov dword [esi + 0xdc4c], edx
jmp 0x420b68
cmp ecx, 2
jne 0x420b07
mov edx, dword [esi + 0xe0fc]
test edx, edx
je 0x420af9
cmp dword [edx + 8], 0
jne 0x420b07
mov dword [esi + 0xe130], ebp
mov dword [esi + 0xe134], ebp
mov edx, dword [esi + 0xe1b8]
mov edi, dword [esi + 0xe1bc]
jmp 0x420abd
cmp ecx, ebp
jne 0x420b35
mov ecx, dword [esi + 0xe0fc]
test ecx, ecx
je 0x420b27
cmp dword [ecx + 8], 0
jne 0x420b35
mov dword [esi + 0xe130], ebp
mov dword [esi + 0xe134], ebp
mov edx, dword [esi + 0xe184]
mov edi, dword [esi + 0xe188]
jmp 0x420abd
push 0xa
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esi + 0xdc24]
push 8
push edx
mov edi, eax
xor ebp, ebp
xor ebx, ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esi + 0xdc44], ebp
mov dword [esi + 0xdc48], ebx
mov dword [esi + 0xdc4c], eax
lea ebp, [ebx + 1]
mov eax, edi
push eax
mov dword [esi + 0xdc50], edi
mov ecx, dword [esi + 0xdc4c]
push ecx
push str.._vncdesktop.cpp_:_bitmap_dimensions_are__d_x__d_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov edx, dword [esi + 0xdc24]
add esp, 0xc
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0xdc20], eax
test eax, eax
jne 0x420bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.._vncdesktop.cpp_:_failed_to_create_compatibleDC__d__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
mov eax, 6
jmp 0x420d9d
mov eax, dword [esi + 0xdc24]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x26
push eax
call edi
test al, 1
jne 0x420bfe
push 0x10
push 0x4ab7e8
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]
mov eax, 7
jmp 0x420d9d
mov ecx, dword [esi + 0xdc20]
push 0x26
push ecx
call edi
test al, al
js 0x420c2b
push 0x10
push 0x4ab7e8
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]
mov eax, 8
jmp 0x420d9d
mov edx, dword [esi + 0xdc24]
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0xdc28], eax
test eax, eax
jne 0x420c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.._vncdesktop.cpp_:_failed_to_create_memory_bitmap__d__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
mov eax, 9
jmp 0x420d9d
push str.._vncdesktop.cpp_:_created_memory_bitmap_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 0x430
lea ebp, [esi + 0xdc54]
push 0
push ebp
call fcn.004858b0
mov ecx, dword [esi + 0xdc28]
mov edx, dword [esi + 0xdc20]
mov ebx, dword [sym.imp.GDI32.dll_GetDIBits]
add esp, 0xc
xor eax, eax
push eax
lea edi, [esi + 0xdc58]
push edi
push eax
push 1
push eax
push ecx
push edx
mov dword [edi], 0x28
mov word [esi + 0xdc66], ax
call ebx
test eax, eax
jne 0x420ce9
push str.._vncdesktop.cpp_:_unable_to_get_display_format_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov eax, 0xa
jmp 0x420d9d
mov eax, dword [esi + 0xdc28]
mov ecx, dword [esi + 0xdc20]
push 0
push edi
push 0
push 1
push 0
push eax
push ecx
call ebx
test eax, eax
mov eax, 0x4bc990
jne 0x420d21
push str.._vncdesktop.cpp_:_unable_to_get_display_colour_info_n
xor ecx, ecx
call fcn.00401110
add esp, 4
mov eax, 0xa
jmp 0x420d9d
push str.._vncdesktop.cpp_:_got_bitmap_format_n
mov ecx, 9
call fcn.00401110
movzx eax, word [esi + 0xdc66]
mov ecx, dword [esi + 0xdc4c]
mov edi, dword [esi + 0xdc50]
imul eax, ecx
imul eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 0xdc6c], eax
mov eax, edi
cdq
xor eax, edx
add esp, 4
sub eax, edx
mov edx, dword [esi + 0xdc20]
push 0x26
neg eax
push edx
mov dword [esi + 0xdc5c], ecx
mov dword [esi + 0xdc60], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
shr eax, 8
push 1
not eax
push 0
and eax, 1
push 0
mov dword [ebp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x25c
ret