Function at 0x7cf7cc4b
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0x218]
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
call fcn.7cf7b001
test eax, eax
je 0x7cf7cc8a
mov eax, 0x4c7
jmp 0x7cf7cf2a
test byte [esi + 0xd], 8
push edi
push ebx
push 1
pop ebx
jne 0x7cf7ccf7
push 0x4000001b
call sym.SHELL32.dll_SHRestricted
test eax, eax
je 0x7cf7ccf7
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
push eax
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
push 7
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x7cf7ccf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x7cf7ccf7
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x7cf7ccf7
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 7
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x7cf7ccf7
mov dword [ebp - 0x10], ebx
cmp dword [0x7d04ce40], 0
je 0x7cf7cd38
mov eax, dword [esi + 0x50]
cmp dword [eax + 4], ebx
jne 0x7cf7cd38
cmp dword [0x7d04c784], 0
jne 0x7cf7cd35
push 0x7cf32f28
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x7cf7cd38
push 0x7cf32f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x7d04c784], eax
je 0x7cf7cd38
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
mov dword [esi + 0x500], ebx
mov dword [esi + 0x504], eax
push esi
call fcn.7cf7c3df
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x7cf7cd79
xor ecx, ecx
cmp dword [ebp + 0x18], eax
setne cl
or ecx, 2
push ecx
push esi
push 0x7cf7cb10
push edi
push dword [ebp + 0xc]
call dword [0x7d04c784]
jmp 0x7cf7cd96
xor ecx, ecx
cmp dword [ebp + 0x18], eax
lea eax, [esi + 0x28]
sete cl
push ecx
push eax
push esi
push 0x7cf7cb10
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x7cf7ce79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp + 8], eax
jne 0x7cf7cdc1
push edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrCmpCW]
test eax, eax
jne 0x7cf7cdc1
mov dword [ebp + 8], 0x50
mov eax, dword [ebp + 8]
sub eax, 3
je 0x7cf7ce04
dec eax
dec eax
je 0x7cf7cf2f
sub eax, 0x4b
je 0x7cf7ce2b
sub eax, 0x20
jne 0x7cf7ce26
mov ax, word [edi]
push 0
dec eax
and eax, 0x1f
push eax
call sym.SHELL32.dll_RealDriveType
cmp eax, 2
jne 0x7cf7ce55
push dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x7cf7ce55
mov dword [ebp + 8], 0x70
cmp dword [ebp - 0x14], 0
jne 0x7cf7ce55
mov eax, dword [ebp + 0x14]
push dword [eax + 0x20]
push dword [ebp + 8]
push edi
push esi
call fcn.7cf7d3f2
test eax, eax
jne 0x7cf7ce46
mov dword [ebp - 0x14], ebx
jmp 0x7cf7cd3b
sub eax, 0x47
jne 0x7cf7ce55
push 0x50
pop esi
jmp 0x7cf7cf0c
mov dword [ebp + 8], 0x81
jmp 0x7cf7ce55
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7cf7ce55
push 0x300
or eax, 0x10000
push 2
push eax
jmp 0x7cf7ce65
cmp dword [esi + 0x28], 0
jne 0x7cf7ce6f
push 0x300
push 2
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.7cf7d1ad
mov esi, 0x4c7
jmp 0x7cf7cf0c
push 0x4000001b
call sym.SHELL32.dll_SHRestricted
test eax, eax
je 0x7cf7ce99
cmp dword [ebp - 0x10], 0
je 0x7cf7ce99
push dword [ebp - 4]
push 7
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
push 0
push edi
push 5
push 2
call sym.SHELL32.dll_SHChangeNotify
mov eax, dword [esi + 0x50]
cmp dword [eax + 4], ebx
jne 0x7cf7cf0a
push dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x7cf7ced0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7cf7cf0c
push esi
push dword [ebp + 0xc]
push 5
push 4
call sym.SHELL32.dll_SHChangeNotify
jmp 0x7cf7cf0c
call sym.SHELL32.dll_Win32DeleteFile
test eax, eax
jne 0x7cf7cee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x7cf7cf0c
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call sym.SHELL32.dll_Win32DeleteFile
test eax, eax
jne 0x7cf7cf0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x7cf7cf0c
xor esi, esi
cmp dword [ebp - 4], 0
je 0x7cf7cf26
lea eax, [ebp - 0x218]
cmp eax, dword [ebp - 4]
je 0x7cf7cf26
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret 0x14
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov edx, eax
push edi
mov dword [ebp + 0x10], edx
call ebx
mov ecx, dword [ebp + 0x10]
add ecx, eax
cmp ecx, 0x104
jge 0x7cf7ce33
cmp dword [ebp - 0x18], 0
jne 0x7cf7ce55
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7cf7ce3c
and al, 0xf8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x7cf7ce3c
push 1
pop ebx
mov dword [ebp - 0x18], ebx
jmp 0x7cf7cd3b