Function at 0x40250f
Capabilities:
Check if file exists
Check os version
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
and dword [ebp - 4], 0
and dword [ebp - 0x118], 0
and dword [ebp - 8], 0
and dword [ebp - 0x11c], 0
or dword [ebp - 0x114], 0xffffffff
cmp dword [0x41252c], 5
je 0x40255c
cmp dword [0x41252c], 6
je 0x40255c
mov dword [0x412528], 0x9c
push 0x412528
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41252c], 5
jne 0x40256e
mov dword [ebp - 4], str.C:Documents_and_Settings_
jmp 0x402575
mov dword [ebp - 4], str.C:Users_
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Infotmp.txt
push dword [ebp - 4]
push str._s_s
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x4025ba
mov dword [ebp - 0x118], 2
jmp 0x4025c4
mov dword [ebp - 0x118], 3
push 0
push 0x80
push dword [ebp - 0x118]
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x40264b
cmp dword [ebp + 0xc], 4
jne 0x402637
push 0x1c8
push 0
push 0x412528
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [0x4125c8], 0
push 1
push 0
push 0
call fcn.00402a4f
mov dword [0x412528], 0x9c
push 0x412528
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x11c], 2
jmp 0x4027b0
cmp dword [ebp + 8], 0
je 0x4026f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xf
jne 0x402677
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp eax, 0x3a43
jne 0x402677
mov dword [ebp + 0xc], 3
mov eax, dword [ebp + 0xc]
mov dword [0x4125c8], eax
push dword [ebp + 8]
push 0x4125cc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.004024be
push eax
push str._.8x.dll
push 0x4126d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push 0
push 0
call fcn.00402a4f
mov dword [0x412528], 0x9c
push 0x412528
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea eax, [ebp - 8]
push eax
push 0x1c8
push 0x412528
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4027b0
and dword [ebp - 0x120], 0
cmp dword [ebp + 0xc], 5
jne 0x40270e
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x120], eax
jmp 0x402718
mov dword [ebp - 0x120], 0x412528
push 0
lea eax, [ebp - 8]
push eax
push 0x1c8
push dword [ebp - 0x120]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x120]
add eax, 0xa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40279d
and dword [ebp - 0x2ec], 0
jmp 0x40276e
mov eax, dword [ebp - 0x2ec]
inc eax
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0xc8
jge 0x40279d
mov eax, dword [ebp - 0x120]
add eax, 0xa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x402793
jmp 0x40279d
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402761
cmp dword [ebp + 0x10], 1
jne 0x4027b0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], 5
jne 0x4027c1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x11c]
leave
ret 0xc