Function at 0x491cd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x40
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x491f39
mov eax, dword [edi + 0x34]
test eax, eax
je 0x491f39
mov ebp, dword [esp + 0x4c]
cmp ebp, 0xffffffff
jne 0x491d04
mov eax, dword [edi + 0x324]
test eax, eax
je 0x491f39
cmp ebp, dword [edi + 0xe0]
jge 0x491f39
cmp ebp, 0xffffffff
jne 0x491d1d
lea ebp, [edi + 0x18c]
jmp 0x491d28
mov eax, dword [edi + 0xd8]
shl ebp, 9
add ebp, eax
push ebx
lea eax, [ebp + 0x1b4]
push esi
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
neg ecx
neg edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [edi + 8]
push ecx
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 + 0x24]
sub edx, ecx
mov esi, eax
mov eax, dword [esp + 0x28]
push edx
sub eax, dword [esp + 0x24]
push eax
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.004862a0
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 + 0xa8], 1
jne 0x491dca
lea ecx, [esp + 0x20]
push ecx
jmp 0x491ea9
lea ecx, [edi + 0x668]
call fcn.004523c0
test eax, eax
je 0x491e3d
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, eax
push 0
sub ecx, dword [edx]
push 0
push 0
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov edx, ecx
push 0
sub edx, dword [ebp + 0x1b8]
push 0
push 2
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x58]
sub eax, ecx
lea ecx, [esp + 0x5c]
push ecx
push esi
lea ecx, [edi + 0x668]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.004519e0
jmp 0x491eb1
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x491ea4
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [edi + 0xd4]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [ebp + 0x1b8]
sub ecx, edx
mov edx, dword [esp + 0x34]
add ecx, edx
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0xd4]
push eax
push edx
push esi
call fcn.00480b90
jmp 0x491eb1
lea eax, [esp + 0x20]
push eax
push esi
mov ecx, edi
call fcn.00491bd0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
mov ecx, edi
call fcn.00490b60
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 + 0x2c]
push esi
push eax
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [ebp + 0x1b8]
push ecx
mov ecx, dword [eax]
push edx
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 ebx
pop edi
pop ebp
add esp, 0x40
ret 4