Function at 0x1005a290
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1008400c]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax + 8], 1
lea eax, [esp + 0x38]
push edi
push eax
push esi
jne 0x1005a2e0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
jmp 0x1005a2e6
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
mov byte [esp + 0x17], 1
call dword [sym.imp.USER32.dll_IsWindow]
mov ebx, eax
neg ebx
sbb bl, bl
and bl, byte [esp + 0x13]
call fcn.1005b550
cmp eax, 2
je 0x1005a41e
call fcn.1005b490
test al, al
jne 0x1005a41e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10086ba8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10086c50]
cmp eax, dword [ecx + 4]
jg 0x1005a58e
cmp dword [0x100844d0], 0
jne 0x1005a34d
cmp dword [0x100844d4], 0
je 0x1005a41e
call fcn.1003b920
movss xmm2, dword [0x100844f0]
movss xmm0, dword [0x10076f24]
mulss xmm2, dword [eax + 4]
comiss xmm0, xmm2
jb 0x1005a390
movd xmm3, dword [0x100844d0]
subss xmm0, xmm2
movd xmm4, dword [0x100844d4]
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
mulss xmm3, xmm0
mulss xmm4, xmm0
jmp 0x1005a396
xorps xmm3, xmm3
xorps xmm4, xmm4
xorps xmm0, xmm0
movsd xmm1, qword [0x10076f50]
cvtsi2ss xmm0, dword [esp + 0x3c]
subss xmm0, xmm3
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
subss xmm0, xmm4
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x44]
mov dword [esp + 0x40], eax
subss xmm0, xmm3
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x48]
mov dword [esp + 0x44], eax
subss xmm0, xmm4
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esp + 0x48], eax
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 1
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x48]
mov edi, eax
sub ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x3c]
movzx ecx, bl
shl ecx, 0x1e
add ecx, 0xcc0020
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
push ecx
push edx
push esi
push eax
mov eax, dword [esp + 0x58]
sub eax, edx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, dword [esp + 0x18]
mov esi, eax
test esi, esi
je 0x1005a4fb
lea eax, [esp + 0x14]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push 0
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x1005a4fd
xor esi, esi
push dword [esp + 0x20]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x1c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
test esi, esi
jne 0x1005a547
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10069210
mov esp, ebp
pop ebp
ret 0xc
push 0x10
call fcn.10069221
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [eax], vtable.CAnnoSafeRef.0
mov dword [eax + 0xc], esi
pop edi
mov dword [eax + 4], 0
mov dword [eax + 8], 2
mov dword [eax], vtable.CAnnoBitmapGdip.0
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x48]
pop esi
pop ebx
xor ecx, esp
call fcn.10069210
mov esp, ebp
pop ebp
ret 0xc
push 0x10086c50
call fcn.100696fa
add esp, 4
cmp dword [0x10086c50], 0xffffffff
jne 0x1005a337
xorps xmm0, xmm0
mov dword [vtable.CAnnoMultiMonitorWindows.0], 0x10073304
push 0x1006e610
movups xmmword [0x100844d0], xmm0
mov dword [0x100844f0], 0
movups xmmword [0x100844e0], xmm0
call fcn.10069556
add esp, 4
push 0x10086c50
call fcn.100696b0
add esp, 4
jmp 0x1005a337