Function at 0x1003c3e0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a7070]
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 esi, edx
test ecx, ecx
je 0x1003c614
cmp word [ecx], 0
je 0x1003c614
test esi, esi
je 0x1003c614
cmp word [esi], 0
je 0x1003c614
push ecx
lea ecx, [ebp - 0x30]
call fcn.10018a60
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10018a60
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003c466
mov esi, 0x80070002
jmp 0x1003c600
mov ecx, esi
call fcn.100267d0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1003c486
xor esi, esi
jmp 0x1003c600
lea ecx, [ebp - 0x24]
call fcn.10018460
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, dword [ebp - 0x24]
mov ebx, 1
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x40
or eax, ecx
jge 0x1003c4c0
push 0x40
lea ecx, [ebp - 0x24]
call fcn.100195b0
mov esi, dword [ebp - 0x24]
push 0x40
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.10018bc0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.10019540
add eax, 0x10
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push 0x1009dbe8
push eax
call fcn.1002e260
mov edi, dword [ebp - 0x28]
add esp, 0xc
push 9
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1003c54d
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1003c54d
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003c546
or eax, 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
jmp 0x1003c5f0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10018a00
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x40
or ebx, eax
jge 0x1003c57d
push 0x40
lea ecx, [ebp - 0x24]
call fcn.100195b0
mov esi, dword [ebp - 0x24]
push 0x40
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.10018bc0
push esi
lea eax, [ebp - 0x28]
push 0x1009dbe8
push eax
call fcn.1002e260
mov esi, dword [ebp - 0x28]
add esp, 0xc
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1003c5d1
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push dword [ebp - 0x2c]
push esi
call eax
test eax, eax
je 0x1003c5d1
mov esi, 1
jmp 0x1003c5f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003c5e6
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmove esi, eax
lea ecx, [ebp - 0x28]
call fcn.10037a20
lea ecx, [ebp - 0x24]
call fcn.10018360
lea ecx, [ebp - 0x2c]
call fcn.10037a20
lea ecx, [ebp - 0x30]
call fcn.10037a20
mov eax, esi
jmp 0x1003c619
mov eax, 0x80004005
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.1004450b
mov esp, ebp
pop ebp
ret