Function at 0x529530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad3c6
mov eax, dword fs:[0]
push eax
mov eax, 0x18b4
call fcn.005514a0
mov eax, dword [0x60f074]
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, edx
mov ebx, ecx
mov dword [ebp - 0x18a0], ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebx]
mov dword [ebp - 0x18a4], eax
lea eax, [ebp - 0x18b8]
push eax
call fcn.005299e0
push eax
push ebx
call dword [esi + 0xc]
test eax, eax
js 0x529656
mov ebx, dword [ebp - 0x18b4]
push ebx
mov byte [ebp - 0x1895], 0
mov dword [ebp - 0x18ac], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov dword [ebp - 0x18a8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x529625
cmp word [esi], 0
je 0x529625
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5295d9
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x529625
push 0
lea eax, [ebp - 0x189c]
mov dword [ebp - 0x189c], 0x824
push eax
lea eax, [ebp - 0x187c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
test eax, eax
js 0x529625
lea eax, [ebp - 0x187c]
mov ecx, edi
push eax
call fcn.0040fa80
mov ecx, dword [ebp - 0x18a4]
lea eax, [ebp - 0x187c]
push eax
call fcn.0040fa80
mov byte [ebp - 0x1895], 1
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x18b8]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
cmp byte [ebp - 0x1895], 0
je 0x529650
mov al, 1
jmp 0x529775
mov ebx, dword [ebp - 0x18a0]
mov esi, dword [ebx]
lea eax, [ebp - 0x18b8]
push eax
call fcn.00529aa0
push eax
push ebx
call dword [esi + 0xc]
test eax, eax
js 0x529773
mov eax, dword [ebp - 0x18b4]
xor bl, bl
push eax
mov dword [ebp - 0x18a0], eax
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov dword [ebp - 0x18bc], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x529752
cmp byte [esi], bl
je 0x529752
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x5296c5
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
je 0x529752
push 0
lea eax, [ebp - 0x189c]
mov dword [ebp - 0x189c], 0x824
push eax
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathA]
test eax, eax
js 0x529752
lea eax, [ebp - 0x834]
mov ecx, eax
mov dword [ebp - 0x18ac], eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x529700
sub ecx, edx
lea edx, [ebp - 0x18ac]
mov dword [ebp - 0x18a8], ecx
lea ecx, [ebp - 0x1894]
call fcn.004713d0
push eax
mov ecx, edi
call fcn.00405a10
lea ecx, [ebp - 0x1894]
call fcn.00405c10
mov ecx, dword [ebp - 0x18a4]
cmp ecx, edi
je 0x529750
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x529747
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00405c70
mov bl, 1
push dword [ebp - 0x18a0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x18b8]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
test bl, bl
jne 0x529649
xor al, al
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.00550156
mov esp, ebp
pop ebp
ret