Function at 0x4548d0
Capabilities:
Capture screenshot
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x5c3040]
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 0x45492b
cmp dword [eax + 0x10], 0
je 0x454917
mov eax, 1
jmp 0x45492d
mov dword [edi + 0xe8f0], 1
mov dword [edi + 0xe8f4], 1
xor eax, eax
test eax, eax
je 0x454a87
push 0x9c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00526a30
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.00526a30
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 0x454a87
nop dword [eax]
mov eax, str.mv_video_hook_driver2
lea ecx, [esp + 0xe4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4549e0
test dl, dl
je 0x4549dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4549e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4549c0
xor eax, eax
jmp 0x4549e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x454a02
push 0
lea eax, [esp + 0xc4]
inc esi
push eax
push esi
push 0
call ebx
test eax, eax
jne 0x4549b0
jmp 0x454a87
mov eax, dword [edi + 0xe418]
test eax, eax
je 0x454a42
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test eax, eax
jne 0x454a2c
push str.vncDesktop::InitBitmap_:_failed_to_DeleteDC_hrootdc_n
push eax
push 0x5c3db0
call fcn.0041dde0
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 0x454a90
mov dword [edi + 0x860], 1
cmp dword [edi + 0xe418], 0
jne 0x454ae3
push str.vncDesktop::InitBitmap_:_No_driver_used__n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [edi + 0xe418], eax
test eax, eax
jne 0x454ae3
push str.vncDesktop::InitBitmap_:_Failed_m_rootdc__n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004832b0
mov ecx, dword [edi + 0x7ec]
test ecx, ecx
setne al
mov byte [edi + 0xe969], al
test ecx, ecx
je 0x454b1c
cmp dword [edi + 0xe964], 1
jle 0x454b1c
mov byte [edi + 0xe968], 1
mov dword [edi + 4], 0x63
mov dword [edi], 0x63
mov eax, dword [edi + 0xe3c8]
test eax, eax
je 0x454b83
cmp dword [eax + 0x10], 0
je 0x454b6f
push dword [edi + 0x7c8]
mov ecx, edi
push dword [edi + 0x7c4]
push dword [edi + 0x7d4]
push dword [edi + 0x7d0]
call fcn.00459320
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 0x454bde
mov dword [edi + 0xe8f0], 1
mov dword [edi + 0xe8f4], 1
cmp byte [edi + 0xe968], 0
mov ecx, edi
je 0x454bb9
push dword [edi + 0x7c8]
push dword [edi + 0x7c4]
push 0
push 0
call fcn.00459320
mov ebx, dword [edi + 0x7c4]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi + 0x7c8]
mov dword [esp + 0x18], ebx
jmp 0x454bd6
push dword [edi + 0xc]
push dword [edi + 8]
push 0
push 0
call fcn.00459320
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 0x5c3db0
call fcn.0041dde0
mov eax, dword [0x5d1914]
add esp, 0x14
cmp dword [eax + 0xa40], 0
je 0x454cc0
mov ebx, dword [edi + 0xe3c4]
mov eax, dword [ebx + 0xbc]
mov esi, dword [eax]
cmp esi, eax
je 0x454c50
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454c37
sub ecx, edx
jne 0x454d0b
mov esi, dword [esi]
cmp esi, dword [ebx + 0xbc]
jne 0x454c22
mov ecx, 0x579be0
mov eax, dword [0x5d1914]
push ecx
push 0xff
push 0x5c65a8
cmp dword [eax + 0xa48], 0
setne bl
call fcn.0052c1a3
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [0x5c6594], eax
mov dword [0x5c6598], eax
mov eax, dword [esp + 0x14]
mov dword [0x5c659c], eax
mov eax, dword [esp + 0x18]
mov dword [0x5c65a0], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x428240
push 0
push 0
mov byte [0x5c6487], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x454cc0
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 0x454d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vncDesktop::InitBitmap_:_failed_to_create_compatibleDC__d__n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
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 0x454c55
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x26
push dword [edi + 0xe418]
call ebx
test al, 1
jne 0x454d64
push 0x10
push 0x5adfa8
mov edx, str.vncDesktop_:_root_device_doesnt_support_BitBlt_nWinVNC_cannot_be_used_with_this_graphic_device_driver
call fcn.00425f30
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
push 0x26
push dword [edi + 0xe414]
call ebx
test al, al
js 0x454da0
push 0x10
push 0x5adfa8
mov edx, str.vncDesktop_:_memory_device_doesnt_support_GetDIBits_nWinVNC_cannot_be_used_with_this_graphics_device_driver
call fcn.00425f30
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
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 0x454def
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vncDesktop::InitBitmap_:_failed_to_create_memory_bitmap__d__n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
push str.vncDesktop::InitBitmap_:_created_memory_bitmap_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
lea eax, [edi + 0xe448]
push 0x430
push 0
push eax
call fcn.00526a30
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 0x454e75
push str.vncDesktop::InitBitmap_:_unable_to_get_display_format_n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
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 0x454ec1
push str.vncDesktop::InitBitmap_:_unable_to_get_display_colour_info_n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
push str.vncDesktop::InitBitmap_:_got_bitmap_format_n
push 9
push 0x5c3db0
call fcn.0041dde0
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.00524763
mov esp, ebp
pop ebp
ret