Function at 0x1002b9ee
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 [0x10084500]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], eax
push edi
je 0x1002bbfd
cmp byte [ebx], 0
je 0x1002bbfd
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002ba40
cmp dword [ebp + 0xc], esi
jne 0x1002ba47
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1002ba47
mov al, 1
jmp 0x1002bbff
push str.kernel32.dll
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x1002ba8c
push 0x1006f99c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1002ba7a
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 0x1002bbff
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x1002ba98
mov eax, dword [0x10083fc8]
push ebx
push eax
push dword [0x10083fc4]
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 [0x10083fc0]
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 0x1002bbf8
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 0x1002bbe0
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x1002bbce
push str._rename__r_n
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, esi
jne 0x1002bb7a
push str._rename__r_n
lea eax, [ebx + edi]
push 0x1006f360
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov eax, edi
jmp 0x1002bba5
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 fcn.100569d0
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 fcn.10056df0
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 0x1002bbff
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.100568ae
leave
ret