Function at 0x497c10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x44
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x497e8f
mov eax, dword [edi + 0x34]
test eax, eax
je 0x497e8f
mov ebp, dword [esp + 0x50]
cmp ebp, 0xffffffff
jne 0x497c44
mov eax, dword [edi + 0x32c]
test eax, eax
je 0x497e8f
cmp ebp, dword [edi + 0xe8]
jge 0x497e8f
cmp ebp, 0xffffffff
jne 0x497c5d
lea ebp, [edi + 0x194]
jmp 0x497c68
mov eax, dword [edi + 0xe0]
shl ebp, 9
add ebp, eax
push ebx
lea eax, [ebp + 0x1b4]
push esi
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x28]
push eax
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 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 + 0x30]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov esi, eax
mov eax, dword [esp + 0x2c]
push edx
sub eax, dword [esp + 0x28]
push eax
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.0048c250
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 + 0xb0], 1
jne 0x497d0a
lea ecx, [esp + 0x24]
push ecx
jmp 0x497dff
mov eax, dword [edi + 0xdc]
mov dword [esp + 0x14], 0
test eax, eax
je 0x497d7f
mov eax, dword [edi + 8]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [edi + 0xdc]
lea ecx, [esp + 0x44]
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 + 0x44]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [ebp + 0x1b8]
sub ecx, edx
mov edx, dword [esp + 0x38]
add ecx, edx
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 0xdc]
push eax
push edx
push esi
call fcn.00486b30
mov dword [esp + 0x14], 1
lea ecx, [edi + 0x670]
call fcn.00457bc0
test eax, eax
je 0x497df2
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 [esp + 0x10]
mov edx, eax
push 0
sub edx, dword [ecx]
mov ecx, dword [esp + 0x3c]
push 0
push 0
mov dword [esp + 0x50], edx
mov edx, ecx
sub edx, dword [ebp + 0x1b8]
push 0
push 0
push 0
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 2
push ecx
push esi
lea ecx, [edi + 0x670]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.004571e0
jmp 0x497e07
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x497e07
lea edx, [esp + 0x24]
push edx
push esi
mov ecx, edi
call fcn.00497b10
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, edi
call fcn.00496ab0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
sub edx, ecx
mov ecx, dword [ebp + 0x1b8]
push esi
push edx
mov edx, dword [esp + 0x38]
sub eax, edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov eax, dword [edx]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x1c]
push edx
push esi
call ebp
mov eax, dword [esp + 0x20]
push eax
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 ecx, dword [edi + 8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x44
ret 4