Function at 0x418290
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x412
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x454]
push 0
push eax
call fcn.0043fa60
xor eax, eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
push esi
push edi
mov dword [ebp - 4], eax
call fcn.00445461
add esp, 0x14
test eax, eax
je 0x4184a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41840a
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
cmp dword [ebp - 0x470], 0
je 0x41836b
push 0x30
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.00418100
add esp, 4
test eax, eax
je 0x41836b
push dword [ebp - 0x470]
lea eax, [ebp - 0x40]
push eax
call fcn.0044751b
add esp, 8
test eax, eax
je 0x4184a5
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4184a5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41840a
push esi
lea eax, [ebp - 0x454]
push 0x209
push eax
call fcn.004464ed
add esp, 0xc
lea ecx, [ebp - 0x46c]
call fcn.00418060
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x458], 8
lea eax, [ebp - 0x46c]
cmovae eax, dword [ebp - 0x46c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41840a
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41840a
push 4
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4184a5
push esi
lea eax, [ebp - 0x454]
push 0x209
push eax
call fcn.004464ed
add esp, 0xc
lea ecx, [ebp - 0x46c]
call fcn.00418060
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x458], 8
lea eax, [ebp - 0x46c]
cmovae eax, dword [ebp - 0x46c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x454]
push eax
push edi
call ebx
test eax, eax
jne 0x41847b
xor esi, esi
jmp 0x4184aa
push esi
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4184a5
push 4
push esi
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4184a5
xor esi, esi
jmp 0x4184aa
mov esi, 1
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x4184e6
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4184dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418504
push edx
push ecx
call fcn.0043dbf3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
call fcn.004420bc
int3