Function at 0x4cd9c5
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x4cdc87
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4cdc87
mov ebx, dword [esp + 0x58]
cmp ebx, 0xffffffff
jne 0x4cd9f6
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x4cdc87
cmp ebx, dword [esi + 0xf4]
jge 0x4cdc87
cmp ebx, 0xffffffff
jne 0x4cda0f
lea ebp, [esi + 0x1a0]
jmp 0x4cda21
mov eax, dword [esi + 0xec]
mov ebp, ebx
shl ebp, 5
sub ebp, ebx
shl ebp, 4
add ebp, eax
test ebp, ebp
je 0x4cdc87
test byte [ebp + 0x44], 8
jne 0x4cdc87
lea edi, [ebp + 0x1a4]
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
neg ecx
neg edx
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x888]
test eax, eax
je 0x4cda8b
cmp ebx, 0xffffffff
je 0x4cda8b
mov ecx, dword [edi]
mov eax, dword [esi + 0x344]
cmp ecx, eax
jl 0x4cda8b
mov eax, dword [esi + 0x33c]
test eax, eax
jne 0x4cdc87
mov edx, dword [esi + 8]
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 0
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004c6620
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0xbc], 1
jne 0x4cdafe
lea edx, [esp + 0x24]
push edx
jmp 0x4cdbf9
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4cdb73
mov ecx, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xe8]
lea edx, [esp + 0x44]
push edx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx]
mov edx, dword [esp + 0x44]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [ebp + 0x1a8]
sub ecx, edx
mov edx, dword [esp + 0x38]
add ecx, edx
push ecx
mov ecx, dword [esi + 0xe8]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.004baae0
mov dword [esp + 0x14], 1
mov ecx, dword [esi + 0x874]
test ecx, ecx
je 0x4cdbec
call fcn.00477ff0
test eax, eax
je 0x4cdbec
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, dword [edx]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, dword [ebp + 0x1a8]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x3c]
sub edx, eax
mov eax, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x874]
push 0
push 0
push 0
mov dword [esp + 0x5c], edx
push 0
push 0
lea edx, [esp + 0x5c]
push 2
push edx
push edi
mov dword [esp + 0x74], eax
call fcn.004775e0
jmp 0x4cdc01
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4cdc01
lea eax, [esp + 0x24]
push eax
push edi
mov ecx, esi
call fcn.004cd8b0
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004cc4b0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
sub eax, edx
mov edx, dword [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [ebp + 0x1a8]
push ecx
mov ecx, dword [eax]
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call ebp
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call ebp
mov edx, dword [esi + 8]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4