Function at 0x42086f
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], esi
push edi
mov edi, ecx
test esi, esi
jne 0x4208a9
test eax, eax
jne 0x4208a9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0041f21e
test eax, eax
jne 0x4208c3
neg esi
sbb esi, esi
and esi, 0x80070002
jmp 0x420c0f
test esi, esi
je 0x4209c6
cmp dword [ebp + 8], 0
je 0x4208dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call fcn.00420804
push 0x208
call fcn.00440dea
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4208f8
mov eax, 0x8007000e
jmp 0x420c11
push 0x104
mov edx, ebx
mov ecx, esi
call fcn.0041e9d5
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x420934
push eax
push ebx
push 0x402904
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0040c0e1
add esp, 0x14
jmp 0x420970
push dword [0x443fa4]
lea eax, [ebp - 0x214]
push ebx
push 0x4048b8
push 0x104
push eax
call fcn.0040c0e1
add esp, 0x14
lea eax, [ebp - 0x214]
inc dword [0x443fa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420970
test al, 0x10
je 0x420934
push ebx
call fcn.00440db7
pop ecx
push 1
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4209db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42099a
push 0x57
pop eax
test eax, eax
jle 0x4209a4
movzx eax, ax
or eax, 0x80070000
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x4048d8
push 0
call fcn.0041e83a
add esp, 0x14
mov eax, 0x80004005
jmp 0x420c11
mov ebx, 0x104
lea ecx, [ebp - 0x214]
push edi
mov edx, ebx
call fcn.0040c040
jmp 0x4209e0
mov ebx, 0x104
push 0x208
call fcn.00440dea
mov dword [ebp - 0x420], eax
pop ecx
test eax, eax
je 0x420b60
and dword [ebp - 0x424], 0
mov edi, 0x80004005
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x420b44
mov ecx, dword [ebp - 0x420]
call fcn.0041f239
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x428]
xor ecx, ecx
mov dword [0x443fa4], ecx
test eax, eax
je 0x420a5c
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push 0x402904
push ebx
push eax
call fcn.0040c0e1
add esp, 0x14
jmp 0x420aa3
mov esi, dword [ebp - 0x420]
push ecx
push esi
push 0x4048b8
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040c0e1
add esp, 0x14
lea eax, [ebp - 0x41c]
inc dword [0x443fa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420a9d
test al, 0x10
jne 0x420a9d
mov ecx, dword [0x443fa4]
jmp 0x420a62
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push eax
test esi, esi
je 0x420aee
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x420b44
mov ecx, esi
call fcn.0041f21e
test eax, eax
je 0x420ad8
push esi
push 0x404928
push 1
call fcn.0041e83a
add esp, 0xc
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x424], eax
jmp 0x420b1f
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x420b44
lea eax, [ebp - 0x214]
push eax
push 0x40496c
push 4
call fcn.0041e83a
add esp, 0xc
mov dword [ebp - 0x424], 1
lea ecx, [ebp - 0x41c]
call fcn.00421390
mov edi, eax
cmp edi, 0xd2af9
jne 0x420b44
push ecx
lea eax, [ebp - 0x41c]
dec edi
push eax
push 2
call fcn.0041f954
push dword [ebp - 0x420]
call fcn.00440db7
cmp dword [ebp - 0x424], 0
pop ecx
je 0x420b60
mov eax, edi
jmp 0x420c11
push 5
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x420bd3
test esi, esi
je 0x420b93
mov ecx, esi
call fcn.0041e9a3
test eax, eax
je 0x420b93
push esi
push 0x4049ac
push 2
call fcn.0041e83a
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x4049d0
push 2
call fcn.0041e83a
add esp, 0xc
cmp dword [ebp + 0x10], 0
push ecx
lea ecx, [ebp - 0x214]
push ecx
je 0x420bc5
push 8
call fcn.0041f954
mov eax, 0xd2af9
jmp 0x420c11
push 2
call fcn.0041f954
mov eax, 0xd2af8
jmp 0x420c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x420be4
push 0x57
pop esi
test esi, esi
jle 0x420bef
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420bf8
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x214]
push eax
push 0x404a00
push 2
call fcn.0041e83a
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 0xc