Function at 0x1000cd50
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004600d
mov eax, dword fs:[0]
push eax
mov eax, 0x1750
call fcn.1001b540
mov eax, dword [0x1005d09c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x175c], esi
cmp dword [esi], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1740], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x174c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1758], eax
jne 0x1000cdb1
call fcn.1000db30
push edi
lea ecx, [ebp - 0x1754]
mov dword [ebp - 0x1754], 0
call fcn.1000b4e0
lea eax, [ebp - 0x1750]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x1750], 0
call fcn.1000d5c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1724], 0
call fcn.10006e00
mov ecx, eax
test ecx, ecx
je 0x1000d335
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1724], eax
push dword [ebp - 0x1750]
lea eax, [ebp - 0x1724]
mov byte [ebp - 4], 2
push dword [ebp - 0x1754]
push str._s_t_s
push eax
call fcn.10006d10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002c190
add esp, 0x1c
mov dword [ebp - 0x1748], 0
lea ecx, [ebp - 0x1748]
push dword [ebp - 0x1740]
call fcn.1000b4e0
push dword [ebp - 0x174c]
lea eax, [ebp - 0x1748]
mov byte [ebp - 4], 3
push 0x10049cb4
push eax
call fcn.1000c5e0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x1748]
push dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10], 0
jne 0x1000cebd
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
call fcn.10006e00
mov ecx, eax
test ecx, ecx
je 0x1000d33f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1740], esi
push 0x800
lea eax, [ebp - 0x1720]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.1002c190
push 0x800
lea eax, [ebp - 0xf20]
push 0
push eax
call fcn.1002c190
add esp, 0x18
lea eax, [ebp - 0x1720]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x51e]
push 0
push eax
call fcn.1002c190
add esp, 0xc
xor edi, edi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x520], ax
lea eax, [ebp - 0x1734]
push eax
movups xmmword [ebp - 0x1734], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x720]
push 0
push eax
call fcn.1002c190
movzx eax, byte [ebp - 0x1725]
push eax
movzx eax, byte [ebp - 0x1726]
push eax
movzx eax, byte [ebp - 0x1727]
push eax
movzx eax, byte [ebp - 0x1728]
push eax
movzx eax, byte [ebp - 0x1729]
push eax
movzx eax, byte [ebp - 0x172a]
push eax
movzx eax, byte [ebp - 0x172b]
push eax
movzx eax, byte [ebp - 0x172c]
push eax
movzx eax, word [ebp - 0x172e]
push eax
movzx eax, word [ebp - 0x1730]
push eax
push dword [ebp - 0x1734]
lea eax, [ebp - 0x720]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.1000afd0
lea eax, [ebp - 0x720]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cfe0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x520]
push 0x80
push eax
call fcn.10031850
add esp, 0x10
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x1720]
push eax
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xf20]
push 0x400
push eax
call fcn.1003170e
add esp, 0xc
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d05c
inc edi
cmp edi, 0xa
jl 0x1000cf33
jmp 0x1000d08d
lea ecx, [ebp - 0xf20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d065
sub ecx, edx
lea eax, [ebp - 0xf20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1740]
call fcn.10007680
mov esi, dword [ebp - 0x1740]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1002c190
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x174c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x1738], 0
call fcn.10006e00
mov ecx, eax
test ecx, ecx
je 0x1000d349
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1744], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x1000d102
movzx eax, ax
lea ecx, [ebp - 0x1744]
push eax
call fcn.10007390
jmp 0x1000d132
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d110
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1744]
call fcn.10007680
push dword [ebp - 0x1758]
mov eax, dword [ebp - 0x175c]
mov byte [ebp - 4], 6
push dword [eax + 0x10]
lea eax, [ebp - 0x1738]
push 0x493e0
push eax
push 0
lea eax, [ebp - 0x1744]
push eax
lea eax, [ebp - 0x1724]
push eax
call fcn.10011970
mov edx, dword [ebp - 0x1744]
add esp, 0x1c
test eax, eax
mov byte [ebp - 4], 4
sete byte [ebp - 0x1739]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d196
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1739], 0
lea eax, [ebp - 0x420]
push eax
je 0x1000d1bb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1740], 0
jmp 0x1000d272
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d1db
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000d268
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002c190
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1005e66c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x174c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000d268
mov dword [ebp - 0x1740], eax
jmp 0x1000d272
mov dword [ebp - 0x1740], 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000d28d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1748]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d2ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1724]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d2cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1750]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d2f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1754]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000d312
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1740]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b500
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10006bd0
push 0x80004005
call fcn.10006bd0
push 0x80004005
call fcn.10006bd0
int3