Function at 0x4c5bf4
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x4c5ec2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4c5ec2
mov ebx, dword [esp + 0x58]
cmp ebx, 0xffffffff
jne 0x4c5c25
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x4c5ec2
cmp ebx, dword [esi + 0xf4]
jge 0x4c5ec2
cmp ebx, 0xffffffff
jne 0x4c5c42
lea eax, [esi + 0x1a0]
mov dword [esp + 0xc], eax
jmp 0x4c5c58
mov ecx, dword [esi + 0xec]
mov eax, ebx
shl eax, 7
add eax, ebx
lea edx, [ecx + eax*4]
mov dword [esp + 0xc], edx
mov eax, edx
test eax, eax
je 0x4c5ec2
test byte [eax + 0x44], 8
jne 0x4c5ec2
lea edi, [eax + 0x1b8]
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 + 0x900]
test eax, eax
je 0x4c5cc2
cmp ebx, 0xffffffff
je 0x4c5cc2
mov ecx, dword [edi]
mov eax, dword [esi + 0x358]
cmp ecx, eax
jl 0x4c5cc2
mov eax, dword [esi + 0x33c]
test eax, eax
jne 0x4c5ec2
mov edx, dword [esi + 8]
push ebp
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 + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x34]
sub eax, edx
push eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x2c], eax
call ebp
push 0
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.004bfb00
push eax
push edi
call ebp
push 1
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0xbc], 1
jne 0x4c5d34
lea edx, [esp + 0x28]
push edx
jmp 0x4c5e35
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4c5dad
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xe8]
lea edx, [esp + 0x48]
push edx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [edx]
mov edx, dword [esp + 0x48]
sub eax, edx
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x1bc]
sub ecx, edx
mov edx, dword [esp + 0x3c]
add ecx, edx
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0xe8]
push eax
push edx
push edi
call fcn.004ba250
mov dword [esp + 0x18], 1
lea ecx, [esi + 0x888]
call fcn.0047a250
test eax, eax
je 0x4c5e28
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x3c]
sub edx, dword [ecx + 0x1bc]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x40]
sub edx, eax
mov eax, dword [esp + 0x44]
sub eax, ecx
mov ecx, dword [esi + 0x38]
push ecx
push 0
push 0
push 0
mov dword [esp + 0x60], edx
push 0
push 0
lea edx, [esp + 0x60]
push 2
push edx
push edi
lea ecx, [esi + 0x888]
mov dword [esp + 0x78], eax
call fcn.004798a0
jmp 0x4c5e3d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c5e3d
lea eax, [esp + 0x28]
push eax
push edi
mov ecx, esi
call fcn.004c5af0
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004c4720
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0xcc0020
sub eax, edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push edi
sub ecx, edx
mov edx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x1bc]
mov edx, dword [ecx]
push eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x24]
push edx
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 eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4