Function at 0x49f520
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
wait
cmp dword [esi + 0x24c], 0
jne 0x49f573
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x49f580
mov ecx, esi
call fcn.0049eb60
mov ecx, dword [esi + 0x24c]
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x49f5c0
cmp eax, 5
je 0x49f5c0
cmp dword [ecx + 0x354], 0
jne 0x49f5c0
mov edx, dword [ecx + 0x500]
mov eax, dword [ecx + 0x504]
test eax, eax
jl 0x49f5ee
jg 0x49f5b2
test edx, edx
jbe 0x49f5ee
mov dword [esi + 0x230], edx
mov dword [esi + 0x234], eax
jmp 0x49f610
fldz
fcomp qword [ecx + 0x3d8]
fnstsw ax
test ah, 5
jp 0x49f5ee
fld qword [ecx + 0x3d8]
fmul qword [0x687b30]
call fcn.006224d6
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jmp 0x49f610
mov eax, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x114]
test ecx, ecx
jl 0x49f610
jg 0x49f604
test eax, eax
jbe 0x49f610
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], ecx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [ebp + 0xc], edi
mov eax, dword [esi + 0x248]
test eax, eax
je 0x49f63c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x2c]
push ecx
mov edx, dword [esi + 0x28]
add edx, 2
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x248], eax
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
mov dword [ebp - 0x20], eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esi + 0x244]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
push ebx
mov ecx, dword [esi + 0x2c]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
push 0
push ebx
mov eax, dword [esi + 0x2c]
push eax
push 1
push 0
mov ecx, dword [esi + 0x28]
inc ecx
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x14]
push eax
push ebx
call edi
mov ecx, dword [esi + 0x238]
push ecx
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2c]
push 0xcc0020
push eax
push 1
push 0
push 0
push ebx
push eax
mov edx, dword [esi + 0x28]
push edx
push 0
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
call edi
mov edx, dword [esi + 0x230]
or edx, dword [esi + 0x234]
je 0x49f7e6
mov eax, dword [esi + 0x240]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov edi, dword [esi + 0x250]
lea esp, [esp]
test edi, edi
je 0x49f7d5
mov ecx, dword [esi + 0x230]
mov dword [ebp - 0x28], ecx
mov edx, dword [esi + 0x234]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x28]
cdq
mov ecx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push ecx
push edx
push eax
call fcn.00624b80
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fild qword [ebp - 0x28]
fdivp st(1)
call fcn.006224a0
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
cmp edx, eax
jl 0x49f77f
jg 0x49f776
mov ecx, dword [edi + 8]
cmp ecx, dword [ebp - 0x28]
jbe 0x49f77f
mov edx, dword [ebp - 0x28]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x28]
cdq
mov ecx, dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 8]
push ecx
push edx
push eax
call fcn.00624b80
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fild qword [esi + 0x230]
fdivp st(1)
call fcn.006224a0
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [esi + 0x2c]
push 0xcc0020
push ecx
push 1
push 0
push 0
push ebx
push ecx
push eax
push 0
inc edx
push edx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [edi + 0x10]
jmp 0x49f720
mov eax, dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call edi
mov eax, dword [ebp + 0xc]
push eax
call ebx
cmp dword [ebp + 8], 0
je 0x49f810
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0049e350
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8