Function at 0x47051a
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.004848d0
push 0xffffffffffffffff
push 0x4bb822
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.004840d0
push esi
lea eax, [ebp]
push edi
push eax
call fcn.004840d0
push 0x100
lea eax, [ebp + 0x1000]
push edi
push eax
call fcn.004840d0
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 0x4705cd
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.004841c7
add ebp, 0x1104
leave
ret 4
xor esi, esi
lea eax, [ebp + 0x1000]
push 0x80
push eax
call fcn.0044123f
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.004848fb
pop ecx
pop ecx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470624
inc esi
cmp esi, 0xa
jl 0x4705cf
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x800]
push eax
call fcn.0046fe85
test eax, eax
je 0x4705a6
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.0041cb8c
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.004701fd
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.0046ff92
pop ecx
pop ecx
test eax, eax
jne 0x4706a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, edi
jmp 0x4705a8
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0041cb3f
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.0041af66
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.0041af66
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.0041af66
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.0041af66
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.0041af66
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 0x47068e