Function at 0x496f50
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640e10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
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 0x496fa3
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 0x496fb0
mov ecx, esi
call fcn.00496590
mov ecx, dword [esi + 0x24c]
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x496ff0
cmp eax, 5
je 0x496ff0
cmp dword [ecx + 0x340], 0
jne 0x496ff0
mov edx, dword [ecx + 0x4e8]
mov eax, dword [ecx + 0x4ec]
test eax, eax
jl 0x49701e
jg 0x496fe2
test edx, edx
jbe 0x49701e
mov dword [esi + 0x230], edx
mov dword [esi + 0x234], eax
jmp 0x497040
fldz
fcomp qword [ecx + 0x3c8]
fnstsw ax
test ah, 5
jp 0x49701e
fld qword [ecx + 0x3c8]
fmul qword [0x6796f0]
call fcn.006154d6
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jmp 0x497040
mov eax, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x114]
test ecx, ecx
jl 0x497040
jg 0x497034
test eax, eax
jbe 0x497040
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 0x49706c
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 0x497216
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 0x497205
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.00617ef0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fild qword [ebp - 0x28]
fdivp st(1)
call fcn.006154a0
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
cmp edx, eax
jl 0x4971af
jg 0x4971a6
mov ecx, dword [edi + 8]
cmp ecx, dword [ebp - 0x28]
jbe 0x4971af
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.00617ef0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fild qword [esi + 0x230]
fdivp st(1)
call fcn.006154a0
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 0x497150
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 0x497240
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00495d90
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