Function at 0x413bc0
Capabilities:
Capture screenshot
Enumerate gui resources

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x64], ebx
call fcn.0042bfd0
cmp eax, 1
jne 0x413ce8
mov ecx, ebp
call fcn.00415af0
test eax, eax
je 0x413ce8
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 ebx
mov word [esp + 0x4a], bx
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 edx, eax
cmp edx, ebx
mov dword [esp + 0x14], edx
je 0x413cd7
mov ecx, 0x6a
xor eax, eax
lea edi, [esp + 0xb4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], 0x1a8
push ecx
push ebx
push ebx
mov byte [esp + 0x28], al
call edx
test eax, eax
je 0x413cd7
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 0x413ca3
lea eax, [esp + 0xb8]
inc ebx
push eax
push ebx
push edx
call dword [esp + 0x24]
test eax, eax
jne 0x413c76
jmp 0x413cd7
lea ecx, [esp + 0xbc]
push 0
push ecx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
test eax, eax
mov dword [ebp + 0xf8], eax
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], ecx
je 0x413cd7
mov dword [ebp + 0x64], 1
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x413ce8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
je 0x413d08
cmp dword [ebp + 0x54], ebx
jne 0x413d08
push ebp
push 0x413b30
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp + 0xf8], ebx
jne 0x413d54
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_No_driver_used__n
push ebx
push 0x4721bc
call fcn.004070e0
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [ebp + 0xf8], eax
jne 0x413d54
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Failed_m_rootdc__n
push ebx
push 0x4721bc
call fcn.004070e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov eax, dword [ebp + 0xf8]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push eax
call ebx
mov ecx, dword [ebp + 0xf8]
push 8
push ecx
mov esi, eax
xor edi, edi
call ebx
lea edx, [ebp + 0x118]
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 + 0x124]
mov ecx, dword [ebp + 0x120]
push eax
push ecx
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_bitmap_dimensions_are__d_x__d_n
push 9
push 0x4721bc
call fcn.004070e0
mov edx, dword [ebp + 0xf8]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0xf4], eax
jne 0x413de7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_compatibleDC__d__n
push edi
push 0x4721bc
call fcn.004070e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov eax, dword [ebp + 0xf8]
push 0x26
push eax
call ebx
test al, 1
jne 0x413e19
mov ecx, dword [0x46cff4]
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 + 0xf4]
push 0x26
push edx
call ebx
test al, al
js 0x413e4a
mov eax, dword [0x46cff4]
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 + 0x124]
mov edx, dword [ebp + 0x120]
mov eax, dword [ebp + 0xf8]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp + 0xfc], eax
jne 0x413e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_memory_bitmap__d__n
push 0
push 0x4721bc
call fcn.004070e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_created_memory_bitmap_n
push 9
push 0x4721bc
call fcn.004070e0
add esp, 0xc
lea edi, [ebp + 0x128]
xor eax, eax
mov ecx, 0x10c
lea esi, [ebp + 0x12c]
mov dword [esp + 0x10], edi
push eax
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xfc]
mov edx, dword [ebp + 0xf4]
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 + 0x13a], ax
call edi
test eax, eax
jne 0x413ef8
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_unable_to_get_display_format_n
jmp 0x413f1a
mov eax, dword [ebp + 0xfc]
mov ecx, dword [ebp + 0xf4]
push 0
push esi
push 0
push 1
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x413f36
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_unable_to_get_display_colour_info_n
push 0
push 0x4721bc
call fcn.004070e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_got_bitmap_format_n
push 9
push 0x4721bc
call fcn.004070e0
mov eax, dword [ebp + 0x134]
add esp, 0xc
cdq
xor eax, edx
push 0x26
sub eax, edx
mov edx, dword [ebp + 0xf4]
neg eax
push edx
mov dword [ebp + 0x134], 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