Function at 0x4cee70
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
test eax, eax
jne 0x4ceebd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.00542080
mov edx, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
test eax, eax
je 0x4cf330
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
call fcn.004cf350
mov byte [ebp - 0x9c], al
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
call fcn.004cb2a0
mov byte [ebp - 0xa0], al
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
cmp byte [eax + 0x4a], 0
jne 0x4cef0e
cmp byte [ebp - 0xa0], 0
je 0x4cef1e
mov al, byte [ebp - 0x9c]
test al, al
je 0x4cef0e
mov eax, dword [ebp - 4]
test eax, eax
je 0x4cef1e
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_GetParent
mov dword [ebp - 0x80], eax
jmp 0x4cef25
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
cmp byte [eax + 0x4a], 0
je 0x4cef3b
mov eax, 1
call fcn.004cb220
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4cef6a
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
cmp byte [eax + 0x33e], 0
jne 0x4cef61
call fcn.0045b9d0
mov ebx, eax
call fcn.0045bbc0
test al, al
je 0x4cef6a
mov byte [ebp - 0x98], 1
jmp 0x4cef71
mov byte [ebp - 0x98], 0
cmp byte [ebp - 0x98], 0
je 0x4cf06b
mov eax, dword [0x583340]
test eax, eax
je 0x4cefb4
lea edi, [ebp - 0xb4]
mov esi, 0x583340
cld
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, 0x583340
mov cl, 0
mov edx, 0x10
call fcn.00403500
mov byte [ebp - 0xa4], 1
jmp 0x4cefbb
mov byte [ebp - 0xa4], 0
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [0x583340], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00497d10
mov eax, dword [0x583348]
cmp eax, dword [ebp - 0x84]
jl 0x4ceff8
mov eax, dword [0x58334c]
cmp eax, dword [ebp - 0x88]
jge 0x4cf04f
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
mov eax, dword [0x583344]
test eax, eax
je 0x4cf016
push dword [0x583344]
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x84]
mov dword [0x583348], eax
mov eax, dword [ebp - 0x88]
mov dword [0x58334c], eax
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push dword [ebp - 0xc]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x583344], eax
push dword [ebp - 0xc]
push 0
call sub.user32.dll_ReleaseDC
push dword [0x583344]
push dword [0x583340]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
mov eax, dword [0x583340]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov byte [eax - 0x5c], 0
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0xd8]
mov eax, 1
call fcn.0040b450
call fcn.0040d410
push eax
test eax, eax
jne 0x4cf2c5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4cf16f
call fcn.0045b9d0
mov ebx, eax
call fcn.0045bbc0
test al, al
je 0x4cf0bb
mov eax, 3
call fcn.004cb220
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
call fcn.0045b9d0
mov ebx, eax
call fcn.0045bbc0
test al, al
je 0x4cf0e4
shr dword [0x583330], 2
cmp byte [ebp - 0x98], 0
je 0x4cf17c
push 1
mov ecx, 1
mov edx, 0
mov eax, 0
call fcn.004972b0
mov dword [ebp - 0x14], eax
push 4
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.gdi32.dll_GetRandomRgn
cmp eax, 1
jne 0x4cf165
mov eax, dword [0x5b54f0]
cmp eax, 2
jne 0x4cf157
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x78]
neg eax
push eax
mov eax, dword [ebp - 0x7c]
neg eax
push eax
push dword [ebp - 0x14]
call sub.gdi32.dll_OffsetRgn
push dword [ebp - 0x14]
push dword [0x583340]
call sub.gdi32.dll_SelectClipRgn
push dword [ebp - 0x14]
call sub.gdi32.dll_DeleteObject
jmp 0x4cf17c
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4cf19e
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x80]
call fcn.00541f10
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
lea edx, [ebp - 0x74]
call fcn.00541cc0
mov dword [ebp - 0x64], 0xf
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov al, byte [ebp - 0x98]
test al, al
jne 0x4cf1c9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov al, byte [ebp - 0xa0]
test al, al
jne 0x4cf205
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
or dword [eax + 0x344], 0x20
push 0
push dword [ebp - 0x60]
push 0x14
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
call fcn.00503e00
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
and dword [eax + 0x344], 0xffffffdf
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4cf236
push dword [ebp - 0x60]
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x60]
call fcn.004cb160
push dword [ebp - 0x8c]
push dword [ebp - 0x60]
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 4]
test eax, eax
je 0x4cf247
mov al, byte [ebp - 0xa0]
test al, al
jne 0x4cf27f
push dword [ebp - 0x60]
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x60]
call fcn.00499170
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
lea edx, [ebp - 0x64]
call fcn.0054ede0
push dword [ebp - 0x8c]
push dword [ebp - 0x60]
call sub.gdi32.dll_RestoreDC
cmp byte [ebp - 0x98], 0
je 0x4cf2af
push 0xcc0020
push 0
push 0
push dword [0x583340]
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push 0
push 0
push dword [ebp - 0xc]
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4cf2c5
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_EndPaint
call fcn.0040b720
cmp byte [ebp - 0x98], 0
je 0x4cf323
mov edx, dword [ebp - 0x10]
mov eax, dword [0x583340]
call fcn.00498610
mov eax, dword [0x583340]
call fcn.00497320
mov dword [0x583340], 0
cmp byte [ebp - 0xa4], 0
je 0x4cf323
mov eax, dword [0x583344]
test eax, eax
je 0x4cf310
mov eax, dword [0x583344]
call fcn.00497350
mov edi, 0x583340
lea esi, [ebp - 0xb4]
cld
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop eax
test eax, eax
je 0x4cf330
dec eax
test eax, eax
call fcn.0040b890
mov ebx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xe0]
leave
ret