Function at 0x40113c
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and byte [ebp - 0x114], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
and byte [ebp - 0x218], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x218]
push str.setup.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00401021
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ArSwp.dll
push eax
call fcn.00405980
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call edi
push 1
test eax, eax
pop ebx
je 0x40120a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.Ar.lib
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
je 0x401241
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.At.lib
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
je 0x401278
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.As.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
je 0x4012af
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.et.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
je 0x4012e6
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
je 0x4015a6
lea eax, [ebp - 0x218]
mov dword [0x40ecfc], 1
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ArSwp.dll
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ar.lib
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.at.lib
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.set.ini
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.readme.txt
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.file.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.user.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4014f4
lea eax, [ebp - 0x114]
push 0x40e118
push eax
mov dword [ebp - 8], 1
call fcn.00405c39
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x4014e1
and dword [ebp - 0xc], 0
push eax
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.00405b31
add esp, 0x10
cmp dword [ebp - 0xc], 0x464f4841
jne 0x4014d2
and dword [ebp - 8], 0
push dword [ebp - 0x10]
call fcn.00405adb
cmp dword [ebp - 8], 0
pop ecx
je 0x4014f4
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.logohome.ini
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.logologo.bmp
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.logo
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push 0x40e0e0
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ex.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.as.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.et.dat
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ArSwp.exe
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4016cf
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401700
lea eax, [ebp - 0x114]
push eax
call esi
test eax, eax
jne 0x401700
push 0x40
push 0x40e0b4
push 0x40e044
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 4], 0
je 0x401740
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00405970
lea eax, [ebp - 0x114]
push str.ArSwp.dll
push eax
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret