Function at 0x498a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6754d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xe8]
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x498ada
lea ebx, [eax + 1]
jmp 0x498bde
push dword [edi + 0xe8]
call fcn.004e81f0
add esp, 4
test eax, eax
jne 0x498af4
lea ebx, [eax + 2]
jmp 0x498bde
mov eax, dword [0x758f88]
test eax, eax
jne 0x498b56
push 0x74c128
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x758f88], ebx
jne 0x498b46
push 0x320
call fcn.00669e77
add esp, 4
mov dword [ebp - 0x24c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042ccb0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x24c], eax
mov dword [0x758f88], ecx
push 0x74c128
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x758f88]
mov eax, dword [eax + 0x34]
sub eax, 0x10
push eax
call fcn.00441300
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x250], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [edi + 0xe8]
call fcn.0051c5b0
add esp, 0xc
test eax, eax
je 0x498bc3
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x498bc3
mov ebx, 3
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x498bde
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x498d41
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0042a9a0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x230]
push 3
push 0x6d1880
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
mov byte [ebp - 4], 3
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x2e8]
push 0x189
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042c590
mov esi, eax
push str.recheck_download_file_errno_:
push esi
mov byte [ebp - 4], 4
call fcn.0042c400
add esp, 8
mov ecx, esi
push ebx
call fcn.00439f10
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e8]
call fcn.00428ee0
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x498cea
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498ce0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498ce0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x498d41
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498d37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498d37
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret