Function at 0x41c06b
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 [0x5385d0]
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.004b7880
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
je 0x41c177
cmp byte [esi], bl
je 0x41c177
cmp edi, ebx
je 0x41c177
cmp byte [edi], bl
je 0x41c177
cmp dword [ebp + 8], ebx
je 0x41c0f6
mov eax, 0x81
mov dword [ebp - 0x124], 0x106
jmp 0x41c103
xor eax, eax
inc eax
mov dword [ebp - 0x124], 6
push ebx
mov edi, 0x61a8
push edi
push 0x20
push 3
push eax
push esi
call fcn.0041aa44
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x130], eax
jne 0x41c188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x41c177
cmp edi, 3
je 0x41c177
cmp edi, 0xf
je 0x41c177
cmp edi, 0x35
je 0x41c177
push str.tempGetStoreId.dat
push dword [ebp - 0x118]
call fcn.0047f83d
test eax, eax
pop ecx
pop ecx
push edi
push str._GetLastError_
push ebx
push dword [ebp - 0x118]
push esi
je 0x41c16a
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
jmp 0x41c16f
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.0041936e
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
push dword [ebp - 0x118]
mov ecx, 0x104
lea eax, [ebp - 0x114]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047f72c
mov edx, esi
call fcn.0047ebaf
test eax, eax
jne 0x41c1e2
mov eax, esi
push eax
call fcn.004b68f0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x41c1e2
push dword [ebp - 0x11c]
mov ecx, 0x104
mov eax, esi
call fcn.0047ebe1
pop ecx
push dword [ebp - 0x118]
call fcn.0047f2c1
pop ecx
push ebx
push edi
push SQLGetDiagRec
push 2
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push eax
call fcn.0041aa44
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x124], eax
jne 0x41c24d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x41c23d
cmp eax, 0xb7
je 0x41c23d
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.0041936e
add esp, 0x18
mov edi, dword [ebp - 0x130]
call fcn.0041ed31
jmp 0x41c177
mov esi, 0x100000
push esi
call fcn.004b7e07
cmp eax, ebx
pop ecx
mov dword [ebp - 0x138], eax
mov edi, str._GetLastError_
je 0x41c357
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 0x41c2d4
mov eax, dword [0x550d90]
inc dword [0x550d90]
cmp eax, 0xa
jae 0x41c2ce
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.00418e96
add esp, 0x18
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x120], ebx
jbe 0x41c349
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 0x41c33d
mov eax, dword [0x550d90]
inc dword [0x550d90]
cmp eax, 0xa
jae 0x41c337
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.00418e96
add esp, 0x18
inc dword [ebp - 0x128]
cmp dword [ebp - 0x120], ebx
ja 0x41c278
push dword [ebp - 0x138]
call fcn.004b651e
pop ecx
jmp 0x41c361
mov dword [ebp - 0x128], 1
cmp dword [ebp + 8], ebx
je 0x41c3e0
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 0x41c3c5
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 0x41c3e0
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 0x41c3d8
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.0041936e
add esp, 0x14
mov edi, dword [ebp - 0x124]
call fcn.0041ed31
mov edi, dword [ebp - 0x130]
call fcn.0041ed31
cmp dword [ebp - 0x12c], ebx
jne 0x41c177
cmp dword [ebp - 0x128], ebx
jne 0x41c177
xor eax, eax
inc eax
jmp 0x41c179