Function at 0x416f00
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
mov eax, 0x2008
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2018]
push esi
mov esi, dword [esp + 0x2018]
mov ebx, ecx
mov dword [esp + 0xc], esi
test esi, esi
jne 0x416f3a
xor eax, eax
jmp 0x417182
push esi
call fcn.00416780
test eax, eax
je 0x416f56
push esi
mov ecx, ebp
call fcn.00409560
mov eax, 1
jmp 0x417182
push edi
push 0x1000
lea eax, [esp + 0x1018]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1014]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x1014]
push edx
mov ecx, ebx
call fcn.00416780
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x417018
lea ebx, [ebx]
lea eax, [esp + 0x14]
push eax
push 0
push 0x43a294
lea ecx, [esp + 0x1020]
push ecx
call edi
lea eax, [esp + 0x14]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x416fc0
mov edx, dword [str..exe]
mov ecx, dword [0x43a28c]
mov dword [eax], edx
mov dx, word [0x43a290]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416fa0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00409560
mov eax, dword [ebp]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417178
push 0x800
lea esi, [esp + 0x1018]
mov ecx, 0x23
call fcn.004167c0
add esp, 4
mov edx, esi
push edx
mov ecx, ebx
call fcn.00416780
test eax, eax
je 0x4170bc
nop
lea eax, [esp + 0x14]
push eax
push 0
push 0x43a294
lea ecx, [esp + 0x1020]
push ecx
call edi
lea eax, [esp + 0x14]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x417060
mov edx, dword [str..exe]
mov ecx, dword [0x43a28c]
mov dword [eax], edx
mov dx, word [0x43a290]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417040
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00409560
mov eax, dword [ebp]
mov edx, dword [esp + 0x10]
push 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417178
push 0x800
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x1014]
push ecx
mov ecx, ebx
call fcn.00416780
test eax, eax
je 0x41717f
push str.TEMP
lea edx, [esp + 0x1018]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x43a294
lea edx, [esp + 0x1020]
push edx
call edi
lea eax, [esp + 0x14]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x417120
mov ecx, dword [str..exe]
mov edx, dword [0x43a28c]
mov dword [eax], ecx
mov cx, word [0x43a290]
mov dword [eax + 4], edx
lea edx, [esp + 0x14]
push edx
mov word [eax + 8], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417100
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00409560
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41717f
mov eax, 1
jmp 0x417181
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2010]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434fc4
add esp, 0x2008
ret 8