Function at 0x455040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff3d6
mov eax, dword fs:[0]
push eax
mov eax, 0x18b4
call fcn.004d2490
mov eax, dword [0x53f084]
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.004554f0
push eax
push ebx
call dword [esi + 0xc]
test eax, eax
js 0x455166
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 0x455135
cmp word [esi], 0
je 0x455135
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4550e9
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x455135
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 0x455135
lea eax, [ebp - 0x187c]
mov ecx, edi
push eax
call fcn.004050e0
mov ecx, dword [ebp - 0x18a4]
lea eax, [ebp - 0x187c]
push eax
call fcn.004050e0
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 0x455160
mov al, 1
jmp 0x455285
mov ebx, dword [ebp - 0x18a0]
mov esi, dword [ebx]
lea eax, [ebp - 0x18b8]
push eax
call fcn.004555b0
push eax
push ebx
call dword [esi + 0xc]
test eax, eax
js 0x455283
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 0x455262
cmp byte [esi], bl
je 0x455262
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4551d5
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
je 0x455262
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 0x455262
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 0x455210
sub ecx, edx
lea edx, [ebp - 0x18ac]
mov dword [ebp - 0x18a8], ecx
lea ecx, [ebp - 0x1894]
call fcn.004114f0
push eax
mov ecx, edi
call fcn.00403f90
lea ecx, [ebp - 0x1894]
call fcn.00405080
mov ecx, dword [ebp - 0x18a4]
cmp ecx, edi
je 0x455260
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x455257
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00405110
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 0x455159
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.004d170a
mov esp, ebp
pop ebp
ret