Function at 0x10004c8a
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x10180f9c
call fcn.10098054
sub esp, 0x80
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10004cc5
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
call edi
push 1
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x38]
test ecx, ecx
jle 0x10004d10
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
test ecx, ecx
jle 0x10004d10
cmp dword [ebp - 0x38], esi
jl 0x10004d10
cmp dword [ebp - 0x38], ebx
jg 0x10004d10
cmp dword [ebp - 0x34], esi
jl 0x10004d10
cmp dword [ebp - 0x34], eax
jg 0x10004d10
cmp dword [ebp - 0x30], esi
jl 0x10004d10
cmp dword [ebp - 0x30], ebx
jg 0x10004d10
cmp dword [ebp - 0x2c], esi
jl 0x10004d10
cmp dword [ebp - 0x2c], eax
jle 0x10004d1c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub ebx, dword [ebp - 0x34]
sub edi, dword [ebp - 0x38]
mov dword [ebp + 8], eax
push ebx
push edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov dword [ebp - 0x18], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp + 8]
push ebx
push edi
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp + 0x1c], esi
je 0x10004ddc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10004ddc
mov eax, dword [ebp - 0x38]
push 0x7f00
sub dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0x24], eax
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, eax
cmp edi, esi
je 0x10004ddc
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebp - 0x24]
push edi
sub eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x68]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawIcon]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp + 8]
mov edi, 0x10195978
push eax
push esi
push 0x26200a
push esi
push dword [ebp + 0x14]
mov dword [ebp - 0x48], edi
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ebx
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x58], edi
mov dword [ebp + 0x1c], esi
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x48]
mov dword [ebp + 8], esi
test eax, eax
je 0x10004e48
lea eax, [ebp + 8]
push eax
push ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
fild dword [ebp + 0x14]
push esi
push ecx
mov byte [ebp - 4], 2
fidiv dword [ebp - 0x1c]
fstp dword [esp]
fild dword [ebp + 0x10]
push ecx
fidiv dword [ebp - 0x20]
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipScaleWorldTransform
cmp eax, esi
je 0x10004e74
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x58]
push esi
neg eax
sbb eax, eax
push esi
and eax, edi
push eax
push dword [ebp + 8]
call sub.gdiplus.dll_GdipDrawImageI
cmp eax, esi
je 0x10004e8f
mov dword [ebp - 0x24], eax
push 1
mov esi, 0x10199a58
pop eax
lea edi, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
push str.image_jpeg
mov dword [ebp - 0x74], 4
call fcn.10004ffc
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.10004f25
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push ebx
call sub.gdiplus.dll_GdipSaveImageToFile
push esi
mov dword [ebp + 0x14], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp + 8]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [ebp + 0x1c]
call sub.gdiplus.dll_GdipDisposeImage
push ebx
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret