Function at 0x7cf7ebef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsRootW]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x7cf7ec12
push 0x74
jmp 0x7cf7ed16
mov ebx, dword [ebp + 0x10]
push ebx
call esi
test eax, eax
je 0x7cf7ec26
mov eax, 0x10074
jmp 0x7cf7eeba
push edi
call fcn.7cf7df11
push edi
call fcn.7cf7c730
test eax, eax
je 0x7cf7ec53
mov eax, dword [ebp + 8]
push 0x300
mov ecx, dword [eax + 0x50]
push dword [ecx + 4]
push 0x77
push ebx
push edi
push eax
call fcn.7cf7d1ad
jmp 0x7cf7ed09
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
je 0x7cf7ee81
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, 0xb7
mov eax, dword [ebx]
and eax, 0x10
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.7cf9cee3
test eax, eax
je 0x7cf7ec89
and dword [ebp + 8], 0
jmp 0x7cf7ec92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 5
jne 0x7cf7eca8
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x7cf7eca8
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 3
jne 0x7cf7ecc2
push 0
push 3
push dword [ebp + 0x10]
push esi
call fcn.7cf7d3f2
test eax, eax
mov dword [ebp + 8], eax
je 0x7cf7ec6e
cmp dword [ebp + 8], 0x50
je 0x7cf7eccd
cmp dword [ebp + 8], edi
jne 0x7cf7ed1c
cmp dword [ebp + 0x1c], 0
jne 0x7cf7ed1c
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x300
push esi
call fcn.7cf7e08e
mov ecx, eax
dec ecx
je 0x7cf7ed1c
dec ecx
je 0x7cf7ed0d
dec ecx
dec ecx
jne 0x7cf7ed00
mov dword [ebp + 0x1c], 1
jmp 0x7cf7ec6e
sub ecx, 3
jne 0x7cf7eeba
push 7
jmp 0x7cf7ed16
mov dword [esi + 0x28], 1
push 2
pop eax
jmp 0x7cf7eeba
cmp dword [ebp + 8], 0
jne 0x7cf7edfb
push 4
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x7cf7edfb
push 0x40000045
call sym.SHELL32.dll_SHRestricted
test eax, eax
jne 0x7cf7edfb
mov eax, dword [ebx]
test al, 0x10
jne 0x7cf7edfb
mov edi, 0x4000
test edi, eax
jne 0x7cf7edfb
push 0x104
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7cf7edfb
test edi, eax
je 0x7cf7edfb
push 1
pop edi
push edi
push dword [ebp + 0x10]
call fcn.7cf9895e
test eax, eax
jne 0x7cf7edfb
push eax
push eax
push eax
push ebx
push dword [ebp + 0x10]
push 0x40000
push eax
push dword [esi]
lea eax, [esi + 0x18]
push eax
push esi
push dword [esi + 0x14]
call fcn.7cf7bff9
dec eax
dec eax
je 0x7cf7edf2
sub eax, 5
jne 0x7cf7edfb
mov eax, dword [ebx]
and eax, 0x10
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.7cf9cee3
test eax, eax
je 0x7cf7ede7
and dword [ebp + 8], 0
jmp 0x7cf7edfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x7cf7edfb
mov eax, dword [esi + 0x50]
mov dword [eax + 0x12], edi
mov dword [esi + 0x28], edi
xor ecx, ecx
cmp dword [ebp + 8], ecx
jne 0x7cf7eeb7
mov eax, dword [esi + 0x20]
cmp eax, ecx
je 0x7cf7ee2f
mov esi, dword [esi + 0x98]
cmp dword [esi + 8], ecx
jne 0x7cf7ee2f
cmp esi, ecx
je 0x7cf7ee22
test byte [esi + 0x30], 4
jne 0x7cf7ee2f
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.7cf7f942
push 0x7cf334d0
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7cf7eeb7
push 0x104
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push 0
push eax
push 5
push 0x2000
call sym.SHELL32.dll_SHChangeNotify
jmp 0x7cf7eeb7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x7cf7eea4
test byte [eax + 0x30], 4
je 0x7cf7eea4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7cf7eea4
and dword [ebp + 8], eax
jmp 0x7cf7eeb7
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
call fcn.7cf7ea6d
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x18