Function at 0x4c8590
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
mov edi, ecx
call esi
push 1
mov dword [0x66ca90], eax
call esi
mov dword [0x66ca94], eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004c84f0
mov esi, dword [ebp - 0xf0]
add esp, 4
test esi, esi
je 0x4c85ff
mov ecx, dword [ebp - 0xe8]
mov eax, 0x66666667
sub ecx, esi
imul ecx
lea ecx, [ebp - 0xf0]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004c90f0
mov eax, dword [0x66c340]
push 0x81
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
push 0
push 0
push str.DISPLAY
mov dword [edi + 0xf0], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x80], eax
push dword [0x66ca94]
push dword [0x66ca90]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x80]
mov dword [edi + 0x84], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0x88], eax
call fcn.004b6250
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
cmp eax, 7
jl 0x4c8716
push 0xdc
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov eax, 0xdc
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
test eax, eax
je 0x4c8716
mov eax, dword [0x66ca90]
cmp eax, dword [ebp - 0x34]
ja 0x4c871b
push 4
push dword [edi + 0x80]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [ebp - 0x34]
test edx, edx
mov esi, dword [0x66ca90]
mov eax, dword [ebp - 0x30]
cmove edx, esi
mov ecx, dword [0x66ca94]
test eax, eax
push 0x40cc0020
cmove eax, ecx
mov dword [ebp - 0x34], edx
push eax
push edx
push 0
push 0
push ebx
push ecx
push esi
push 0
push 0
push dword [edi + 0x80]
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4c8738
mov eax, dword [0x66ca90]
push 0x40cc0020
push 0
push 0
push ebx
push dword [0x66ca94]
push eax
push 0
push 0
push dword [edi + 0x80]
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x8c], eax
push dword [0x66ca94]
push dword [0x66ca90]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x8c]
mov dword [edi + 0x90], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0x94], eax
call fcn.004b6250
cmp eax, 7
jl 0x4c8816
push 0xdc
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov eax, 0xdc
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
test eax, eax
je 0x4c8816
mov eax, dword [0x66ca90]
cmp eax, dword [ebp - 0x34]
ja 0x4c881b
push 4
push dword [edi + 0x8c]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [ebp - 0x34]
test edx, edx
mov esi, dword [0x66ca90]
mov eax, dword [ebp - 0x30]
cmove edx, esi
mov ecx, dword [0x66ca94]
test eax, eax
push 0x40cc0020
cmove eax, ecx
mov dword [ebp - 0x34], edx
push eax
push edx
push 0
push 0
push ebx
push ecx
push esi
push 0
push 0
push dword [edi + 0x8c]
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4c8838
mov eax, dword [0x66ca90]
push 0x40cc0020
push 0
push 0
push ebx
push dword [0x66ca94]
push eax
push 0
push 0
push dword [edi + 0x8c]
call esi
push 0x5ee750
push 0x5ee758
push dword [ebp - 0xe4]
lea ecx, [edi + 4]
call fcn.004c1bb0
push ebx
test al, al
je 0x4c8953
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x98], eax
push dword [0x66ca94]
push dword [0x66ca90]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x98]
mov dword [edi + 0x9c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0xa0], eax
call fcn.004b6250
cmp eax, 7
jl 0x4c8930
push 0xdc
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov eax, 0xdc
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0xe0]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
test eax, eax
je 0x4c8930
mov eax, dword [0x66ca90]
cmp eax, dword [ebp - 0x34]
ja 0x4c8935
push 4
push dword [edi + 0x98]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [ebp - 0x34]
test edx, edx
mov esi, dword [0x66ca90]
mov eax, dword [ebp - 0x30]
cmove edx, esi
mov ecx, dword [0x66ca94]
test eax, eax
push 0x40cc0020
cmove eax, ecx
mov dword [ebp - 0x34], edx
push eax
push edx
push 0
push 0
push ebx
push ecx
push esi
push 0
push 0
push dword [edi + 0x98]
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4c8952
mov eax, dword [0x66ca90]
push 0x40cc0020
push 0
push 0
push ebx
push dword [0x66ca94]
push eax
push 0
push 0
push dword [edi + 0x98]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret