Function at 0x46f25c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
lea edi, [ebp - 0x34]
cmp dword [0x495910], 0
jne 0x46f278
call fcn.0047f130
jmp 0x46f27d
mov eax, dword [0x495848]
test byte [eax + 0x2f1], 0x20
je 0x46f2bb
call sub.user32.dll_GetForegroundWindow
mov dword [0x49662c], eax
cmp dword [0x49662c], 0
jne 0x46f2a3
call sub.user32.dll_GetDesktopWindow
mov dword [0x49662c], eax
push edi
mov eax, dword [0x49662c]
push eax
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x46f30a
call sub.user32.dll_GetDesktopWindow
mov dword [0x49662c], eax
call fcn.0045976c
mov edx, edi
call fcn.0045d73c
cmp dword [edi], 0xffffffff
jne 0x46f2e8
cmp dword [edi + 4], 0xffffffff
jne 0x46f2e8
cmp dword [edi + 8], 0xffffffff
jne 0x46f2e8
cmp dword [edi + 0xc], 0xffffffff
je 0x46f2f3
mov eax, edi
call fcn.00467948
test al, al
jne 0x46f2ff
push edi
mov eax, dword [0x49662c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [0x49662c]
push eax
call sub.user32.dll_GetWindowDC
mov dword [0x496638], eax
mov eax, dword [0x496638]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [0x49663c], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 4]
mov esi, edx
mov dword [ebp - 0xc], esi
mov ecx, dword [edi + 8]
sub ecx, eax
mov dword [0x496644], ecx
mov eax, dword [edi + 0xc]
sub eax, edx
mov dword [0x496648], eax
cmp dword [0x496644], 0
jne 0x46f35f
mov dword [0x496644], 1
cmp dword [0x496648], 0
jne 0x46f372
mov dword [0x496648], 1
mov eax, dword [0x496644]
shl eax, 3
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [0x4961f8], eax
mov eax, dword [0x496648]
push eax
mov eax, dword [0x4961f8]
push eax
mov eax, dword [0x496638]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x496640], eax
mov eax, dword [0x496640]
push eax
mov eax, dword [0x49663c]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46f5aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x496628], 0
xor eax, eax
mov dword [0x496624], eax
push 0x26
mov eax, dword [0x496638]
push eax
call sub.gdi32.dll_GetDeviceCaps
test ah, 1
je 0x46f454
mov eax, 0x404
call fcn.004084ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov word [eax], 0x300
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [0x496638]
push eax
call sub.gdi32.dll_GetSystemPaletteEntries
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov word [eax + 2], bx
test bx, bx
je 0x46f44c
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_CreatePalette
mov dword [0x496624], eax
push 0
mov eax, dword [0x496624]
push eax
mov eax, dword [0x49663c]
push eax
call sub.gdi32.dll_SelectPalette
mov byte [0x496628], 1
jmp 0x46f454
mov eax, dword [ebp - 0x1c]
call fcn.00402718
push 0xcc0020
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x496638]
push eax
mov eax, dword [0x496648]
push eax
mov eax, dword [0x496644]
push eax
push 0
push 0
mov eax, dword [0x49663c]
push eax
call sub.gdi32.dll_BitBlt
push edi
mov eax, dword [0x496630]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x46f505
neg esi
push esi
mov eax, dword [ebp - 0x10]
neg eax
push eax
push edi
call sub.user32.dll_OffsetRect
push 0xff
call sub.gdi32.dll_CreateSolidBrush
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x46f4fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
push edi
mov eax, dword [0x49663c]
push eax
call sub.user32.dll_FrameRect
inc dword [edi]
inc dword [edi + 4]
dec dword [edi + 8]
dec dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
push eax
push edi
mov eax, dword [0x49663c]
push eax
call sub.user32.dll_FrameRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f505
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
ret
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_GetCursorPos
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 0x14], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [0x496634]
push eax
call sub.user32.dll_GetIconInfo
xor eax, eax
push ebp
push 0x46f563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x44]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
sub dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f56a
mov eax, dword [ebp - 0x3c]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_DeleteObject
ret