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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b346
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100ad708]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x1007f101
xor eax, eax
jmp 0x1007f2e6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007f10b
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x1007f0fa
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.10059fd0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10059fd0
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100838f0
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1007f190
mov eax, dword [esi]
movzx eax, word [eax]
push eax
call fcn.1006744f
movzx eax, ax
add esp, 4
cmp word [ebp - 0x420], ax
jne 0x1007f1bc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1007f20e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007f1c6
mov eax, dword [esi]
movzx eax, word [eax]
push eax
push str._c:.temp
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10043af0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1007f20e
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f234
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.100042a0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.1007f720
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.10003900
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
mov eax, esi
cmovae ecx, dword [ebp - 0x438]
cmp dword [esi + 0x14], 8
jb 0x1007f29f
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1007f2d7
cmp dword [esi + 0x14], 8
jb 0x1007f2b3
mov esi, dword [esi]
push esi
call edi
test eax, eax
lea eax, [ebp - 0x438]
je 0x1007f302
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.1007fd00
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x438]
call fcn.10003900
mov eax, esi
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.1002ef19
mov esp, ebp
pop ebp
ret
cmp ebx, eax
je 0x1007f328
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push dword [ebp - 0x428]
cmovae eax, dword [ebp - 0x438]
mov ecx, ebx
push eax
call fcn.100042a0
mov esi, 1
jmp 0x1007f2d9