Function at 0x45d4b7
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x4b99dc
mov dword [ebp - 0xcc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push ebx
mov edi, ebx
mov dword [ebp - 0xc4], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0xc0], ebx
push 0x44
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xdc], esi
push ebx
push eax
call fcn.004653c0
add esp, 0xc
mov dword [ebp - 0xd8], ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0xd4], ebx
test ebx, ebx
je 0x45d786
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x45d54b
xor eax, eax
jmp 0x45d7e7
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0xc8], esi
test esi, esi
je 0x45d544
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push dword [ebp - 0x30]
xor eax, eax
push dword [ebp - 0x34]
push eax
push eax
push dword [ebp - 0xdc]
push 0x64
push 0x82
push eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x45d78c
lea eax, [ebp - 0x10c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x108]
xor edx, edx
mov ecx, dword [ebp - 0x104]
inc edx
mov dword [ebp - 0x28], eax
mov word [ebp - 0x20], dx
push 0x20
pop edx
shl eax, 5
mov word [ebp - 0x1e], dx
add eax, 0x1f
xor edx, edx
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
cdq
and edx, 0x1f
mov dword [ebp - 0x24], ecx
add eax, edx
sar eax, 5
imul eax, ecx
shl eax, 2
push eax
push 0x42
mov dword [ebp - 0xd0], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x45d544
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x45d78c
push 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0x104]
push 0
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ebx, dword [ebp - 0xd0]
mov eax, 0x4d42
add ebx, 0x36
mov dword [ebp - 0xea], 0x36
push ebx
mov dword [ebp - 0xf2], ebx
mov word [ebp - 0xf4], ax
call fcn.00461d70
mov edi, eax
mov dword [ebp - 0xc4], eax
lea esi, [ebp - 0xf4]
push 0xa
pop ecx
push dword [ebp - 0xd0]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0xe0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [eax + 0xe]
add eax, 0x36
lea esi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00463680
mov eax, dword [ebp - 0xcc]
add esp, 0x10
xor esi, esi
push esi
push esi
mov dword [eax], ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
push 0x2c
mov ebx, eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004653c0
add esp, 0xc
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x78]
push 0xa
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x45d6fa
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0045cd63
mov edi, eax
jmp 0x45d6fc
xor edi, edi
lea eax, [ebp - 0x4c]
push eax
push str.image_jpeg
call fcn.004065d3
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [edi + 4]
call sub.gdiplus.dll_GdipSaveImageToStream
test eax, eax
je 0x45d722
mov dword [edi + 8], eax
push dword [ebp - 0xc4]
call fcn.0040e9f1
mov eax, dword [ebx]
pop ecx
push 0
lea ecx, [ebp - 0xc0]
push ecx
push ebx
call dword [eax + 0x30]
mov esi, dword [ebp - 0xb8]
push esi
call fcn.00461d70
pop ecx
mov ecx, dword [ebx]
mov dword [ebp - 0xc4], eax
xor eax, eax
push eax
push eax
push eax
push eax
push ebx
call dword [ecx + 0x14]
mov ecx, dword [ebx]
lea eax, [ebp - 0xe4]
push eax
push esi
push dword [ebp - 0xc4]
push ebx
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xc8]
mov dword [ecx], eax
jmp 0x45d792
mov esi, dword [ebp - 0xd4]
mov ebx, dword [ebp - 0xc8]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0xd4]
call esi
push dword [ebp - 0xdc]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x45d7c2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x45d7d0
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov ecx, edi
call dword [eax]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
push 0x4b99dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462f14
mov esp, ebp
pop ebp
ret