Function at 0x4a8e40
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x44
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x4a90d0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4a90d0
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
jne 0x4a8e73
mov ecx, dword [edi + 0x334]
test ecx, ecx
je 0x4a90d0
cmp eax, dword [edi + 0xec]
jge 0x4a90d0
cmp eax, 0xffffffff
jne 0x4a8e8c
lea eax, [edi + 0x198]
jmp 0x4a8e9c
mov edx, dword [edi + 0xe4]
mov ecx, eax
shl ecx, 7
add ecx, eax
lea eax, [edx + ecx*4]
mov ecx, eax
push ebx
push ebp
push esi
lea ebp, [ecx + 0x1b8]
lea edx, [esp + 0x24]
push ebp
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
neg eax
neg ecx
push eax
lea edx, [esp + 0x28]
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 + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x28]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0049d220
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0xb4], 1
jne 0x4a8f43
lea eax, [esp + 0x24]
push eax
jmp 0x4a903e
mov eax, dword [edi + 0xe0]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4a8fb9
mov edx, dword [edi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 0xe0]
lea eax, [esp + 0x44]
push eax
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x1bc]
sub ecx, edx
mov edx, dword [esp + 0x38]
add ecx, edx
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 0xe0]
push eax
push edx
push esi
call fcn.00497b00
mov dword [esp + 0x14], 1
lea ecx, [edi + 0x678]
call fcn.0045f710
test eax, eax
je 0x4a9031
mov ecx, dword [edi + 8]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp]
mov edx, eax
push 0
sub edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
push 0
push 0
sub ecx, dword [edx + 0x1bc]
mov edx, dword [esp + 0x4c]
push 0
push 0
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esp + 0x4c]
sub edx, eax
push 0
lea eax, [esp + 0x5c]
push 2
mov dword [esp + 0x68], ecx
push eax
push esi
lea ecx, [edi + 0x678]
mov dword [esp + 0x74], edx
call fcn.0045ed30
jmp 0x4a9046
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a9046
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, edi
call fcn.004a8d40
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x24]
push edx
push eax
push esi
mov ecx, edi
call fcn.004a7c80
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
sub ecx, eax
mov eax, dword [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov ecx, dword [eax + 0x1bc]
push edx
mov edx, dword [ebp]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x20]
push edx
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 eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x44
ret 4