Function at 0x1000afb0
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101010ad
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.10008ae0
movzx eax, al
test eax, eax
je 0x1000aff1
xor eax, eax
jmp 0x1000b24d
mov ecx, dword [ebp + 8]
call fcn.10007150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b00b
xor eax, eax
jmp 0x1000b24d
lea ecx, [ebp - 0x424]
call fcn.10006720
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.1008e2a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x420]
push ecx
call fcn.100acddb
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.1000b4f0
mov word [ebp - 0x428], ax
movzx edx, word [ebp - 0x428]
push edx
call fcn.100ac87b
add esp, 4
mov word [ebp - 0x428], ax
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x420]
movzx eax, word [ebp - 0x428]
cmp edx, eax
jne 0x1000b0c1
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1000b117
push 0
mov ecx, dword [ebp + 8]
call fcn.1000b960
movzx edx, ax
push edx
push 0x1010fd68
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.1000bf20
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b117
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.10006670
mov byte [ebp - 4], 1
lea edx, [ebp - 0x424]
push edx
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.1000bb70
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.10006cb0
lea ecx, [ebp - 0x424]
call fcn.10007150
push eax
mov ecx, dword [ebp + 8]
call fcn.10007150
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1000b1bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.move__s_to__s__failed__error_d
call fcn.100440d0
add esp, 0x10
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.10006cb0
mov eax, dword [ebp - 0x430]
jmp 0x1000b24d
mov ecx, dword [ebp + 8]
call fcn.10007150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b208
lea ecx, [ebp - 0x424]
call fcn.10007150
push eax
call fcn.1000ad00
add esp, 4
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.10006cb0
mov eax, dword [ebp - 0x434]
jmp 0x1000b24d
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000b4d0
mov dword [ebp - 0x438], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.10006cb0
mov eax, dword [ebp - 0x438]
jmp 0x1000b24d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret