Function at 0x46e0e4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
cmp dword [0x5ee8a8], 0
jne 0x46e0fd
call fcn.0047d774
jmp 0x46e102
mov eax, dword [0x5ee7e0]
test byte [eax + 0x2f1], 0x20
je 0x46e143
call sub.USER32.dll_GetForegroundWindow_1
mov dword [0x5ef5c0], eax
cmp dword [0x5ef5c0], 0
jne 0x46e128
call sub.USER32.dll_GetDesktopWindow_1
mov dword [0x5ef5c0], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x5ef5c0]
push eax
call sub.USER32.dll_GetWindowRect_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x46e199
call sub.USER32.dll_GetDesktopWindow_1
mov dword [0x5ef5c0], eax
call sub.kernel32.dll_GetCurrentProcessId_1
lea edx, [ebp - 0x30]
call fcn.0045d464
cmp dword [ebp - 0x30], 0xffffffff
jne 0x46e172
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x46e172
cmp dword [ebp - 0x28], 0xffffffff
jne 0x46e172
cmp dword [ebp - 0x24], 0xffffffff
je 0x46e17e
lea eax, [ebp - 0x30]
call fcn.00466974
test al, al
jne 0x46e18d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x5ef5c0]
push eax
call sub.USER32.dll_GetWindowRect_1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [0x5ef5c0]
push eax
call sub.USER32.dll_GetWindowDC_1
mov dword [0x5ef5cc], eax
mov eax, dword [0x5ef5cc]
push eax
call sub.GDI32.dll_CreateCompatibleDC_1
mov dword [0x5ef5d0], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x2c]
mov esi, edx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [0x5ef5d8], ecx
mov eax, dword [ebp - 0x24]
sub eax, edx
mov dword [0x5ef5dc], eax
cmp dword [0x5ef5d8], 0
jne 0x46e1ef
mov dword [0x5ef5d8], 1
cmp dword [0x5ef5dc], 0
jne 0x46e202
mov dword [0x5ef5dc], 1
mov eax, dword [0x5ef5d8]
add eax, eax
add eax, eax
add eax, eax
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [0x5ef190], eax
mov eax, dword [0x5ef5dc]
push eax
mov eax, dword [0x5ef190]
push eax
mov eax, dword [0x5ef5cc]
push eax
call sub.GDI32.dll_CreateCompatibleBitmap_1
mov dword [0x5ef5d4], eax
mov eax, dword [0x5ef5d4]
push eax
mov eax, dword [0x5ef5d0]
push eax
call sub.GDI32.dll_SelectObject_1
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x46e44a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5ef5bc], 0
xor eax, eax
mov dword [0x5ef5b8], eax
push 0x26
mov eax, dword [0x5ef5cc]
push eax
call sub.GDI32.dll_GetDeviceCaps_1
test ah, 1
je 0x46e2e7
mov eax, 0x404
call fcn.00402ffc
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x404
call fcn.00403c9c
mov word [ebx], 0x300
lea eax, [ebx + 4]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [0x5ef5cc]
push eax
call sub.GDI32.dll_GetSystemPaletteEntries_1
mov edi, eax
mov word [ebx + 2], di
test di, di
je 0x46e2e0
push ebx
call sub.GDI32.dll_CreatePalette_1
mov dword [0x5ef5b8], eax
push 0
mov eax, dword [0x5ef5b8]
push eax
mov eax, dword [0x5ef5d0]
push eax
call sub.GDI32.dll_SelectPalette_1
mov byte [0x5ef5bc], 1
jmp 0x46e2e7
mov eax, ebx
call fcn.00403018
push 0xcc0020
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5ef5cc]
push eax
mov eax, dword [0x5ef5dc]
push eax
mov eax, dword [0x5ef5d8]
push eax
push 0
push 0
mov eax, dword [0x5ef5d0]
push eax
call sub.GDI32.dll_BitBlt_1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x5ef5c4]
push eax
call sub.USER32.dll_GetWindowRect_1
test eax, eax
je 0x46e3a5
neg esi
push esi
mov eax, dword [ebp - 0x10]
neg eax
push eax
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_OffsetRect_1
push 0xff
call sub.GDI32.dll_CreateSolidBrush_1
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x46e39e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x5ef5d0]
push eax
call sub.USER32.dll_FrameRect_1
inc dword [ebp - 0x30]
inc dword [ebp - 0x2c]
dec dword [ebp - 0x28]
dec dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x5ef5d0]
push eax
call sub.USER32.dll_FrameRect_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e3a5
mov eax, dword [ebp - 0x1c]
push eax
call sub.GDI32.dll_DeleteObject_1
ret
lea eax, [ebp - 0x18]
push eax
call sub.USER32.dll_GetCursorPos_1
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [0x5ef5c8]
push eax
call sub.USER32.dll_GetIconInfo_1
xor eax, eax
push ebp
push 0x46e403
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x40]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
sub dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e40a
mov eax, dword [ebp - 0x38]
push eax
call sub.GDI32.dll_DeleteObject_1
mov eax, dword [ebp - 0x34]
push eax
call sub.GDI32.dll_DeleteObject_1
ret