Function at 0x4015d2
Capabilities:
Check if file exists
Read file on windows
Timestomp file
Write file on windows

Disassembly:
jmp 0x42d7f2
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x124], eax
push ebx
push esi
mov esi, dword [ebp + 0x130]
push edi
mov edi, dword [ebp + 0x134]
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x21]
push ebx
push eax
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], edi
mov byte [ebp + 0x20], bl
call fcn.00508d00
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
je 0x42da1b
cmp byte [esi], bl
je 0x42da1b
cmp edi, ebx
je 0x42da1b
cmp byte [edi], bl
je 0x42da1b
cmp dword [ebp + 0x13c], ebx
je 0x42d87a
mov dword [ebp + 0x10], 0x81
mov dword [ebp + 0xc], 0x106
jmp 0x42d888
mov dword [ebp + 0x10], 1
mov dword [ebp + 0xc], 6
push 7
pop esi
push 0x20
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
pop edi
push 0x2c6
push str..File.c
push str.CreateFileTimeOut
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0x42c835
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401f3c
cmp eax, ebx
mov dword [ebp + 0x1c], eax
jne 0x42d90e
push str._GetLastError_
push ebx
push str.:9:CreateFileTimeOut___encountered_a_problem__but_is_continuing_anyway:_CreateThread___FAILED:_CreateFile___must_now_be_called_manually_without_the_possibility_of_a_time_out._NumThreads_d:__s
call fcn.004020c2
add esp, 0xc
push ebx
push edi
push 3
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x42d9be
call fcn.00401e97
or dword [ebp - 8], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp + 4], eax
jmp 0x42d942
cmp dword [ebp - 8], 0x103
jne 0x42d998
call fcn.00401e97
sub eax, dword [ebp + 4]
cmp eax, 0x61a8
ja 0x42d951
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
call edi
test eax, eax
jne 0x42d922
jmp 0x42d998
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x42d960
mov dword [eax], 1
jmp 0x42d975
call fcn.00401e97
sub eax, dword [ebp + 4]
push eax
push str.:5:CreateFileTimeOut___encountered_an_exception:_the_bCancel_parameter_was_never_set_by_the_helper_thread:__ldms_have_elapsed.
call fcn.00401375
pop ecx
pop ecx
push 0x61a8
push dword [ebp + 0x18]
push str.:6:CreateFileTimeOut___had_to_cancel_the_CreateFile___thread_while_creating___s_:_More_than__ld_milli_seconds_have_elapsed_since_the_process_began:_A_time_out_has_occurred.
call fcn.00401375
add esp, 0xc
or dword [ebp - 8], 0xffffffff
mov dword [0x635668], 0x5b4
push 0x2f7
push str..File.c
push str.CreateFileTimeOut
push dword [ebp + 0x1c]
call fcn.00403134
push dword [0x635668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x42da35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42da1b
cmp esi, 3
je 0x42da1b
cmp esi, 0xf
je 0x42da1b
cmp esi, 0x35
je 0x42da1b
push str.tempGetStoreId.dat
push dword [ebp + 0x14]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
push esi
push str._GetLastError_
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
je 0x42da0e
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
jmp 0x42da13
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.00401375
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + 0x124]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x128
leave
ret
mov edi, 0x104
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x20]
push eax
call fcn.00402abd
lea eax, [ebp + 0x20]
push eax
call fcn.00401d0c
lea eax, [ebp + 0x20]
push eax
call fcn.004010dc
add esp, 0x14
test eax, eax
jne 0x42da90
lea eax, [ebp + 0x20]
push eax
call fcn.00508320
pop ecx
lea ecx, [ebp + 0x20]
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x42da90
push edi
push dword [ebp + 0x18]
lea eax, [ebp + 0x20]
push eax
call fcn.00402abd
push dword [ebp + 0x14]
lea eax, [ebp + 0x20]
push eax
call fcn.00401c5d
add esp, 0x14
push 0x2c6
push str..File.c
push str.CreateFileTimeOut
xor eax, eax
cmp dword [ebp + 0x138], ebx
push ebx
mov ecx, esi
push ebx
je 0x42dbc7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0x42c835
push ebx
mov edi, SQLGetDiagRec
push ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00401f3c
cmp eax, ebx
mov dword [ebp + 0x1c], eax
jne 0x42db13
push str._GetLastError_
push ebx
push str.:9:CreateFileTimeOut___encountered_a_problem__but_is_continuing_anyway:_CreateThread___FAILED:_CreateFile___must_now_be_called_manually_without_the_possibility_of_a_time_out._NumThreads_d:__s
call fcn.004020c2
add esp, 0xc
push ebx
push edi
push 1
jmp 0x42dc24
call fcn.00401e97
or dword [ebp + 8], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp + 4], eax
jmp 0x42db49
cmp dword [ebp + 8], 0x103
jne 0x42db9c
call fcn.00401e97
sub eax, dword [ebp + 4]
mov edi, 0x61a8
cmp eax, edi
ja 0x42db58
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x1c]
call esi
test eax, eax
jne 0x42db27
jmp 0x42db9c
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x42db67
mov dword [eax], 1
jmp 0x42db7c
call fcn.00401e97
sub eax, dword [ebp + 4]
push eax
push str.:5:CreateFileTimeOut___encountered_an_exception:_the_bCancel_parameter_was_never_set_by_the_helper_thread:__ldms_have_elapsed.
call fcn.00401375
pop ecx
pop ecx
push edi
lea eax, [ebp + 0x20]
push eax
push str.:6:CreateFileTimeOut___had_to_cancel_the_CreateFile___thread_while_creating___s_:_More_than__ld_milli_seconds_have_elapsed_since_the_process_began:_A_time_out_has_occurred.
call fcn.00401375
add esp, 0xc
or dword [ebp + 8], 0xffffffff
mov dword [0x635668], 0x5b4
push 0x2f7
push str..File.c
push str.CreateFileTimeOut
push dword [ebp + 0x1c]
call fcn.00403134
push dword [0x635668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
jmp 0x42dce9
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push 0x42c835
push ebx
mov edi, SQLGetDiagRec
push ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.00401f3c
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x42dc3a
push str._GetLastError_
push ebx
push str.:9:CreateFileTimeOut___encountered_a_problem__but_is_continuing_anyway:_CreateThread___FAILED:_CreateFile___must_now_be_called_manually_without_the_possibility_of_a_time_out._NumThreads_d:__s
call fcn.004020c2
add esp, 0xc
push ebx
push edi
push 2
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
jmp 0x42dce9
call fcn.00401e97
or dword [ebp + 0x1c], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp + 4], eax
jmp 0x42dc70
cmp dword [ebp + 0x1c], 0x103
jne 0x42dcc3
call fcn.00401e97
sub eax, dword [ebp + 4]
mov edi, 0x61a8
cmp eax, edi
ja 0x42dc7f
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42dc4e
jmp 0x42dcc3
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x42dc8e
mov dword [eax], 1
jmp 0x42dca3
call fcn.00401e97
sub eax, dword [ebp + 4]
push eax
push str.:5:CreateFileTimeOut___encountered_an_exception:_the_bCancel_parameter_was_never_set_by_the_helper_thread:__ldms_have_elapsed.
call fcn.00401375
pop ecx
pop ecx
push edi
lea eax, [ebp + 0x20]
push eax
push str.:6:CreateFileTimeOut___had_to_cancel_the_CreateFile___thread_while_creating___s_:_More_than__ld_milli_seconds_have_elapsed_since_the_process_began:_A_time_out_has_occurred.
call fcn.00401375
add esp, 0xc
or dword [ebp + 0x1c], 0xffffffff
mov dword [0x635668], 0x5b4
push 0x2f7
push str..File.c
push str.CreateFileTimeOut
push dword [ebp + 8]
call fcn.00403134
push dword [0x635668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x42dd3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x42dd1f
cmp eax, 0xb7
je 0x42dd1f
push str._GetLastError_
push eax
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hDest__FAILED:_GetLastError___should_be___ld:__s
call fcn.00401375
add esp, 0x18
push 0xbe0
push str..File.c
push str.CopyFileSafe
push dword [ebp + 0x10]
call fcn.00403134
jmp 0x42da1b
push 0xbe6
push str..File.c
push 1
mov esi, 0x100000
push esi
call fcn.00509850
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 4], eax
je 0x42de1c
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 4]
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ddb3
mov eax, dword [0x635938]
inc dword [0x635938]
cmp eax, 0xa
jae 0x42ddb0
push str._GetLastError_
push dword [ebp - 4]
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push str.CopyFileSafe___s_____s____d__FAILED:_ReadFile___FAILED_Could_only_read__ld_bytes:__s
call fcn.004020c2
add esp, 0x18
inc dword [ebp - 0xc]
cmp dword [ebp - 4], ebx
jbe 0x42de0e
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
push dword [ebp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42de05
mov eax, dword [0x635938]
inc dword [0x635938]
cmp eax, 0xa
jae 0x42de02
push str._GetLastError_
push dword [ebp - 0x10]
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push str.CopyFileSafe___s_____s____d__FAILED:_WriteFile___FAILED:_Could_only_write__ld_bytes:__s
call fcn.004020c2
add esp, 0x18
inc dword [ebp + 0xc]
cmp dword [ebp - 4], ebx
ja 0x42dd66
push 1
push dword [ebp + 4]
call fcn.0050a6d0
pop ecx
pop ecx
jmp 0x42de23
mov dword [ebp + 0xc], 1
cmp dword [ebp + 0x13c], ebx
je 0x42de91
lea eax, [ebp]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42de73
lea eax, [ebp]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x42de91
push str._GetLastError_
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_SET_the_destination_files_time_stamp:__s
jmp 0x42de89
push str._GetLastError_
push dword [ebp + 0x138]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_GET_the_source_files_time_stamp:__s
call fcn.00401375
add esp, 0x14
push 0xc1a
push str..File.c
mov esi, str.CopyFileSafe
push esi
push edi
call fcn.00403134
push 0xc1b
push str..File.c
push esi
push dword [ebp + 0x10]
call fcn.00403134
cmp dword [ebp - 0xc], ebx
jne 0x42da1b
cmp dword [ebp + 0xc], ebx
jne 0x42da1b
xor eax, eax
inc eax
jmp 0x42da1d