Function at 0x4cf760
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x40
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x4cf9c7
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
jne 0x4cf788
mov ecx, dword [edi + 0x2f4]
test ecx, ecx
je 0x4cf9c7
cmp eax, dword [edi + 0xb8]
jge 0x4cf9c7
cmp eax, 0xffffffff
jne 0x4cf7a1
lea eax, [edi + 0x164]
jmp 0x4cf7b1
mov edx, dword [edi + 0xb0]
mov ecx, eax
shl ecx, 6
sub ecx, eax
lea eax, [edx + ecx*8]
mov ecx, eax
push ebx
push ebp
push esi
lea ebp, [ecx + 0x1ac]
lea edx, [esp + 0x20]
push ebp
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
neg eax
neg ecx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 8]
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 edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x24]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.004c4d10
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x80], 1
je 0x4cf930
lea ecx, [edi + 0x620]
call fcn.004abcc0
test eax, eax
je 0x4cf8c8
mov edx, dword [edi + 8]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov ecx, eax
push 0
sub ecx, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
sub edx, dword [ecx + 0x1b0]
mov ecx, dword [esp + 0x40]
push 0
push 0
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x4c]
sub edx, eax
mov eax, dword [esp + 0x50]
sub eax, ecx
lea ecx, [esp + 0x54]
push 2
push ecx
push esi
lea ecx, [edi + 0x620]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.004ab520
jmp 0x4cf93d
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4cf930
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [edi + 0xac]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x1b0]
sub ecx, edx
mov edx, dword [esp + 0x34]
add ecx, edx
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0xac]
push eax
push edx
push esi
call fcn.004c08f0
jmp 0x4cf93d
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push esi
call fcn.004cf6e0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
mov ecx, edi
call fcn.004ce960
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
sub eax, edx
mov edx, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [edx + 0x1b0]
push ecx
mov ecx, dword [ebp]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebp
mov eax, dword [esp + 0x18]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
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 [edi + 8]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x40
ret 4