Function at 0x10107d80
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
sub esp, 0xc04
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebx
push esi
push edi
push 0x3fe
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x41e]
push 0
push ecx
mov word [esp + 0x424], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x82a]
push 0
push edx
mov word [esp + 0x830], 0
call sub.MSVCR80.dll_memset
lea esi, [ebx + 0x1c]
mov eax, esi
add esp, 0x24
lea edx, [eax + 2]
jmp 0x10107e00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10107e00
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
neg edi
jne 0x10107e46
push 0xea
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push esi
push ebx
push str._tcslen_m_tszRoot__0
jmp 0x10107fcf
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10107e50
cmp dword [ebx + 4], 0
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x10107eb0
cmp dword [ebx + 0x18], 0
je 0x10107e85
lea ecx, [esp + 0xc]
push ecx
push str._s_vss_amd64_vssvis_vsscom.exe
lea edx, [esp + 0x414]
push edx
jmp 0x10107e97
lea eax, [esp + 0xc]
push eax
push str._s_vss_amd64_vssxp_vsscom.exe
lea ecx, [esp + 0x414]
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push str._s_vsscom.exe
lea eax, [esp + 0x814]
push eax
jmp 0x10107f13
cmp dword [ebx + 8], 0
je 0x10107eca
lea ecx, [esp + 0xc]
push ecx
push str._s_vsswin32_vssvis_vss.dll
lea edx, [esp + 0x414]
push edx
jmp 0x10107efc
cmp dword [ebx + 0x10], 0
je 0x10107ee4
lea eax, [esp + 0xc]
push eax
push str._s_vsswin32_vssxp_vss.dll
lea ecx, [esp + 0x414]
push ecx
jmp 0x10107efc
cmp dword [ebx + 0xc], 0
je 0x10107f01
lea edx, [esp + 0xc]
push edx
push str._s_vsswin32_vss03_vss.dll
lea eax, [esp + 0x414]
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str._s_vss.dll
lea edx, [esp + 0x814]
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea eax, [esp + 0x40c]
push eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x10107f60
push 0x10e
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push esi
push ebx
push str.GetFileAttributes_tszSrc__INVALID_FILE_ATTRIBUTES
jmp 0x10107fcf
lea eax, [esp + 0x80c]
call fcn.101090c0
lea ecx, [esp + 0x80c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x10107f89
lea edx, [esp + 0x80c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x810]
push eax
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
jne 0x10107fdf
push 0x116
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push esi
push ebx
push str.CopyFile_tszSrc__tszDes__FALSE_
mov edx, dword [eax]
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov ecx, dword [esp + 0xc0c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010dc50
add esp, 0xc04
ret