Function at 0x40ec50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4597a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
je 0x40ee2a
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x68]
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x40edf5
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x464d1c
call fcn.00409310
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x14], esp
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x40ece4
cmp ecx, dword [esi - 0x10]
jne 0x40ece4
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x40ed0e
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40ee3e
mov eax, dword [esi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00409570
add esp, 8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
lea ecx, [ebp - 0x10]
mov dword [edx], eax
mov byte [ebp - 4], 0
call fcn.004205b0
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40edf2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.QQLiveMPlayer
call fcn.00409310
mov byte [ebp - 4], 2
push ecx
mov dword [ebp - 0x14], esp
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x40ed71
cmp ecx, dword [esi - 0x10]
jne 0x40ed71
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x40ed9b
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40ee43
mov eax, dword [esi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00409570
add esp, 8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
lea ecx, [ebp - 0x10]
mov dword [edx], eax
mov byte [ebp - 4], 0
call fcn.004205b0
lea eax, [ebp - 0x10]
mov edx, str._S__D
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ee50
add esp, 0xc
mov ecx, edi
push 0
push dword [eax]
push dword [edi + 0x34]
call fcn.0040e320
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40edf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40edf7
or ebx, 0xffffffff
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ee16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004096f0
call fcn.004096f0
int3