Function at 0x41fe70
Capabilities:
Get file size
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
je 0x41ffdc
cmp word [eax], bx
je 0x41ffdc
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x41ffd1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00431a3c
add esp, 4
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push edi
mov byte [edi + esi], 0
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ffae
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431a3c
add esp, 4
mov ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax + eax]
lea edi, [esi + 1]
push edi
call fcn.00431a3c
add esp, 4
mov ebx, eax
push 0
push 0
push edi
mov edi, dword [ebp - 4]
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi + ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 8]
push eax
lea eax, [esi - 1]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00431e88
push edi
call fcn.00431e88
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
add esp, 8
push edi
call fcn.00431e88
add esp, 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x420082
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431a3c
add esp, 4
xor ecx, ecx
push esi
push eax
mov word [eax + esi*2], cx
mov ecx, dword [edi]
push esi
push edi
mov dword [ebp + 8], eax
call dword [ecx + 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
test eax, eax
jle 0x420079
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push esi
push ecx
push ecx
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [edi]
push eax
push edi
mov dword [ebp + 8], eax
call dword [ecx + 0x14]
test eax, eax
js 0x420079
mov ecx, dword [edi]
push edi
call dword [ecx + 0xc]
test eax, eax
je 0x420079
push 0
push 0
push dword [ebp + 8]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, 1
push esi
call fcn.00431e88
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8