Function at 0x4517f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
cmp dword [ebp + 8], 0
je 0x45183c
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x45183c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45183c
cmp dword [ebp + 0xc], 0
je 0x45183c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x451843
xor eax, eax
jmp 0x451ada
cmp dword [ebp + 0xc], 0
je 0x45186b
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x45186b
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45186b
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], 0
je 0x451ac6
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x451ac6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451ac6
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00413e80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.00452c70
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00402220
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
jmp 0x4518dc
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x64
jge 0x451a52
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x451904
mov dword [ebp - 0x24], 1
jmp 0x45190b
mov dword [ebp - 0x24], 0
mov cl, byte [ebp - 0x24]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x451927
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
push 1
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4519a4
cmp dword [ebp + 0x10], 0
je 0x4519a4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x45196b
mov dword [ebp - 0x2c], 1
jmp 0x451972
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0xe], cl
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x45198e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], 0
je 0x4519c2
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x4519c2
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4519c7
jmp 0x451a52
lea eax, [ebp - 0x94]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x4519e8
mov dword [ebp - 0x34], 1
jmp 0x4519ef
mov dword [ebp - 0x34], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0xf], al
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x451a0b
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._s._d
lea eax, [ebp - 0xac]
push eax
call fcn.0042f380
add esp, 0x10
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00404a80
lea ecx, [ebp - 0xac]
call fcn.00431070
jmp 0x4518d3
cmp dword [ebp + 0xc], 0
je 0x451a70
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x451a70
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451aa6
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00431070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431070
mov eax, dword [ebp - 0x64]
jmp 0x451ada
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00431070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00431070
jmp 0x451ad8
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x451ada
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc