Function at 0x10001160
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1001b0f8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], eax
push edi
je 0x1000136f
cmp byte [ebx], 0
je 0x1000136f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100011b2
cmp dword [ebp + 0xc], esi
jne 0x100011b9
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100011b9
mov al, 1
jmp 0x10001371
push str.kernel32.dll
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x100011fe
push str.MoveFileExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100011ec
push 4
push dword [ebp + 0xc]
push ebx
call eax
test eax, eax
setne byte [ebp + 0xb]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp + 0xb]
test al, al
jne 0x10001371
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x1000120a
mov eax, dword [0x1001b008]
push ebx
push eax
push dword [0x1001b004]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x418], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [section..data]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x41c], ebx
je 0x1000136a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp - 0x418]
push esi
lea eax, [edi + eax + 0xa]
push eax
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x10001352
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x10001340
push str._rename__r_n
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, esi
jne 0x100012ec
push str._rename__r_n
lea eax, [ebx + edi]
push 0x10013364
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov eax, edi
jmp 0x10001317
push 0xa
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
inc esi
mov eax, ebx
sub eax, esi
add eax, edi
push eax
mov eax, dword [ebp - 0x418]
add eax, esi
push esi
push eax
call sub.msvcrt.dll_memmove
sub esi, ebx
add esp, 0xc
mov eax, esi
xor esi, esi
push dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
push ecx
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp - 0x418]
mov byte [ebp + 0xb], 1
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x41c]
push esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
jmp 0x10001371
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.100112e6
leave
ret