Function at 0x4709ae
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1104]
mov eax, 0x1104
call fcn.00484d50
push 0xffffffffffffffff
push 0x4bbd4b
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x1100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x110c]
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp + 0x800]
push edi
push eax
mov dword [ebp - 0x14], ecx
call fcn.00484550
push esi
lea eax, [ebp]
push edi
push eax
call fcn.00484550
push 0x100
lea eax, [ebp + 0x1000]
push edi
push eax
call fcn.00484550
add esp, 0x24
push edi
push 0x1a
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x470a61
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1100]
xor ecx, ebp
call fcn.00484647
add ebp, 0x1104
leave
ret 4
xor esi, esi
lea eax, [ebp + 0x1000]
push 0x80
push eax
call fcn.004412a8
pop ecx
pop ecx
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x800]
push str..tmp
push eax
call fcn.00484d7b
pop ecx
pop ecx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470ab8
inc esi
cmp esi, 0xa
jl 0x470a63
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x800]
push eax
call fcn.00470319
test eax, eax
je 0x470a3a
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0040c8e0
push str.A44B7723_4283_41b8_B9C0_6B1983C61382.tmp
lea ecx, [ebp - 0x10]
call fcn.0041cbde
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00470691
push dword [ebp - 0x10]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x10]
lea eax, [ebp + 0x800]
push eax
call fcn.00470426
pop ecx
pop ecx
test eax, eax
jne 0x470b34
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, edi
jmp 0x470a3c
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0041cb91
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str._themesNewInstallAirNewInstallAir.ui
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041afb8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
push 4
pop ebx
push ebx
push edi
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
push str._themes_theme_NewInstallAir.xml
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041afb8
add esp, 0xc
push ebx
push edi
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
push str._themesNewInstallAir
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041afb8
add esp, 0xc
push ebx
push edi
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
push str._themes
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041afb8
add esp, 0xc
push ebx
push edi
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
push str._sites.dll
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041afb8
add esp, 0xc
push ebx
push edi
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
push ebx
push edi
push dword [ebp - 0x10]
call esi
xor edi, edi
inc edi
jmp 0x470b22