Function at 0x420b04
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 [0x4434f4]
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 0x420b3e
test eax, eax
jne 0x420b3e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0041f47f
test eax, eax
jne 0x420b58
neg esi
sbb esi, esi
and esi, 0x80070002
jmp 0x420ea4
test esi, esi
je 0x420c5b
cmp dword [ebp + 8], 0
je 0x420b72
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call fcn.00420a97
push 0x208
call fcn.0044183a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x420b8d
mov eax, 0x8007000e
jmp 0x420ea6
push 0x104
mov edx, ebx
mov ecx, esi
call fcn.0041ec19
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x420bc9
push eax
push ebx
push 0x4028f4
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
jmp 0x420c05
push dword [0x444fa4]
lea eax, [ebp - 0x214]
push ebx
push 0x4048a8
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
lea eax, [ebp - 0x214]
inc dword [0x444fa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420c05
test al, 0x10
je 0x420bc9
push ebx
call fcn.00441807
pop ecx
push 1
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x420c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420c2f
push 0x57
pop eax
test eax, eax
jle 0x420c39
movzx eax, ax
or eax, 0x80070000
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x4048c8
push 0
call fcn.0041ea5f
add esp, 0x14
mov eax, 0x80004005
jmp 0x420ea6
mov ebx, 0x104
lea ecx, [ebp - 0x214]
push edi
mov edx, ebx
call fcn.0041fb3c
jmp 0x420c75
mov ebx, 0x104
push 0x208
call fcn.0044183a
mov dword [ebp - 0x420], eax
pop ecx
test eax, eax
je 0x420df5
and dword [ebp - 0x424], 0
mov edi, 0x80004005
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x420dd9
mov ecx, dword [ebp - 0x420]
call fcn.0041f49a
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x428]
xor ecx, ecx
mov dword [0x444fa4], ecx
test eax, eax
je 0x420cf1
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push 0x4028f4
push ebx
push eax
call fcn.0040c0b5
add esp, 0x14
jmp 0x420d38
mov esi, dword [ebp - 0x420]
push ecx
push esi
push 0x4048a8
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040c0b5
add esp, 0x14
lea eax, [ebp - 0x41c]
inc dword [0x444fa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420d32
test al, 0x10
jne 0x420d32
mov ecx, dword [0x444fa4]
jmp 0x420cf7
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push eax
test esi, esi
je 0x420d83
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x420dd9
mov ecx, esi
call fcn.0041fb3c
test eax, eax
je 0x420d6d
push esi
push 0x404918
push 1
call fcn.0041ea5f
add esp, 0xc
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x424], eax
jmp 0x420db4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x420dd9
lea eax, [ebp - 0x214]
push eax
push 0x40495c
push 4
call fcn.0041ea5f
add esp, 0xc
mov dword [ebp - 0x424], 1
lea ecx, [ebp - 0x41c]
call fcn.00421652
mov edi, eax
cmp edi, 0xd2af9
jne 0x420dd9
push ecx
lea eax, [ebp - 0x41c]
dec edi
push eax
push 2
call fcn.0041fbd1
push dword [ebp - 0x420]
call fcn.00441807
cmp dword [ebp - 0x424], 0
pop ecx
je 0x420df5
mov eax, edi
jmp 0x420ea6
push 5
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x420e68
test esi, esi
je 0x420e28
mov ecx, esi
call fcn.0041ebe7
test eax, eax
je 0x420e28
push esi
push 0x40499c
push 2
call fcn.0041ea5f
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x4049c0
push 2
call fcn.0041fb3c
add esp, 0xc
cmp dword [ebp + 0x10], 0
push ecx
lea ecx, [ebp - 0x214]
push ecx
je 0x420e5a
push 8
call fcn.0041fbd1
mov eax, 0xd2af9
jmp 0x420ea6
push 2
call fcn.0041fbd1
mov eax, 0xd2af8
jmp 0x420ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x420e79
push 0x57
pop esi
test esi, esi
jle 0x420e84
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420e8d
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x214]
push eax
push 0x4049f0
push 2
call fcn.0041ea5f
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 0xc