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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea eax, [ebp - 0x12f]
push eax
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x134], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x4467f9
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4467f9
cmp dword [ebp + 0xc], 0
je 0x4467f9
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x446800
xor eax, eax
jmp 0x446c77
cmp dword [ebp + 0x14], 0
je 0x446816
mov dword [ebp - 0x18], 0x81
mov dword [ebp - 0x10], 0x106
jmp 0x446824
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 6
push 0
push 0x61a8
push 0
push 0x20
push 3
push 0
push 7
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4468f4
mov dword [ebp - 0x138], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 2
je 0x4468ed
cmp dword [ebp - 0x138], 3
je 0x4468ed
cmp dword [ebp - 0x138], 0xf
je 0x4468ed
cmp dword [ebp - 0x138], 0x35
je 0x4468ed
push 0x6596d8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401041
add esp, 8
test eax, eax
je 0x4468c8
mov edx, dword [ebp - 0x138]
push edx
push 0x6596ec
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
call fcn.004018ca
add esp, 0x18
jmp 0x4468ed
mov eax, dword [ebp - 0x138]
push eax
push 0x659790
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.004018ca
add esp, 0x18
xor eax, eax
jmp 0x446c77
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.00402725
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call fcn.00402ec8
add esp, 4
lea ecx, [ebp - 0x130]
push ecx
call fcn.00401389
add esp, 4
test eax, eax
jne 0x446975
lea edx, [ebp - 0x130]
push edx
call fcn.005b4690
add esp, 4
movsx eax, byte [ebp + eax - 0x131]
cmp eax, 0x5c
jne 0x446975
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.00402725
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.00402d51
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x4469a7
push 0
push 0x61a8
push 0
push SQLGetDiagRec
push 1
push 0
push 7
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x1c], eax
jmp 0x4469d1
push 0
push 0x61a8
push 0
push SQLGetDiagRec
push 2
push 0
push 7
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x446a4d
mov dword [ebp - 0x13c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0x50
je 0x446a27
cmp dword [ebp - 0x13c], 0xb7
je 0x446a27
push 0x6597e8
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hDest__FAILED:_GetLastError___should_be___ld:__s
call fcn.004018ca
add esp, 0x18
push 0xbe0
push 0x659860
push 0x65986c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00401f5a
mov dword [ebp - 0x20], 0
xor eax, eax
jmp 0x446c77
mov dword [ebp - 0x24], 0x100000
push 0xbe6
push 0x65987c
push 1
mov edx, dword [ebp - 0x24]
push edx
call fcn.005b0830
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x446b8d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], 0
push 0
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x446af5
mov edx, dword [0x707908]
mov eax, dword [0x707908]
add eax, 1
mov dword [0x707908], eax
cmp edx, 0xa
jae 0x446aec
push 0x659888
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CopyFileSafe___s_____s____d__FAILED:_ReadFile___FAILED_Could_only_read__ld_bytes:__s
call fcn.00401014
add esp, 0x18
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x134], 0
jbe 0x446b69
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446b69
mov ecx, dword [0x707908]
mov edx, dword [0x707908]
add edx, 1
mov dword [0x707908], edx
cmp ecx, 0xa
jae 0x446b60
push 0x6598f0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CopyFileSafe___s_____s____d__FAILED:_WriteFile___FAILED:_Could_only_write__ld_bytes:__s
call fcn.00401014
add esp, 0x18
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x134], 0
ja 0x446a86
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b16b0
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x446b96
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x446c24
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x446c06
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x446c04
push 0x659958
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_SET_the_destination_files_time_stamp:__s
call fcn.004018ca
add esp, 0x14
jmp 0x446c24
push 0x6599c4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:5:CopyFileSafe___s_____s____d__FAILED:_Could_not_GET_the_source_files_time_stamp:__s
call fcn.004018ca
add esp, 0x14
push 0xc1a
push 0x659a30
push 0x659a3c
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401f5a
mov dword [ebp - 0x1c], 0
push 0xc1b
push 0x659a4c
push str.CopyFileSafe
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00401f5a
mov dword [ebp - 0x20], 0
cmp dword [ebp - 4], 0
jne 0x446c6e
cmp dword [ebp - 0x14], 0
je 0x446c72
xor eax, eax
jmp 0x446c77
mov eax, 1
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret