Function at 0x4c81d4
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 0x4c84a2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4c84a2
mov ebx, dword [esp + 0x58]
cmp ebx, 0xffffffff
jne 0x4c8205
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x4c84a2
cmp ebx, dword [esi + 0xf4]
jge 0x4c84a2
cmp ebx, 0xffffffff
jne 0x4c8222
lea eax, [esi + 0x1a0]
mov dword [esp + 0xc], eax
jmp 0x4c8238
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 0x4c84a2
test byte [eax + 0x44], 8
jne 0x4c84a2
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 0x4c82a2
cmp ebx, 0xffffffff
je 0x4c82a2
mov ecx, dword [edi]
mov eax, dword [esi + 0x358]
cmp ecx, eax
jl 0x4c82a2
mov eax, dword [esi + 0x33c]
test eax, eax
jne 0x4c84a2
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.004c20a0
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 0x4c8314
lea edx, [esp + 0x28]
push edx
jmp 0x4c8415
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4c838d
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.004b6530
mov dword [esp + 0x18], 1
lea ecx, [esi + 0x888]
call fcn.00475ac0
test eax, eax
je 0x4c8408
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.00475110
jmp 0x4c841d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c841d
lea eax, [esp + 0x28]
push eax
push edi
mov ecx, esi
call fcn.004c80d0
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004c6d10
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