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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421bae
jmp 0x421f40
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x421bc6
jmp 0x421f40
mov word [ebp - 0x23c], 0
push 0x206
push 0
lea edx, [ebp - 0x23a]
push edx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x44c], 0
push 0x206
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.0049e690
add esp, 0xc
push 0x595bfc
lea ecx, [ebp - 0x484]
call fcn.00401600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00420460
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00420650
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x468]
push ecx
call fcn.00420650
add esp, 8
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
call fcn.00422dc0
add esp, 4
lea eax, [ebp - 0x468]
push eax
call fcn.00422dc0
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.00419a10
add esp, 8
movzx eax, al
test eax, eax
je 0x421cb7
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x484]
call fcn.004036d0
jmp 0x421d01
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x4c4]
push eax
call fcn.00420730
add esp, 8
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4e8]
push edx
lea ecx, [ebp - 0x484]
call fcn.004036b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c4]
call fcn.00401640
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x488], 0
mov eax, 1
test eax, eax
je 0x421f13
mov dword [ebp - 0x48c], 1
push 0x595c00
lea ecx, [ebp - 0x4a8]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.004036b0
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x4a8]
call fcn.00403850
push str..del
lea ecx, [ebp - 0x4a8]
call fcn.00403850
cmp dword [ebp - 0x488], 0
jle 0x421dcc
mov eax, dword [ebp - 0x488]
cdq
push edx
push eax
lea eax, [ebp - 0x4e0]
push eax
call fcn.00428190
add esp, 0xc
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4f0]
push edx
lea ecx, [ebp - 0x4a8]
call fcn.00404020
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4e0]
call fcn.00401640
lea ecx, [ebp - 0x4a8]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421dfa
lea ecx, [ebp - 0x4a8]
call fcn.00401670
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
jne 0x421e70
cmp dword [ebp - 0x488], 0xa
jl 0x421e4d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a8]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.00401640
jmp 0x421f40
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a8]
call fcn.00401640
jmp 0x421d15
lea ecx, [ebp - 0x4a8]
call fcn.00401670
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a1b20
add esp, 8
lea ecx, [ebp - 0x4a8]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421eb4
push 5
push 0
lea ecx, [ebp - 0x4a8]
call fcn.00401670
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421ed0
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a8]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.00401640
jmp 0x421f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret