Function at 0x1400e5b50
Capabilities:
Delete file
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 0x1400e5ba0
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 0x1400e5c3a
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
mov dword [rsp + 0x28], esi
lea rax, str.create_ctrl_file_failed:_d.
mov qword [rsp + 0x20], rax
mov r9d, 0xf8
lea r8, str.DistributedDB::SQLiteLocalKvDB::BackupCurrentDatabase
lea rdx, [0x1402bfb68]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400e5f3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400c7990
mov esi, eax
test eax, eax
je 0x1400e5cf6
mov dword [rsp + 0x28], eax
lea rax, str.Create_backup_dir_failed:_d.
mov qword [rsp + 0x20], rax
mov r9d, 0xff
lea r8, str.DistributedDB::SQLiteLocalKvDB::BackupCurrentDatabase
lea rdx, [0x1402bfb68]
mov ecx, 3
call fcn.1400cc1d0
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400e5c90
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x1400e5f3a
cmp qword [rbx + 0x18], 0x10
jb 0x1400e5caa
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1400e5f3a
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.Remove_file_failed:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x13c
lea r8, str.DistributedDB::GenericKvDB::RemoveFile
lea rdx, [0x1402c0bc8]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400e5f3a
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 [r14]
add rdx, qword [0x1402bfa78]
lea rcx, [rbp - 0x29]
call fcn.14002ff60
cmp qword [rsi + 0x18], 0x10
jb 0x1400e5d33
mov rsi, qword [rsi]
mov r8, qword [r14]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001eac0
lea rsi, [0x1402bfa68]
mov rdx, rsi
cmp qword [0x1402bfa80], 0x10
cmovae rdx, qword [0x1402bfa68]
mov r8, qword [0x1402bfa78]
lea rcx, [rbp - 0x29]
call fcn.14001eac0
lea r14, [0x1402bfc08]
mov rdx, r14
cmp qword [0x1402bfc20], 0x10
cmovae rdx, qword [0x1402bfc08]
mov r8, qword [0x1402bfc18]
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 [0x1402bfa78]
lea rcx, [rbp - 0x29]
call fcn.14002ff60
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400e5dff
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x29]
call fcn.14001eac0
cmp qword [0x1402bfa80], 0x10
cmovae rsi, qword [0x1402bfa68]
mov r8, qword [0x1402bfa78]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001eac0
cmp qword [0x1402bfc20], 0x10
cmovae r14, qword [0x1402bfc08]
mov r8, qword [0x1402bfc18]
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 0x1400e5ec4
mov dword [rsp + 0x28], eax
lea rax, str.Backup_the_current_database_error:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x10a
lea r8, str.DistributedDB::SQLiteLocalKvDB::BackupCurrentDatabase
lea rdx, [0x1402bfb68]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400e5f27
lea rdx, [rdi + 0x80]
cmp qword [rdx + 0x18], 0x10
jb 0x1400e5ed5
mov rdx, qword [rdx]
cmp qword [rbx + 0x18], 0x10
jb 0x1400e5edf
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 0x1400e5f27
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, 0x110
lea r8, str.DistributedDB::SQLiteLocalKvDB::BackupCurrentDatabase
lea rdx, [0x1402bfb68]
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