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

Disassembly:
push 0x2b4
mov eax, 0x59f279
call fcn.0045f202
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x45150b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45150b
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056f980
add esp, 0xc
lea ecx, [ebp - 0x278]
push 0x5a178c
call fcn.0040f6c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0044a4ff
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.0044a6ce
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0044a6ce
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 3
push eax
call fcn.0044d8a7
lea eax, [ebp - 0x290]
push eax
call fcn.0044d8a7
add esp, 0x20
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x290]
push eax
call fcn.0045008d
test al, al
je 0x45126d
lea eax, [ebp - 0x218]
push eax
call fcn.0057cf7b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.00411630
jmp 0x451293
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0044a61d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.0040cd20
lea ecx, [ebp - 0x230]
call fcn.004113b0
xor edi, edi
push 0x5a178c
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.0040cd00
cmp dword [ebp + 0xc], 0
push dword [ebp - 0x238]
je 0x451399
lea eax, [ebp - 0x260]
push eax
call fcn.0044ca9d
push eax
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 5
push eax
call fcn.0044d796
add esp, 0x10
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 6
jb 0x4512f9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004114b0
lea ecx, [ebp - 0x2c0]
call fcn.004113b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 4
call fcn.00411360
push 0x5a39e0
call fcn.0057cf7b
pop ecx
push eax
push 0x5a39e0
lea ecx, [ebp - 0x230]
call fcn.004114b0
lea eax, [ebp - 0x2c0]
push 3
push eax
call fcn.0044ca9d
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 7
push eax
call fcn.0044d796
add esp, 0x10
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 8
jb 0x45136e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004114b0
lea ecx, [ebp - 0x260]
call fcn.004113b0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.00411360
jmp 0x4513d5
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004114b0
push str..dfa
call fcn.0057cf7b
pop ecx
push eax
push str..dfa
lea ecx, [ebp - 0x230]
call fcn.004114b0
test edi, edi
jle 0x451419
mov eax, edi
cdq
push edx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004505e8
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 9
jb 0x4513fb
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004114b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 4
call fcn.004113b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x45146d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45146d
cmp edi, 0xa
jge 0x4514d4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
inc edi
call fcn.004113b0
jmp 0x451295
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.0057cb8b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4514c6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call edi
push esi
call ebx
test eax, eax
je 0x4514d4
push 5
push 0
push esi
call edi
lea ecx, [ebp - 0x230]
call fcn.004113b0
lea ecx, [ebp - 0x290]
call fcn.004113b0
lea ecx, [ebp - 0x2a8]
call fcn.004113b0
lea ecx, [ebp - 0x248]
call fcn.004113b0
lea ecx, [ebp - 0x278]
call fcn.004113b0
call fcn.0045f1bd
ret