Function at 0x4cd760
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov esi, ecx
push ebp
call fcn.004cbcc0
mov ecx, dword [esi + 0x15114]
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x4cd9ae
cmp eax, dword [esi + 0x15118]
jg 0x4cd9ae
lea eax, [ebp + ebp*4]
mov edx, dword [esp + 0x44]
shl eax, 4
sub eax, ebp
mov ecx, dword [esi + eax*4 + 0x1228]
lea eax, [esi + eax*4]
cmp ecx, edx
jne 0x4cd9ae
lea edi, [eax + 0x1200]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x20]
push edi
push edx
call ebx
lea eax, [esp + 0x30]
push edi
push eax
call ebx
mov ecx, dword [esp + 0x20]
push 0
neg ecx
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x15110]
mov dword [esp + 0x48], 0
cmp ebp, dword [esi + ecx*4 + 0x14cf0]
jne 0x4cd848
mov eax, dword [esi + 0x10d0]
test eax, eax
je 0x4cd848
mov edx, dword [esi + 0x15114]
mov dword [esp + 0x48], 1
cmp ecx, edx
jne 0x4cd829
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
add edx, eax
add ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ecx
jmp 0x4cd848
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
sub edx, eax
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
lea edx, [ecx + eax*2]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x20]
sub ecx, ebp
sub edx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x20], eax
call ebp
push 0
lea ecx, [esi + 0x28]
mov dword [esp + 0x18], eax
call fcn.004c6130
push eax
push edi
call ebp
push 1
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push edi
call fcn.004cca40
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4cd8f2
mov ecx, dword [esi + 0x10d0]
push 0
neg ecx
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x15110]
mov ecx, dword [esi + 0x15114]
cmp eax, ecx
jne 0x4cd8f2
mov ecx, dword [esi + 0x10d0]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004cb130
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
sub ecx, eax
push edi
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x15110]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
pop ebx
je 0x4cd9ae
mov edx, dword [esi + 0x10d0]
test edx, edx
je 0x4cd9ae
lea edx, [ecx + 1]
cmp edx, eax
je 0x4cd989
dec ecx
cmp ecx, eax
jne 0x4cd9ae
mov edi, dword [esi + eax*4 + 0x14cf0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edi + edi*4]
push eax
shl ecx, 4
sub ecx, edi
push edi
mov dword [esi + ecx*4 + 0x1228], eax
mov ecx, esi
call fcn.004cd760
pop edi
pop esi
pop ebp
add esp, 0x30
ret 8