Function at 0x467a98
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
cmp dword [0x55b8a8], 0
jne 0x467ab1
call fcn.00477174
jmp 0x467ab6
mov eax, dword [0x55b7e0]
test byte [eax + 0x2f1], 0x20
je 0x467af7
call sub.user32.dll_GetForegroundWindow
mov dword [0x55c5c4], eax
cmp dword [0x55c5c4], 0
jne 0x467adc
call sub.user32.dll_GetDesktopWindow
mov dword [0x55c5c4], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x55c5c4]
push eax
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x467b4d
call sub.user32.dll_GetDesktopWindow
mov dword [0x55c5c4], eax
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x30]
call fcn.00456da8
cmp dword [ebp - 0x30], 0xffffffff
jne 0x467b26
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x467b26
cmp dword [ebp - 0x28], 0xffffffff
jne 0x467b26
cmp dword [ebp - 0x24], 0xffffffff
je 0x467b32
lea eax, [ebp - 0x30]
call fcn.0046028c
test al, al
jne 0x467b41
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x55c5c4]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [0x55c5c4]
push eax
call sub.user32.dll_GetWindowDC
mov dword [0x55c5d0], eax
mov eax, dword [0x55c5d0]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [0x55c5d4], 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 [0x55c5dc], ecx
mov eax, dword [ebp - 0x24]
sub eax, edx
mov dword [0x55c5e0], eax
cmp dword [0x55c5dc], 0
jne 0x467ba3
mov dword [0x55c5dc], 1
cmp dword [0x55c5e0], 0
jne 0x467bb6
mov dword [0x55c5e0], 1
mov eax, dword [0x55c5dc]
add eax, eax
add eax, eax
add eax, eax
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [0x55c194], eax
mov eax, dword [0x55c5e0]
push eax
mov eax, dword [0x55c194]
push eax
mov eax, dword [0x55c5d0]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x55c5d8], eax
mov eax, dword [0x55c5d8]
push eax
mov eax, dword [0x55c5d4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x467dfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x55c5c0], 0
xor eax, eax
mov dword [0x55c5bc], eax
push 0x26
mov eax, dword [0x55c5d0]
push eax
call sub.gdi32.dll_GetDeviceCaps
test ah, 1
je 0x467c9b
mov eax, 0x404
call fcn.00402f18
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x404
call fcn.00403b4c
mov word [ebx], 0x300
lea eax, [ebx + 4]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [0x55c5d0]
push eax
call sub.gdi32.dll_GetSystemPaletteEntries
mov edi, eax
mov word [ebx + 2], di
test di, di
je 0x467c94
push ebx
call sub.gdi32.dll_CreatePalette
mov dword [0x55c5bc], eax
push 0
mov eax, dword [0x55c5bc]
push eax
mov eax, dword [0x55c5d4]
push eax
call sub.gdi32.dll_SelectPalette
mov byte [0x55c5c0], 1
jmp 0x467c9b
mov eax, ebx
call fcn.00402f34
push 0xcc0020
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x55c5d0]
push eax
mov eax, dword [0x55c5e0]
push eax
mov eax, dword [0x55c5dc]
push eax
push 0
push 0
mov eax, dword [0x55c5d4]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x55c5c8]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x467d59
neg esi
push esi
mov eax, dword [ebp - 0x10]
neg eax
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_OffsetRect
push 0xff
call sub.gdi32.dll_CreateSolidBrush
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x467d52
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 [0x55c5d4]
push eax
call sub.user32.dll_FrameRect
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 [0x55c5d4]
push eax
call sub.user32.dll_FrameRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d59
mov eax, dword [ebp - 0x1c]
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 - 0x44]
push eax
mov eax, dword [0x55c5cc]
push eax
call sub.user32.dll_GetIconInfo
xor eax, eax
push ebp
push 0x467db7
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 0x467dbe
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x34]
push eax
call sub.gdi32.dll_DeleteObject
ret