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

Disassembly:
push 0x29c
mov eax, 0x4f9ce4
call fcn.0041c61c
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x42a40b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42a40b
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0048faf0
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push ebx
push 0x501100
call fcn.004078c0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2a8]
push esi
push eax
call fcn.0042a706
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.0042a8f6
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042a8f6
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.0042780b
lea eax, [ebp - 0x260]
push eax
call fcn.0042780b
add esp, 0x20
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x260]
push eax
call fcn.00422120
test eax, eax
jne 0x42a22f
cmp word [ebp - 0x218], ax
jne 0x42a20d
mov eax, ebx
jmp 0x42a21a
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004078c0
jmp 0x42a258
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.0042a838
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040b570
push ebx
lea ecx, [ebp - 0x290]
push 1
call fcn.0040e4d0
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x501100
mov word [ebp - 0x230], ax
call fcn.004078c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.004077a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e540
push str..del
call fcn.00497313
pop ecx
push eax
push str..del
lea ecx, [ebp - 0x230]
call fcn.0040e650
test ebx, ebx
jle 0x42a30e
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0042a5c3
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0040e540
push 0
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.0040e4d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x42a35e
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 0x42a35e
cmp ebx, 0xa
jge 0x42a3c5
inc ebx
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x230]
jmp 0x42a251
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.004a4b6b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42a3b7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call ebx
push esi
call edi
test eax, eax
je 0x42a3c5
push 5
push 0
push esi
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x230]
xor esi, esi
push ebx
inc esi
push esi
call fcn.0040e4d0
push ebx
push esi
lea ecx, [ebp - 0x260]
call fcn.0040e4d0
push ebx
push esi
lea ecx, [ebp - 0x278]
call fcn.0040e4d0
push ebx
push esi
lea ecx, [ebp - 0x2a8]
call fcn.0040e4d0
push ebx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040e4d0
call fcn.0041c5d7
ret