Function at 0x409740
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x417a99
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4275b4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov eax, dword [0x4275b4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
xor ebx, ebx
cmp esi, ebx
je 0x4097b9
push eax
lea ecx, [esp + 0x10]
call fcn.00408d70
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x48], ebx
jne 0x4097c0
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x409977
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004092c0
mov eax, dword [esp + 0x1c]
push eax
push str.CQQMusicControl___GetDldCacheInfo_:_fileName__s
push str.QMControl.txt
mov byte [esp + 0x5c], 1
call dword [0x419350]
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp dword [eax - 0xc], ebx
jne 0x40981e
add eax, 0xfffffff0
mov byte [esp + 0x48], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409815
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
jmp 0x409795
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409230
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x58], 2
call fcn.00407da0
push str..tmp
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 3
call fcn.00407e70
add esp, 0x1c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x48], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40987a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x48], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40989f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4098d0
lea ecx, [esp + 0x18]
call fcn.004074a0
lea ecx, [esp + 0x14]
call fcn.004074a0
lea ecx, [esp + 0xc]
call fcn.004074a0
xor al, al
jmp 0x409977
mov dword [esp + 0x10], 0xffffffff
mov edx, dword [esp + 0x18]
push ebx
push 1
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 7
call fcn.00406550
test al, al
je 0x40994a
lea ecx, [esp + 0x20]
call dword [0x4191c8]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 8
call fcn.004065d0
test al, al
je 0x40993b
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00408ff0
mov eax, dword [eax]
add esp, 8
push eax
call dword [0x41932c]
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004074a0
mov bl, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 7
call dword [0x419208]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40995a
push eax
call dword [0x419078]
lea ecx, [esp + 0x18]
call fcn.004074a0
lea ecx, [esp + 0x14]
call fcn.004074a0
lea ecx, [esp + 0xc]
call fcn.004074a0
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041632e
add esp, 0x40
ret 8