Function at 0x10009ded
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [ebp + 0x18]
mov ebx, eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push eax
call edi
push 0xcc0020
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0x18]
push ebx
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp + 0x28], esi
je 0x10009ea5
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
lea edx, [ecx + ebx]
cmp eax, edx
jge 0x10009ea5
cmp eax, ecx
jl 0x10009ea5
mov ebx, dword [ebp - 0x10]
sub eax, ecx
push 0x7f00
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x10009ea5
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
sub ebx, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawIcon]
push dword [ebp - 0xc]
push dword [ebp - 4]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
push eax
push esi
push 0x26200a
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
lea eax, [ebp + 0x28]
mov dword [ebp + 0x28], esi
push eax
push esi
push dword [ebp - 8]
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], esi
test eax, eax
je 0x10009eec
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call sub.gdiplus.dll_GdipGetImageGraphicsContext
fild dword [ebp + 0x20]
push esi
push ecx
fidiv dword [ebp + 0x18]
fstp dword [esp]
fild dword [ebp + 0x1c]
push ecx
fidiv dword [ebp + 0x14]
fstp dword [esp]
push dword [ebp + 0xc]
call sub.gdiplus.dll_GdipScaleWorldTransform
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x1c]
neg eax
sbb eax, eax
push esi
and eax, dword [ebp + 0x28]
push esi
push eax
push dword [ebp + 0xc]
call sub.gdiplus.dll_GdipDrawImageI
push 1
mov dword [ebp + 0x18], eax
pop eax
mov esi, 0x10199a58
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], 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 - 0x28], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push str.image_jpeg
mov dword [ebp - 0x24], 4
call fcn.10004ffc
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10004f25
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0x10]
call sub.gdiplus.dll_GdipSaveImageToFile
push esi
mov dword [ebp + 0x18], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp + 0xc]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [ebp + 0x28]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp + 0x10]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret