Function at 0x490630
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625e50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 0x490683
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 0x490690
mov ecx, esi
call fcn.0048fca0
mov ecx, dword [esi + 0x24c]
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x4906d0
cmp eax, 5
je 0x4906d0
cmp dword [ecx + 0x330], 0
jne 0x4906d0
mov edx, dword [ecx + 0x4c8]
mov eax, dword [ecx + 0x4cc]
test eax, eax
jl 0x4906fe
jg 0x4906c2
test edx, edx
jbe 0x4906fe
mov dword [esi + 0x230], edx
mov dword [esi + 0x234], eax
jmp 0x490720
fldz
fcomp qword [ecx + 0x3b0]
fnstsw ax
test ah, 5
jp 0x4906fe
fld qword [ecx + 0x3b0]
fmul qword [0x65d2f8]
call fcn.005fa886
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jmp 0x490720
mov eax, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x114]
test ecx, ecx
jl 0x490720
jg 0x490714
test eax, eax
jbe 0x490720
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 0x49074c
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 0x4908f6
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 0x4908e5
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.005fd4d0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fild qword [ebp - 0x28]
fdivp st(1)
call fcn.005fa850
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
cmp edx, eax
jl 0x49088f
jg 0x490886
mov ecx, dword [edi + 8]
cmp ecx, dword [ebp - 0x28]
jbe 0x49088f
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.005fd4d0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fild qword [esi + 0x230]
fdivp st(1)
call fcn.005fa850
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 0x490830
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 0x490920
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0048f4a0
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