Function at 0x41aab4
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 [0x5345d0]
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.004b53e0
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
je 0x41abc0
cmp byte [esi], bl
je 0x41abc0
cmp edi, ebx
je 0x41abc0
cmp byte [edi], bl
je 0x41abc0
cmp dword [ebp + 8], ebx
je 0x41ab3f
mov eax, 0x81
mov dword [ebp - 0x124], 0x106
jmp 0x41ab4c
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.0041948d
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x130], eax
jne 0x41abd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x41abc0
cmp edi, 3
je 0x41abc0
cmp edi, 0xf
je 0x41abc0
cmp edi, 0x35
je 0x41abc0
push str.tempGetStoreId.dat
push dword [ebp - 0x118]
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
push edi
push str._GetLastError_
push ebx
push dword [ebp - 0x118]
push esi
je 0x41abb3
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
jmp 0x41abb8
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.00417db7
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret
push dword [ebp - 0x118]
mov ecx, 0x104
lea eax, [ebp - 0x114]
call fcn.0047c3fc
pop ecx
mov esi, eax
call fcn.0047cf47
mov edx, esi
call fcn.0047c3ca
test eax, eax
jne 0x41ac2b
mov eax, esi
push eax
call fcn.004b4450
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x41ac2b
push dword [ebp - 0x11c]
mov ecx, 0x104
mov eax, esi
call fcn.0047c3fc
pop ecx
push dword [ebp - 0x118]
call fcn.0047cadc
pop ecx
push ebx
push edi
push SQLGetDiagRec
push 2
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push eax
call fcn.0041948d
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x124], eax
jne 0x41ac96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x41ac86
cmp eax, 0xb7
je 0x41ac86
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.00417db7
add esp, 0x18
mov edi, dword [ebp - 0x130]
call fcn.0041d762
jmp 0x41abc0
mov esi, 0x100000
push esi
call fcn.004b5967
cmp eax, ebx
pop ecx
mov dword [ebp - 0x138], eax
mov edi, str._GetLastError_
je 0x41ada0
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 0x41ad1d
mov eax, dword [0x54cd8c]
inc dword [0x54cd8c]
cmp eax, 0xa
jae 0x41ad17
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.004178df
add esp, 0x18
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x120], ebx
jbe 0x41ad92
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 0x41ad86
mov eax, dword [0x54cd8c]
inc dword [0x54cd8c]
cmp eax, 0xa
jae 0x41ad80
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.004178df
add esp, 0x18
inc dword [ebp - 0x128]
cmp dword [ebp - 0x120], ebx
ja 0x41acc1
push dword [ebp - 0x138]
call fcn.004b4080
pop ecx
jmp 0x41adaa
mov dword [ebp - 0x128], 1
cmp dword [ebp + 8], ebx
je 0x41ae29
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 0x41ae0e
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 0x41ae29
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 0x41ae21
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.00417db7
add esp, 0x14
mov edi, dword [ebp - 0x124]
call fcn.0041d762
mov edi, dword [ebp - 0x130]
call fcn.0041d762
cmp dword [ebp - 0x12c], ebx
jne 0x41abc0
cmp dword [ebp - 0x128], ebx
jne 0x41abc0
xor eax, eax
inc eax
jmp 0x41abc2