Function at 0x4d6f05
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x18d8c], edi
jne 0x4d7152
cmp dword [esi + 0x20d0], edi
je 0x4d7152
cmp dword [esi + 0x18b9c], edi
je 0x4d7152
call fcn.004db460
test eax, eax
je 0x4d7152
mov edx, dword [esi + 0x1e7c]
mov ecx, esi
inc edx
mov dword [esi + 0x1e7c], edx
call fcn.004db460
cmp dword [esi + 0x1e7c], eax
jl 0x4d6f5e
mov dword [esi + 0x1e7c], edi
mov ecx, dword [esi + 0x20d0]
call fcn.004844b0
mov ecx, esi
call fcn.004db460
mov ecx, esi
call fcn.004db460
mov eax, dword [esi + 0x217c]
mov edx, dword [esi + 0x18ba4]
mov ecx, dword [esi + 0x2180]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18ba8]
mov dword [esp + 0x24], edi
cmp edx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edx
jg 0x4d7152
lea eax, [esi + edx*4 + 0x18584]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx]
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ebp
mov ecx, dword [esi + eax*4 + 0x22dc]
lea eax, [esi + eax*4]
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x4d6fe8
dec ecx
test ecx, ecx
mov dword [eax + 0x22dc], ecx
je 0x4d7112
mov ecx, dword [eax + 0x22cc]
test ecx, ecx
je 0x4d70ec
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
sub eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
lea ecx, [esp + 0x28]
push ebp
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004d64c0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add edx, 0x2290
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esi + 0x213c]
mov eax, dword [esp + 0x40]
add ecx, ebp
mov ebp, dword [esi + 0x2180]
push 0xcc0020
sub eax, ebp
push 0
sub eax, ecx
push 0
cdq
sub eax, edx
push edi
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x44]
push ebp
mov dword [esp + 0x4c], ecx
lea edx, [ecx + ebp]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x2148]
add eax, edx
mov edx, dword [esi + 0x217c]
add edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x217c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18ba8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jle 0x4d6fb6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ebp
lea eax, [esi + eax*4]
mov dword [eax + 0x22cc], 1
mov ecx, dword [esi + 0x18ba0]
cmp edx, ecx
jne 0x4d7143
add eax, 0x2184
push 1
push eax
mov ecx, esi
call fcn.004db3f0
push 0
push 1
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004d5a90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret