Function at 0x468d10
Capabilities:
Get common file path
Get file size
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x214]
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x44c
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x16fe
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetTempPathW_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x16ff
xor eax, eax
cmp ebx, 0x103
lea ebx, [ebp - 0x41c]
setbe al
mov dword [esp + 4], 0x59813c
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59db20
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1702
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetTempFileNameW_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1705
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.failed_to_open_source_file_n
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x430]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0x59db20
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1707
mov eax, dword [edi + 0x34]
test esi, esi
je 0x468eb3
xor ecx, ecx
cmp dword [ebp - 0x430], 8
sete cl
mov esi, ecx
mov dword [esp + 8], eax
lea edi, [ebp - 0x42c]
mov dword [esp], esi
mov dword [esp + 4], 0x5981d0
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1708
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
cmp eax, 8
sete al
mov dword [esp + 4], str.source_file_has_wrong_size_n
movzx eax, al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.0045bef0
mov eax, dword [sym.imp.kernel32.dll_GetFileTime]
mov dword [esp], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x434], eax
call eax
sub esp, 0x10
mov dword [ebp - 0x438], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x170b
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetFileTime_error__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x438]
mov dword [esp], edx
call fcn.0045bef0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], edx
mov edx, dword [sym.imp.kernel32.dll_SetFileTime]
mov dword [ebp - 0x424], eax
sub dword [ebp - 0x424], 0x23c34600
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x43c], edx
call edx
sub esp, 0x10
mov dword [ebp - 0x438], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x170f
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.SetFileTime_error__ld_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x438]
mov dword [esp], ecx
call fcn.0045bef0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x434]
call eax
sub esp, 0x10
mov dword [ebp - 0x438], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1712
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetFileTime_error__ld_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x438]
mov dword [esp], ecx
call fcn.0045bef0
call fcn.0057d110
lea edx, [ebp - 0x424]
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1713
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], 8
call dword [sym.imp.msvcrt.dll_memcmp]
mov dword [esp + 4], str.Unexpected_write_time._n
mov dword [esp], eax
call fcn.0045bef0
mov dword [ebp - 0x42c], 0xffffffff
mov dword [ebp - 0x428], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov edx, dword [ebp - 0x43c]
call edx
sub esp, 0x10
mov dword [ebp - 0x438], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1717
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.SetFileTime_error__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x438]
mov dword [esp], edx
call fcn.0045bef0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x434]
call eax
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x171a
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetFileTime_error__ld_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x171b
mov eax, dword [ebp - 0x424]
cmp dword [ebp - 0x42c], eax
je 0x4691c0
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.Unexpected_write_time._n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x428], eax
jne 0x46918e
xor eax, eax
jmp 0x469193