Function at 0x1086e0e
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x82c], eax
mov eax, dword [0x10c685c]
xor edi, edi
mov dword [ebp - 0x828], edi
test eax, eax
jbe 0x1087081
mov ebx, dword [0x10c6868]
mov ecx, ebx
cmp dword [ecx], esi
je 0x1086e68
inc edi
add ecx, 0x210
mov dword [ebp - 0x828], edi
cmp edi, eax
jb 0x1086e53
cmp edi, eax
jae 0x1087081
mov esi, 0x104
push esi
lea eax, [ebp - 0x824]
push 0
push eax
call sub.msvcrt.dll_memset
imul edi, edi, 0x210
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
xor eax, eax
push eax
push eax
push dword [edi + ebx + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x824]
push eax
call ebx
mov eax, dword [ebp + 0xc]
and eax, 0x28
cmp al, 0x28
jne 0x1086f03
push esi
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x102f1f0
call sub.SHELL32.dll_SHGetFolderPathEx
test eax, eax
jl 0x1086ff0
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x1030060
call ebx
test eax, eax
je 0x1086ff0
push dword [0x10d1160]
call ebx
test eax, eax
je 0x1086ff0
mov eax, dword [0x10c6868]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x10301cc
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
cmp byte [ebp + 0x10], 0
je 0x108700d
mov eax, dword [0x10c6868]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x10301c0
lea eax, [ebp - 0x414]
push esi
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [0x10c6868]
add eax, edi
add esp, 0x18
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x108700d
mov eax, dword [0x10c6868]
push 1
add eax, edi
lea ecx, [ebp - 0x414]
push ecx
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x108700d
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [0x10c6868]
lea eax, [edi + eax + 8]
push eax
push 0x1030160
push 0x1030150
push 0xc5
push 0x80
call fcn.0109642f
add esp, 0x18
jmp 0x1086ff9
lea eax, [ebp - 0x20c]
push eax
call ebx
push dword [ebp - 0x828]
mov ecx, 0x10c685c
call fcn.01086dc0
xor eax, eax
jmp 0x1087087
mov eax, dword [0x10c6868]
add eax, edi
push 1
add eax, 8
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1087068
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [0x10c6868]
lea eax, [edi + eax + 8]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x10300f0
push 0x1030150
push 0xcf
push 0x80
call fcn.0109642f
add esp, 0x18
and dword [ebp - 0x82c], 0
push dword [ebp - 0x828]
mov ecx, 0x10c685c
call fcn.01086dc0
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [ebp - 0x82c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 0xc