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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061937
mov eax, dword fs:[0]
push eax
mov eax, 0x174c
call fcn.10021180
mov eax, dword [0x10081100]
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 - 0x1758], esi
cmp dword [esi], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1748], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x174c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1754], eax
jne 0x1000b711
call fcn.1000e5c0
push edi
lea ecx, [ebp - 0x1750]
mov dword [ebp - 0x1750], 0
call fcn.10009b90
mov dword [ebp - 4], 0
mov dword [ebp - 0x1724], 0
call fcn.10003d10
mov ecx, eax
test ecx, ecx
je 0x1000bbf0
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], 1
push 0x10066ec8
push eax
call fcn.10003c20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1003d850
add esp, 0x18
mov dword [ebp - 0x1744], 0
lea ecx, [ebp - 0x1744]
push dword [ebp - 0x1748]
call fcn.10009b90
push dword [ebp - 0x174c]
lea eax, [ebp - 0x1744]
mov byte [ebp - 4], 2
push 0x10066ed0
push eax
call fcn.1000ad80
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x1744]
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 0x1000b7fb
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
call fcn.10003d10
mov ecx, eax
test ecx, ecx
je 0x1000bbfa
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], 3
push 0
push eax
call fcn.1003d850
push 0x800
lea eax, [ebp - 0xf20]
push 0
push eax
call fcn.1003d850
add esp, 0x18
lea eax, [ebp - 0x1720]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x316]
push 0
push eax
call fcn.1003d850
add esp, 0xc
xor edi, edi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x318], 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.1003d850
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.10009440
lea eax, [ebp - 0x720]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b917
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x318]
push 0x80
push eax
call fcn.1004337e
add esp, 0x10
lea eax, [ebp - 0x318]
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.1004323c
add esp, 0xc
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b993
inc edi
cmp edi, 0xa
jl 0x1000b871
jmp 0x1000b9c8
lea ecx, [ebp - 0xf20]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b9a0
sub ecx, edx
lea eax, [ebp - 0xf20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1740]
call fcn.100106c0
mov esi, dword [ebp - 0x1740]
push 0x208
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.1003d850
add esp, 0xc
lea eax, [ebp - 0x520]
push dword [ebp - 0x174c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x520]
mov dword [ebp - 0x1738], 0
push eax
lea ecx, [ebp - 0x1748]
call fcn.10009b90
push dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1758]
mov byte [ebp - 4], 4
push dword [eax + 0x10]
lea eax, [ebp - 0x1738]
push 0x493e0
push eax
push 0
lea eax, [ebp - 0x1748]
push eax
lea eax, [ebp - 0x1724]
push eax
call fcn.10013eb0
mov edx, dword [ebp - 0x1748]
add esp, 0x1c
test eax, eax
mov byte [ebp - 4], 3
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 0x1000ba72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1739], 0
lea eax, [ebp - 0x520]
push eax
je 0x1000ba97
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1740], 0
jmp 0x1000bb4e
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000bab7
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x520]
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 0x1000bb44
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1003d850
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100839f0]
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 - 0x520]
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 0x1000bb44
mov dword [ebp - 0x1740], eax
jmp 0x1000bb4e
mov dword [ebp - 0x1740], 1
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000bb69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1744]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bb8a
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], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bbab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1750]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000bbcd
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.10021142
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10003ae0
push 0x80004005
call fcn.10003ae0
int3