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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e9b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x410
mov esi, ecx
push eax
lea ecx, [ebp - 0x452]
push ecx
mov ebx, edx
mov word [ebp - 0x454], ax
call fcn.00442420
xor eax, eax
xor edx, edx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], eax
mov word [ebp - 0x470], dx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0043ebaf
add esp, 0x14
test eax, eax
jne 0x417259
cmp dword [ebp - 0x45c], 8
jb 0x417451
mov eax, dword [ebp - 0x470]
push eax
call fcn.0043e7d7
add esp, 4
jmp 0x417451
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417364
push 0x2f
lea ecx, [ebp - 0x3f]
push 0
push ecx
mov byte [ebp - 0x40], 0
call fcn.00442420
add esp, 0xc
test ebx, ebx
je 0x4172a9
lea edx, [ebp - 0x40]
push 0x30
push edx
mov ecx, esi
call fcn.00417030
add esp, 8
test eax, eax
je 0x4172a9
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00440722
add esp, 8
test eax, eax
je 0x417446
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4172d8
cmp dword [ebp - 0x45c], 8
jb 0x417451
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.0043e7d7
add esp, 4
jmp 0x417451
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x417364
push esi
lea edx, [ebp - 0x454]
push 0x209
push edx
call fcn.0043f983
add esp, 0xc
lea ecx, [ebp - 0x470]
call fcn.00416f80
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x45c], 8
mov eax, dword [ebp - 0x470]
jae 0x417327
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x454]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x417364
lea eax, [ebp - 0x454]
push eax
call ebx
test eax, eax
jne 0x417364
push 4
push eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push esi
push edi
call ebx
test eax, eax
je 0x417395
cmp dword [ebp - 0x45c], 8
jb 0x417451
mov edx, dword [ebp - 0x470]
push edx
call fcn.0043e7d7
add esp, 4
jmp 0x417451
push esi
lea eax, [ebp - 0x454]
push 0x209
push eax
call fcn.0043f983
add esp, 0xc
lea ecx, [ebp - 0x470]
call fcn.00416f80
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x45c], 8
mov eax, dword [ebp - 0x470]
jae 0x4173d7
lea eax, [ebp - 0x470]
push eax
lea edx, [ebp - 0x454]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x454]
push eax
push edi
call ebx
test eax, eax
jne 0x417411
cmp dword [ebp - 0x45c], 8
jb 0x41740d
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.0043e7d7
add esp, 4
xor eax, eax
jmp 0x417456
push esi
lea edx, [ebp - 0x454]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x417446
push 4
push esi
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x417446
lea esi, [ebp - 0x470]
call fcn.00401410
xor eax, eax
jmp 0x417456
lea esi, [ebp - 0x470]
call fcn.00401410
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret