Function at 0x448108
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
cmp dword [0x4b66fc], 0
jne 0x448121
call fcn.004529ec
jmp 0x448126
mov eax, dword [0x4b6640]
test byte [eax + 0x1c2], 0x20
je 0x44814a
call sub.user32.dll_GetForegroundWindow
mov dword [0x4b6e60], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b6e60]
push eax
call sub.user32.dll_GetWindowRect
jmp 0x44816a
call sub.user32.dll_GetDesktopWindow
mov dword [0x4b6e60], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b6e60]
push eax
call sub.user32.dll_GetWindowRect
push ebp
call fcn.0044802c
pop ecx
mov eax, dword [0x4b6e60]
push eax
call sub.user32.dll_GetWindowDC
mov dword [0x4b6e6c], eax
mov eax, dword [0x4b6e6c]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [0x4b6e70], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov esi, edx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [0x4b6e78], ecx
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [0x4b6e7c], eax
cmp dword [0x4b6e78], 0
jne 0x4481c0
mov dword [0x4b6e78], 1
cmp dword [0x4b6e7c], 0
jne 0x4481d3
mov dword [0x4b6e7c], 1
mov eax, dword [0x4b6e78]
shl eax, 3
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [0x4b6a30], eax
mov eax, dword [0x4b6e7c]
push eax
mov eax, dword [0x4b6a30]
push eax
mov eax, dword [0x4b6e6c]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x4b6e74], eax
mov eax, dword [0x4b6e74]
push eax
mov eax, dword [0x4b6e70]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x448414
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x4b6e5c], 0
xor eax, eax
mov dword [0x4b6e58], eax
push 0x26
mov eax, dword [0x4b6e6c]
push eax
call sub.gdi32.dll_GetDeviceCaps
test ah, 1
je 0x4482b5
mov eax, 0x404
call fcn.00402890
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x404
call fcn.0040329c
mov word [ebx], 0x300
lea eax, [ebx + 4]
push eax
push 0x100
push 0
mov eax, dword [0x4b6e6c]
push eax
call sub.gdi32.dll_GetSystemPaletteEntries
mov edi, eax
mov word [ebx + 2], di
test di, di
je 0x4482ae
push ebx
call sub.gdi32.dll_CreatePalette
mov dword [0x4b6e58], eax
push 0
mov eax, dword [0x4b6e58]
push eax
mov eax, dword [0x4b6e70]
push eax
call sub.gdi32.dll_SelectPalette
mov byte [0x4b6e5c], 1
jmp 0x4482b5
mov eax, ebx
call fcn.004028b0
push 0xcc0020
push 0
push 0
mov eax, dword [0x4b6e6c]
push eax
mov eax, dword [0x4b6e7c]
push eax
mov eax, dword [0x4b6e78]
push eax
push 0
push 0
mov eax, dword [0x4b6e70]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b6e64]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x44836f
neg esi
push esi
mov eax, dword [ebp - 0x18]
neg eax
push eax
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_OffsetRect
push 0xff
call sub.gdi32.dll_CreateSolidBrush
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x448368
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b6e70]
push eax
call sub.user32.dll_FrameRect
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
dec dword [ebp - 8]
dec dword [ebp - 4]
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b6e70]
push eax
call sub.user32.dll_FrameRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44836f
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_DeleteObject
ret
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetCursorPos
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [0x4b6e68]
push eax
call sub.user32.dll_GetIconInfo
xor eax, eax
push ebp
push 0x4483cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4483d4
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_DeleteObject
ret