Function at 0x4c4d25
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x14e8]
cmp ecx, edi
je 0x4c4f54
cmp dword [esi + 0x17bb4], edi
je 0x4c4f54
mov eax, dword [esi + 0x1298]
cmp eax, edi
je 0x4c4f54
mov ebx, dword [esi + 0x1294]
inc ebx
mov edx, ebx
mov dword [esi + 0x1294], ebx
cmp edx, eax
jl 0x4c4d6c
mov dword [esi + 0x1294], edi
call fcn.0047c440
mov eax, dword [esi + 0x1594]
mov edx, dword [esi + 0x17bbc]
mov ecx, dword [esi + 0x1598]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x17bc0]
mov dword [esp + 0x24], edi
cmp edx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edx
jg 0x4c4f54
lea eax, [esi + edx*4 + 0x1759c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx]
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
shl ecx, 5
lea eax, [ecx + esi]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x16f4]
test ecx, ecx
jle 0x4c4de1
dec ecx
test ecx, ecx
mov dword [eax + 0x16f4], ecx
je 0x4c4f0c
mov ecx, dword [eax + 0x16e4]
test ecx, ecx
je 0x4c4ee6
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x24]
sub ecx, edx
push eax
push ecx
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 edx, [esp + 0x28]
push ebp
push edx
push edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004c4330
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
add eax, 0x16a8
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esi + 0x1554]
mov eax, dword [esp + 0x40]
add ecx, ebp
mov ebp, dword [esi + 0x1598]
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 + 0x1560]
add eax, edx
mov edx, dword [esi + 0x1594]
add edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1594]
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 + 0x17bc0]
inc edx
add ecx, 4
cmp edx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jle 0x4c4db0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
shl ecx, 5
mov dword [ecx + esi + 0x16e4], 1
mov eax, dword [esi + 0x17bb8]
cmp edx, eax
jne 0x4c4f45
mov eax, dword [esi + 0x12d4]
test eax, eax
je 0x4c4f45
mov ecx, dword [esi + 0x17d80]
mov edx, dword [eax]
push 1
push ecx
push eax
call dword [edx + 0x28]
push 0
push 1
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004c3900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret