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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
je 0x42a8ed
cmp byte [esi], bl
je 0x42a8ed
cmp edi, ebx
je 0x42a8ed
cmp byte [edi], bl
je 0x42a8ed
push ebx
mov edi, 0x61a8
push edi
push 0x20
push 3
push 1
push esi
call fcn.00428fd2
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x130], eax
jne 0x42a8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x42a8ed
cmp edi, 3
je 0x42a8ed
cmp edi, 0xf
je 0x42a8ed
cmp edi, 0x35
je 0x42a8ed
push str.tempGetStoreId.dat
push dword [ebp - 0x114]
call fcn.004c48c1
test eax, eax
pop ecx
pop ecx
push edi
push str._GetLastError_
push ebx
push dword [ebp - 0x114]
push esi
je 0x42a8e0
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:_Note_that_this_error_may_have_been_caused_by_GetUpdateFromBranchStore__:__s_ld
jmp 0x42a8e5
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hSrc__FAILED:__s_ld
call fcn.00426c01
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
push dword [ebp - 0x114]
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.004c3b66
pop ecx
mov esi, eax
call fcn.004c47b0
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x42a958
mov eax, esi
push eax
call fcn.005120b0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x42a958
push dword [ebp - 0x124]
mov ecx, 0x104
mov eax, esi
call fcn.004c3b66
pop ecx
push dword [ebp - 0x114]
call fcn.004c424b
pop ecx
push ebx
push edi
push SQLGetDiagRec
push 2
lea eax, [ebp - 0x110]
push 6
push eax
call fcn.00428fd2
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x134], eax
jne 0x42a9bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x42a9af
cmp eax, 0xb7
je 0x42a9af
push str._GetLastError_
push eax
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x124]
push str.:1:CopyFileSafe___s_____s____d__FAILED:_CreateFile_hDest__FAILED:_GetLastError___should_be___ld:__s
call fcn.00426c01
add esp, 0x18
mov edi, dword [ebp - 0x130]
call fcn.0042dbeb
jmp 0x42a8ed
mov esi, 0x100000
push esi
call fcn.00513703
cmp eax, ebx
pop ecx
mov dword [ebp - 0x128], eax
je 0x42aac9
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
mov edi, str._GetLastError_
push ebx
lea eax, [ebp - 0x118]
push eax
push esi
push dword [ebp - 0x128]
mov dword [ebp - 0x118], ebx
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42aa46
mov eax, dword [0x5e01c8]
inc dword [0x5e01c8]
cmp eax, 0xa
jae 0x42aa40
push edi
push dword [ebp - 0x118]
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x124]
push str.CopyFileSafe___s_____s____d__FAILED:_ReadFile___FAILED_Could_only_read__ld_bytes:__s
call fcn.004265da
add esp, 0x18
inc dword [ebp - 0x120]
cmp dword [ebp - 0x118], ebx
jbe 0x42aabb
push ebx
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x12c], ebx
push dword [ebp - 0x128]
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42aaaf
mov eax, dword [0x5e01c8]
inc dword [0x5e01c8]
cmp eax, 0xa
jae 0x42aaa9
push edi
push dword [ebp - 0x12c]
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x124]
push str.CopyFileSafe___s_____s____d__FAILED:_WriteFile___FAILED:_Could_only_write__ld_bytes:__s
call fcn.004265da
add esp, 0x18
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x118], ebx
ja 0x42a9ea
push dword [ebp - 0x128]
call fcn.00511758
pop ecx
jmp 0x42aad3
mov dword [ebp - 0x11c], 1
mov edi, dword [ebp - 0x134]
call fcn.0042dbeb
mov edi, dword [ebp - 0x130]
call fcn.0042dbeb
cmp dword [ebp - 0x120], ebx
jne 0x42a8ed
cmp dword [ebp - 0x11c], ebx
jne 0x42a8ed
xor eax, eax
inc eax
jmp 0x42a8ef