Function at 0x44e6a0
Capabilities:
Capture screenshot
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xe3c8]
mov byte [edi + 0xe968], 0
mov dword [edi + 0x860], 0
test eax, eax
je 0x44e84d
cmp dword [eax + 0x10], 0
je 0x44e839
push 0x9c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0051a780
add esp, 0xc
mov dword [esp + 0x44], 0x9c
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push 0x1a4
lea eax, [esp + 0xc8]
mov dword [esp + 0x4c], 0x1c0000
push 0
push eax
call fcn.0051a780
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [esp + 0xcc]
add esp, 0xc
mov dword [esp + 0xc0], 0x1a8
xor esi, esi
mov byte [esp + 0x20], 0
push esi
push eax
push esi
push esi
call ebx
test eax, eax
je 0x44e84d
nop
mov eax, str.mv_video_hook_driver2
lea ecx, [esp + 0xe4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x44e790
test dl, dl
je 0x44e78c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x44e790
add ecx, 2
add eax, 2
test dl, dl
jne 0x44e770
xor eax, eax
jmp 0x44e795
sbb eax, eax
or eax, 1
test eax, eax
je 0x44e7b2
push 0
lea eax, [esp + 0xc4]
inc esi
push eax
push esi
push 0
call ebx
test eax, eax
jne 0x44e760
jmp 0x44e84d
mov eax, dword [edi + 0xe418]
test eax, eax
je 0x44e7f2
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test eax, eax
jne 0x44e7dc
push str.vncDesktop::InitBitmap_:_failed_to_DeleteDC_hrootdc_n
push eax
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push dword [edi + 0xe418]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [edi + 0xe418], 0
push 0
push 0
lea eax, [esp + 0xcc]
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [edi + 0xe418], eax
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
cmp dword [edi + 0xe418], 0
je 0x44e856
mov dword [edi + 0x860], 1
jmp 0x44e84d
mov dword [edi + 0xe8f0], 1
mov dword [edi + 0xe8f4], 1
cmp dword [edi + 0xe418], 0
jne 0x44e8a9
push str.vncDesktop::InitBitmap_:_No_driver_used__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [edi + 0xe418], eax
test eax, eax
jne 0x44e8a9
push str.vncDesktop::InitBitmap_:_Failed_m_rootdc__n
push eax
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00478d40
mov ecx, dword [edi + 0x7ec]
test ecx, ecx
setne al
mov byte [edi + 0xe969], al
test ecx, ecx
je 0x44e8e2
cmp dword [edi + 0xe964], 1
jle 0x44e8e2
mov byte [edi + 0xe968], 1
mov dword [edi + 4], 0x63
mov dword [edi], 0x63
mov eax, dword [edi + 0xe3c8]
test eax, eax
je 0x44e949
cmp dword [eax + 0x10], 0
je 0x44e935
push dword [edi + 0x7c8]
mov ecx, edi
push dword [edi + 0x7c4]
push dword [edi + 0x7d4]
push dword [edi + 0x7d0]
call fcn.00452e20
mov ebx, dword [edi + 0x7d0]
mov esi, dword [edi + 0x7c4]
add esi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov esi, dword [edi + 0x7c8]
add esi, ebx
mov dword [esp + 0x18], esi
jmp 0x44e9a4
mov dword [edi + 0xe8f0], 1
mov dword [edi + 0xe8f4], 1
cmp byte [edi + 0xe968], 0
mov ecx, edi
je 0x44e97f
push dword [edi + 0x7c8]
push dword [edi + 0x7c4]
push 0
push 0
call fcn.00452e20
mov ebx, dword [edi + 0x7c4]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi + 0x7c8]
mov dword [esp + 0x18], ebx
jmp 0x44e99c
push dword [edi + 0xc]
push dword [edi + 8]
push 0
push 0
call fcn.00452e20
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
push dword [edi + 0xe444]
push dword [edi + 0xe440]
push str.vncDesktop::InitBitmap_:_bitmap_dimensions_are__d_x__d_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [0x5bdff0]
add esp, 0x14
cmp dword [eax + 0xa40], 0
je 0x44ea89
mov ebx, dword [edi + 0xe3c4]
mov eax, dword [ebx + 0xbc]
mov esi, dword [eax]
cmp esi, eax
je 0x44ea19
mov edx, dword [ebx]
mov ecx, ebx
movzx eax, word [esi + 8]
push eax
call dword [edx + 0x48]
lea ecx, [eax + 0x25c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ea00
sub ecx, edx
jne 0x44ead4
mov esi, dword [esi]
cmp esi, dword [ebx + 0xbc]
jne 0x44e9e8
mov ecx, 0x569fa8
mov eax, dword [0x5bdff0]
push ecx
push 0xff
push 0x5b2d28
cmp dword [eax + 0xa48], 0
setne bl
call fcn.0051e70e
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [0x5b2d10], eax
mov dword [0x5b2d14], eax
mov eax, dword [esp + 0x14]
mov dword [0x5b2d18], eax
mov eax, dword [esp + 0x18]
mov dword [0x5b2d1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x4272c0
push 0
push 0
mov byte [0x5b2cdb], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44ea89
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0xe418]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0xe414], eax
test eax, eax
jne 0x44eaeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vncDesktop::InitBitmap_:_failed_to_create_compatibleDC__d__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov ecx, ebx
movzx eax, word [esi + 8]
push eax
call dword [edx + 0x48]
lea ecx, [eax + 0x25c]
jmp 0x44ea1e
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x26
push dword [edi + 0xe418]
call ebx
test al, 1
jne 0x44eb2d
push 0x10
push 0x59d4e0
mov edx, str.vncDesktop_:_root_device_doesnt_support_BitBlt_nWinVNC_cannot_be_used_with_this_graphic_device_driver
call fcn.00424f50
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 0x26
push dword [edi + 0xe414]
call ebx
test al, al
js 0x44eb69
push 0x10
push 0x59d4e0
mov edx, str.vncDesktop_:_memory_device_doesnt_support_GetDIBits_nWinVNC_cannot_be_used_with_this_graphics_device_driver
call fcn.00424f50
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 1
push 1
push dword [edi + 0xe418]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0xe41c], eax
test eax, eax
jne 0x44ebb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vncDesktop::InitBitmap_:_failed_to_create_memory_bitmap__d__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push str.vncDesktop::InitBitmap_:_created_memory_bitmap_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
lea eax, [edi + 0xe448]
push 0x430
push 0
push eax
call fcn.0051a780
add esp, 0xc
mov dword [edi + 0xe44c], 0x28
lea esi, [edi + 0xe44c]
push 0
push esi
push 0
push 1
push 0
push dword [edi + 0xe41c]
push dword [edi + 0xe414]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x44ec3e
push str.vncDesktop::InitBitmap_:_unable_to_get_display_format_n
push eax
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
push 1
push 0
push dword [edi + 0xe41c]
push dword [edi + 0xe414]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x44ec8a
push str.vncDesktop::InitBitmap_:_unable_to_get_display_colour_info_n
push eax
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push str.vncDesktop::InitBitmap_:_got_bitmap_format_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [edi + 0xe440]
add esp, 0xc
movzx eax, word [edi + 0xe45a]
mov esi, dword [edi + 0xe444]
imul eax, ecx
push 0x26
push dword [edi + 0xe414]
mov dword [edi + 0xe450], ecx
imul eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cdq
xor eax, edx
sub eax, edx
mov dword [edi + 0xe460], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
neg eax
mov dword [edi + 0xe454], eax
call ebx
shr eax, 8
push 1
not eax
push 0
and eax, 1
push 0
mov dword [edi + 0xe448], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x26c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret