Function at 0x1001fd64
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0x480
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x20
mov eax, 0x1017cd29
call fcn.1008546d
mov ebx, dword [ebp + 0x48c]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ffc4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
cmp eax, esi
jne 0x1001ffc4
mov edi, 0x206
push edi
lea eax, [ebp + 0x72]
push esi
push eax
mov word [ebp + 0x70], si
call fcn.10085bc0
push edi
lea eax, [ebp + 0x27a]
push esi
push eax
mov word [ebp + 0x278], si
call fcn.10085bc0
add esp, 0x18
mov edi, 0x101ebf0c
push edi
lea ecx, [ebp + 0x38]
call fcn.100015f0
lea eax, [ebp + 0x278]
push eax
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x70]
push eax
push ebx
call fcn.1001c9a8
lea eax, [ebp]
push ebx
push eax
call fcn.1001e5a7
lea eax, [ebp + 0x278]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.1001e5a7
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.1001de88
lea eax, [ebp + 0x1c]
push eax
call fcn.1001de88
add esp, 0x20
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.100075ec
test eax, eax
jne 0x1001fe62
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp + 0x38]
call fcn.10003610
jmp 0x1001fe8d
lea eax, [ebp + 0x54]
push ebx
push eax
call fcn.1001e626
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.10001d30
push esi
push 1
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 2
call fcn.100017c0
xor ebx, ebx
push edi
lea ecx, [ebp + 0x54]
call fcn.100015f0
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.10001d30
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
call fcn.10003640
push str..del
lea ecx, [ebp + 0x54]
call fcn.10003640
cmp ebx, esi
jle 0x1001fef8
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1001ef8a
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.10003be0
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.100017c0
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001ff04
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ff40
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001ff1b
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
jne 0x1001ff40
cmp ebx, 0xa
push esi
lea ecx, [ebp + 0x54]
jge 0x1001ff9d
push 1
inc ebx
mov byte [ebp - 4], 2
call fcn.100017c0
jmp 0x1001fe8f
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001ff4c
lea eax, [ebp + 0x58]
push eax
push dword [ebp - 0x10]
call fcn.1008925d
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
pop ecx
pop ecx
jae 0x1001ff63
lea eax, [ebp + 0x58]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
je 0x1001ff88
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001ff82
lea eax, [ebp + 0x58]
push 5
push esi
push eax
call edi
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1001ff99
push 5
push esi
push dword [ebp - 0x10]
call edi
push esi
lea ecx, [ebp + 0x54]
xor edi, edi
inc edi
push edi
call fcn.100017c0
push esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.100017c0
push esi
push edi
lea ecx, [ebp]
call fcn.100017c0
push esi
push edi
lea ecx, [ebp + 0x38]
call fcn.100017c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x480]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x484
leave
ret