Function at 0x1400e2290
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
lea rbx, [rdx + 0x60]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400e22e0
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x1400e237a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
lea rax, str.Create_File_fail.__d
mov qword [rsp + 0x20], rax
mov r9d, 0x123
lea r8, str.DistributedDB::OS::CreateFileByFileName
lea rdx, [0x1402bf128]
mov ecx, 3
call fcn.1400cc1d0
mov esi, 0xfffffbed
lea rax, str.create_ctrl_file_failed:_d.
mov r9d, 0x4c9
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
lea r8, str.DistributedDB::SQLiteSingleVerNaturalStore::BackupCurrentDatabase
lea rdx, [0x1402bf988]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400e25e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400c7990
mov esi, eax
test eax, eax
je 0x1400e23a0
lea rax, str.Create_backup_dir_failed:_d.
mov r9d, 0x4d0
jmp 0x1400e2354
lea rsi, [rdi + 0x40]
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x39], 1
lea r14, [rsi + 0x10]
mov rdx, qword [0x1402bf9f8]
add rdx, qword [r14]
lea rcx, [rbp - 0x29]
call fcn.14002ff60
cmp qword [rsi + 0x18], 0x10
jb 0x1400e23dd
mov rsi, qword [rsi]
mov r8, qword [r14]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001eac0
lea rsi, [0x1402bf9e8]
mov rdx, rsi
cmp qword [0x1402bfa00], 0x10
cmovae rdx, qword [0x1402bf9e8]
mov r8, qword [0x1402bf9f8]
lea rcx, [rbp - 0x29]
call fcn.14001eac0
lea r14, [0x1402bfa28]
mov rdx, r14
cmp qword [0x1402bfa40], 0x10
cmovae rdx, qword [0x1402bfa28]
mov r8, qword [0x1402bfa38]
lea rcx, [rbp - 0x29]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x17], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x27], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x29]
call fcn.14001cb10
nop
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x39], 6
mov rdx, qword [rdi + 0x10]
add rdx, qword [0x1402bf9f8]
lea rcx, [rbp - 0x29]
call fcn.14002ff60
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400e24a9
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x29]
call fcn.14001eac0
cmp qword [0x1402bfa00], 0x10
cmovae rsi, qword [0x1402bf9e8]
mov r8, qword [0x1402bf9f8]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001eac0
cmp qword [0x1402bfa40], 0x10
cmovae r14, qword [0x1402bfa28]
mov r8, qword [0x1402bfa38]
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x29]
call fcn.14001cb10
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.1400c82a0
mov esi, eax
test eax, eax
je 0x1400e256e
mov dword [rsp + 0x28], eax
lea rax, str.Backup_the_current_database_error:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x4da
lea r8, str.DistributedDB::SQLiteSingleVerNaturalStore::BackupCurrentDatabase
lea rdx, [0x1402bf988]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400e25d1
lea rdx, [rdi + 0x80]
cmp qword [rdx + 0x18], 0x10
jb 0x1400e257f
mov rdx, qword [rdx]
cmp qword [rbx + 0x18], 0x10
jb 0x1400e2589
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x1400e25d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
lea rax, str.Failed_to_rename_the_file_after_the_backup:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x4e0
lea r8, str.DistributedDB::SQLiteSingleVerNaturalStore::BackupCurrentDatabase
lea rdx, [0x1402bf988]
mov ecx, 3
call fcn.1400cc1d0
mov esi, 0xfffffbed
lea rcx, [rbp - 9]
call fcn.14001cb10
nop
lea rcx, [rbp + 0x17]
call fcn.14001cb10
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret