Function at 0x4fe6fc
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffcc
mov ebx, eax
mov eax, ebx
call fcn.004fdbac
test al, al
jne 0x4fe9db
mov byte [esp + 0x20], 0
mov eax, ebx
call dword [ebx + 0x28]
xor eax, eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x4a], eax
xor eax, eax
mov dword [ebx + 0x4e], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10], eax
mov ebp, dword [ebx + 0xc]
cmp dword [ebx + 0x35], 0
je 0x4fe753
mov ecx, dword [ebx + 0x31]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
jmp 0x4fe786
cmp dword [ebx + 0x14], 0
je 0x4fe786
mov eax, 0x18
call fcn.00406410
mov esi, eax
push esi
push 0x18
mov eax, dword [ebx + 0x14]
push eax
call sub.gdi32.dll_GetObjectW
test eax, eax
je 0x4fe77f
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov ebp, dword [esi + 8]
mov eax, esi
call fcn.0040642c
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
cmp byte [ebx + 0x30], 1
jne 0x4fe87f
push 0
call sub.user32.dll_GetDC
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov edi, eax
test edi, edi
setne al
mov edx, 0x4fe9f0
call fcn.005058e8
mov eax, dword [esp + 4]
push eax
push 0
call sub.user32.dll_ReleaseDC
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp], eax
cmp dword [esp], 0
setne al
mov edx, 0x4fea24
call fcn.005058e8
mov eax, dword [ebx + 0x20]
call fcn.004f28e4
push eax
call sub.gdi32.dll_CreateSolidBrush
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
call fcn.004f2570
lea eax, [esp + 0x28]
push eax
push esi
call sub.user32.dll_FillRect
mov eax, dword [esp + 0x1c]
push eax
call sub.gdi32.dll_DeleteObject
cmp dword [ebx + 0x35], 0
je 0x4fe859
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
push 0
mov eax, dword [ebx + 0x31]
push eax
mov eax, dword [ebx + 0x35]
push eax
mov eax, dword [ebx + 0xc]
push eax
push 0
push edi
push esi
call sub.gdi32.dll_SetDIBits
jmp 0x4fe870
push 0
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.004fd094
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, ebx
call fcn.004fcfc8
mov dword [ebx + 0x14], edi
jmp 0x4fe9c3
movzx eax, byte [ebx + 0x3d]
movzx eax, byte [eax + 0x558ac5]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4fe8a7
movzx eax, byte [0x558840]
movzx eax, byte [eax + 0x558ac5]
mov dword [esp + 0x18], eax
xor edi, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.004fccd8
mov dword [esp + 8], eax
cmp byte [ebx + 0x3d], 5
jne 0x4fe8cb
lea eax, [esp + 8]
call fcn.004fce88
mov eax, dword [esp + 8]
call fcn.004fe5c8
imul dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
call fcn.00406410
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
setne al
mov edx, 0x4fea68
call fcn.005058e8
mov eax, ebx
call fcn.004fdc30
mov edx, dword [ebx + 0xc]
cmp ebp, edx
jg 0x4fe90a
mov edx, ebp
push 0
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0
push eax
push esi
call sub.gdi32.dll_GetDIBits
mov edx, eax
mov eax, dword [ebx + 0xc]
cmp ebp, eax
jg 0x4fe92b
mov eax, ebp
cmp eax, edx
je 0x4fe99c
mov eax, dword [esp + 0xc]
call fcn.0040642c
xor eax, eax
mov dword [esp + 0xc], eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_CreateDIBSection
mov edi, eax
mov byte [esp + 0x20], 1
test edi, edi
setne al
mov edx, 0x4fea88
call fcn.005058e8
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp], eax
cmp dword [esp], 0
setne al
mov edx, 0x4feaf0
call fcn.005058e8
push 0
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.004fd094
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, ebx
call fcn.004fcfc8
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x39], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x35], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x31], eax
mov dword [ebx + 0x14], edi
movzx eax, byte [esp + 0x20]
mov byte [ebx + 0x66], al
cmp dword [ebx + 0x3e], 0
je 0x4fe9d5
push ebp
mov ecx, dword [esp + 0x14]
mov edx, esi
mov eax, ebx
call dword [ebx + 0x3e]
push esi
call sub.gdi32.dll_DeleteDC
add esp, 0x34
pop ebp
pop edi
pop esi
pop ebx
ret