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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov byte [ebp - 0x114], bl
call fcn.005306b0
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
je 0x4316b2
cmp byte [esi], bl
je 0x4316b2
cmp edi, ebx
je 0x4316b2
cmp byte [edi], bl
je 0x4316b2
cmp dword [ebp + 8], ebx
je 0x43162e
mov eax, 0x81
mov dword [ebp - 0x124], 0x106
jmp 0x43163b
xor eax, eax
inc eax
mov dword [ebp - 0x124], 6
push ebx
mov edi, 0x61a8
push edi
push 3
push 7
push eax
push esi
push 0x20
pop eax
call fcn.0042eb42
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x130], eax
jne 0x4316c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x4316b2
cmp edi, 3
je 0x4316b2
cmp edi, 0xf
je 0x4316b2
cmp edi, 0x35
je 0x4316b2
push str.tempGetStoreId.dat
push dword [ebp - 0x118]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
push edi
push str._GetLastError_
push ebx
push dword [ebp - 0x118]
push esi
je 0x4316a5
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
jmp 0x4316aa
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.0042bd38
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
push dword [ebp - 0x118]
mov ecx, 0x104
lea eax, [ebp - 0x114]
call fcn.004ccc3f
pop ecx
mov esi, eax
call fcn.004cd889
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x43171d
mov eax, esi
push eax
call fcn.00530f70
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x43171d
push dword [ebp - 0x11c]
mov ecx, 0x104
mov eax, esi
call fcn.004ccc3f
pop ecx
push dword [ebp - 0x118]
call fcn.004cd324
pop ecx
push ebx
push edi
push 2
push 7
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push eax
mov eax, SQLGetDiagRec
call fcn.0042eb42
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x124], eax
jne 0x43178a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x43177a
cmp eax, 0xb7
je 0x43177a
push str._GetLastError_
push eax
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hDest__FAILED:_GetLastError___should_be___ld:__s
call fcn.0042bd38
add esp, 0x18
mov edi, dword [ebp - 0x130]
call fcn.00435716
jmp 0x4316b2
mov esi, 0x100000
push esi
call fcn.00532823
cmp eax, ebx
pop ecx
mov dword [ebp - 0x138], eax
mov edi, str._GetLastError_
je 0x431894
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x138]
mov dword [ebp - 0x120], ebx
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431811
mov eax, dword [0x60e214]
inc dword [0x60e214]
cmp eax, 0xa
jae 0x43180b
push edi
push dword [ebp - 0x120]
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.CopyFileSafe___s_____s____d__FAILED:_ReadFile___FAILED_Could_only_read__ld_bytes:__s
call fcn.0042b70b
add esp, 0x18
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x120], ebx
jbe 0x431886
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x120]
mov dword [ebp - 0x134], ebx
push dword [ebp - 0x138]
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43187a
mov eax, dword [0x60e214]
inc dword [0x60e214]
cmp eax, 0xa
jae 0x431874
push edi
push dword [ebp - 0x134]
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.CopyFileSafe___s_____s____d__FAILED:_WriteFile___FAILED:_Could_only_write__ld_bytes:__s
call fcn.0042b70b
add esp, 0x18
inc dword [ebp - 0x128]
cmp dword [ebp - 0x120], ebx
ja 0x4317b5
push dword [ebp - 0x138]
call fcn.0053061e
pop ecx
jmp 0x43189e
mov dword [ebp - 0x128], 1
cmp dword [ebp + 8], ebx
je 0x43191d
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x431902
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43191d
push edi
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_SET_the_destination_files_time_stamp:__s
jmp 0x431915
push edi
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_GET_the_source_files_time_stamp:__s
call fcn.0042bd38
add esp, 0x14
mov edi, dword [ebp - 0x124]
call fcn.00435716
mov edi, dword [ebp - 0x130]
call fcn.00435716
cmp dword [ebp - 0x12c], ebx
jne 0x4316b2
cmp dword [ebp - 0x128], ebx
jne 0x4316b2
xor eax, eax
inc eax
jmp 0x4316b4