Function at 0x4fc250
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov ecx, dword [ebx]
call fcn.0052dd20
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4fc497
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push esi
push edi
push eax
call fcn.0052dd20
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, 0x24
lea edi, [esi - 0x1e]
call fcn.00537b80
test al, al
je 0x4fc2c7
call fcn.00537b70
fmul dword [0x5cf9f4]
fstp dword [ebp - 0x44]
cvttss2si esi, dword [ebp - 0x44]
call fcn.00537b70
fmul dword [0x5cf9c8]
fstp dword [ebp - 0x44]
cvttss2si edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add ecx, esi
mov esi, dword [ebp - 8]
add eax, edi
mov ebx, dword [ebp - 0xc]
sub esi, edi
sub ebx, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
cmp esi, ecx
jle 0x4fc495
cmp ebx, eax
jle 0x4fc495
sub ebx, eax
sub esi, ecx
push 0
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x50], esi
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push ebx
push dword [ebp - 0x5c]
mov edi, eax
mov dword [ebp - 0x48], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x60], eax
call edi
push 0xcc0020
push dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x14]
push dword [ebp - 0x5c]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [ebp - 0x48]
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [ebp - 0x50]
mov ecx, edi
imul ecx, ebx
mov dword [ebp - 0x6c], eax
shl ecx, 2
push ecx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x2c
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x60]
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
call esi
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
mov eax, dword [ebp - 0x4c]
push eax
push edi
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x48]
call esi
mov edx, dword [ebp - 0x4c]
lea eax, [edi - 1]
imul eax, ebx
mov ecx, edx
mov dword [ebp - 0x64], ecx
lea ebx, [edx + eax*4]
mov eax, edi
mov edi, dword [ebp - 0x68]
cdq
sub eax, edx
sar eax, 1
lea edx, [edi*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], edx
lea ecx, [ecx]
test edi, edi
jle 0x4fc41f
mov esi, ecx
mov edx, ebx
sub esi, ebx
lea ebx, [ebx]
mov ecx, dword [esi + edx]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
mov dword [esi + edx - 4], eax
mov dword [edx - 4], ecx
dec edi
jne 0x4fc400
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
add ecx, edx
sub ebx, edx
dec eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x44], eax
jne 0x4fc3f0
push dword [ebp - 0x5c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
cmp dword [ecx + 0x550], 0
je 0x4fc487
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x44], eax
mov ecx, dword [ecx + 0x550]
test ecx, ecx
jne 0x4fc476
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
lea edx, [ebp - 0x58]
push edx
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
call dword [eax + 8]
push dword [ebp - 0x4c]
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00576f50
mov esp, ebp
pop ebp
ret