Function at 0x4aeda0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5074a2
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x583a1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], 0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call esi
push 0x4d
mov dword [ebp - 0x184], eax
call esi
push 0x4e
mov dword [ebp - 0x180], eax
call esi
push 0x4f
mov dword [ebp - 0x188], eax
call esi
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 0x16c], eax
call esi
push 0xa
push dword [ebp - 0x16c]
mov edi, eax
call esi
push dword [ebp - 0x16c]
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
mov edi, dword [ebp - 0x16c]
push edi
mov dword [ebp - 0x170], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [ebp - 0x170]
push eax
push esi
mov dword [ebp - 0x174], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x40cc0020
push dword [ebp - 0x180]
mov dword [ebp - 0x17c], eax
push dword [ebp - 0x184]
push edi
push ebx
push dword [ebp - 0x188]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x34
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e54a0
xorps xmm0, xmm0
mov dword [ebp - 0x50], vtable.ATL::CImage.0
add esp, 0xc
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
mov word [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004ac840
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x168]
mov eax, dword [ebp - 0x174]
push ecx
push 0x54
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x54
jne 0x4aefd2
mov esi, dword [ebp - 0x148]
mov eax, esi
mov ecx, dword [ebp - 0x14c]
cdq
mov edi, eax
mov dword [ebp - 0x44], ecx
movzx eax, word [ebp - 0x142]
xor edi, edx
mov dword [ebp - 0x38], eax
sub edi, edx
imul eax, ecx
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x40], edi
add eax, 0x1f
cdq
and edx, 0x1f
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x154]
sar ecx, 5
shl ecx, 2
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
test esi, esi
jle 0x4af000
lea eax, [edi - 1]
imul eax, ecx
add eax, edx
neg ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ecx
jmp 0x4af000
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x156]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
push ecx
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 0x33], 0
call fcn.004aca20
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHLWAPI.dll_IStream_Size]
push dword [ebp - 0x10c]
mov edi, dword [ebp - 0x58]
call dword [sym.imp.SHLWAPI.dll_IStream_Reset]
mov ebx, dword [ebp - 0x18]
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
cmp edi, edx
jae 0x4af04f
lea eax, [ecx + edi]
mov dword [ebp - 0x18], eax
jmp 0x4af07f
jbe 0x4af07f
mov eax, dword [ebp - 0x14]
sub eax, ecx
cmp edi, eax
jbe 0x4af066
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004bd8e0
jmp 0x4af07c
mov eax, edi
sub eax, edx
push eax
push 0
push ebx
lea esi, [ebx + eax]
call fcn.004e54a0
add esp, 0xc
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x1c]
push edi
push ecx
push dword [ebp - 0x10c]
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xb0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e54a0
add esp, 4
lea ecx, [ebp - 0x108]
call fcn.004a91d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push 0
push ecx
push eax
lea ecx, [ebp - 0xf8]
call fcn.004b7960
push dword [ebp - 0x17c]
mov ebx, dword [ebp - 0x170]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x16c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x174]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x178]
lea ecx, [ebp - 0x108]
call fcn.004a90c0
mov dword [ebp - 0x18c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x108]
call fcn.004a8810
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], vtable.ATL::CImage.0
test eax, eax
je 0x4af173
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push eax
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov word [ebp - 0x34], 0
call esi
call fcn.004ac840
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, eax
lea edi, [esi + 4]
push edi
call ebx
add dword [esi + 0x1c], 0xffffffff
jne 0x4af1ad
push edi
call ebx
mov eax, dword [esi]
test eax, eax
je 0x4af19c
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
jmp 0x4af1b3
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043df20
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3bc5
mov esp, ebp
pop ebp
ret