Function at 0x1400dadf0
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x480
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x48], rcx
xor eax, eax
mov dword [rsp + 0x50], eax
lea r12, [rdx + 0x60]
mov rcx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x1400dae88
mov rcx, qword [r12]
mov qword [rsp + 0x30], rax
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 0x1400daf22
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 ebx, 0xfffffbed
mov dword [rsp + 0x28], ebx
lea rax, str.Create_current_valid_file_failed:_d.
mov qword [rsp + 0x20], rax
mov r9d, 0x3d7
lea r8, str.DistributedDB::MultiVerNaturalStore::BackupCurrentDatabases
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400db7fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
xor r8d, r8d
lea rdx, [0x14020e9cd]
lea rcx, [rsp + 0x60]
call fcn.14001cb70
nop
mov rbx, qword [r13 + 0xa8]
mov rdi, qword [rbx + 8]
mov r14, rbx
cmp byte [rdi + 0x19], 0
jne 0x1400daf99
nop word [rax + rax]
lea rcx, [rdi + 0x20]
lea rdx, [0x1402befe0]
call fcn.14001fca0
shr eax, 0x1f
test al, al
je 0x1400daf8d
mov rdi, qword [rdi + 0x10]
jmp 0x1400daf93
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x1400daf70
cmp rbx, r14
je 0x1400dafb5
lea rdx, [rbx + 0x20]
lea rcx, [0x1402befe0]
call fcn.14001fca0
shr eax, 0x1f
test al, al
je 0x1400dafb8
mov rbx, r14
lea rcx, [rbp - 0x80]
cmp rbx, r14
lea rdx, [rbx + 0x40]
jne 0x1400dafca
lea rdx, [rsp + 0x60]
call fcn.14001ca40
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
xor r8d, r8d
lea rdx, [0x14020e9cd]
lea rcx, [rsp + 0x60]
call fcn.14001cb70
nop
mov rbx, qword [r13 + 0xa8]
mov rdi, qword [rbx + 8]
mov r14, rbx
cmp byte [rdi + 0x19], 0
jne 0x1400db049
nop word [rax + rax]
lea rcx, [rdi + 0x20]
lea rdx, [0x1402befc0]
call fcn.14001fca0
shr eax, 0x1f
test al, al
je 0x1400db03d
mov rdi, qword [rdi + 0x10]
jmp 0x1400db043
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x1400db020
cmp rbx, r14
je 0x1400db065
lea rdx, [rbx + 0x20]
lea rcx, [0x1402befc0]
call fcn.14001fca0
shr eax, 0x1f
test al, al
je 0x1400db068
mov rbx, r14
lea rcx, [rbp - 0x60]
cmp rbx, r14
lea rdx, [rbx + 0x40]
jne 0x1400db07a
lea rdx, [rsp + 0x60]
call fcn.14001ca40
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
mov r8b, 1
lea rdx, [0x1402bef80]
lea rcx, [r13 + 0xa8]
call fcn.1400c4ef0
mov byte [rsp + 0x40], al
movups xmm6, xmmword [r13 + 0xd8]
movaps xmmword [rbp + 0x250], xmm6
movups xmm7, xmmword [r13 + 0xe8]
movaps xmmword [rbp + 0x260], xmm7
movups xmm8, xmmword [r13 + 0xf8]
movaps xmmword [rbp + 0x270], xmm8
movups xmm9, xmmword [r13 + 0x108]
movaps xmmword [rbp + 0x280], xmm9
movups xmm10, xmmword [r13 + 0x118]
movaps xmmword [rbp + 0x290], xmm10
movups xmm11, xmmword [r13 + 0x128]
movaps xmmword [rbp + 0x2a0], xmm11
movups xmm12, xmmword [r13 + 0x138]
movaps xmmword [rbp + 0x2b0], xmm12
movups xmm13, xmmword [r13 + 0x148]
movaps xmmword [rbp + 0x2c0], xmm13
movsd xmm14, qword [r13 + 0x158]
movsd qword [rbp + 0x2d0], xmm14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x190], xmm0
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r14, qword [rbp - 0x80]
movabs rax, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
mov rbx, qword [rbp - 0x70]
cmp rbx, 0x10
jae 0x1400db183
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x198], 0xf
jmp 0x1400db205
mov rdi, rbx
or rdi, 0xf
cmp rdi, rax
cmova rdi, rax
lea rax, [rdi + 1]
cmp rax, 0x1000
jb 0x1400db1ca
lea rcx, [rax + 0x27]
cmp rcx, rax
cmovbe rcx, rdx
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db1c3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db1d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db1d7
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp + 0x180], rax
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x198], rdi
movabs rax, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
mov qword [rbp + 0x190], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1b0], xmm0
lea r15, [rbp - 0x60]
mov r13, qword [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r15, r13
mov rdi, qword [rbp - 0x50]
cmp rdi, 0x10
jae 0x1400db24a
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b8], 0xf
jmp 0x1400db2bb
mov r14, rdi
or r14, 0xf
cmp r14, rax
cmova r14, rax
lea rax, [r14 + 1]
cmp rax, 0x1000
jb 0x1400db291
lea rcx, [rax + 0x27]
cmp rcx, rax
cmovbe rcx, rdx
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db28a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db29e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db29e
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp + 0x1a0], rax
lea r8, [rdi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x1b8], r14
mov qword [rbp + 0x1b0], rdi
movzx eax, byte [rsp + 0x40]
mov byte [rbp + 0x1c0], al
movups xmmword [rbp + 0x1c8], xmm6
movups xmmword [rbp + 0x1d8], xmm7
movups xmmword [rbp + 0x1e8], xmm8
movups xmmword [rbp + 0x1f8], xmm9
movups xmmword [rbp + 0x208], xmm10
movups xmmword [rbp + 0x218], xmm11
movups xmmword [rbp + 0x228], xmm12
movups xmmword [rbp + 0x238], xmm13
movsd qword [rbp + 0x248], xmm14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
lea r15, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r15, qword [rbp - 0x80]
cmp rbx, 0x10
jae 0x1400db34e
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc8], 0xf
jmp 0x1400db3d0
mov r14, rbx
or r14, 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
cmova r14, rax
lea rax, [r14 + 1]
cmp rax, 0x1000
jb 0x1400db3a6
lea rcx, [rax + 0x27]
cmp rcx, rax
mov rax, 0xffffffffffffffff
cmovbe rcx, rax
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db39f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db3b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db3b3
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp + 0xb0], rax
lea r8, [rbx + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0xc8], r14
mov qword [rbp + 0xc0], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xe0], xmm0
lea r15, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r15, r13
cmp rdi, 0x10
jae 0x1400db410
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe8], 0xf
jmp 0x1400db492
mov r14, rdi
or r14, 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
cmova r14, rax
lea rax, [r14 + 1]
cmp rax, 0x1000
jb 0x1400db468
lea rcx, [rax + 0x27]
cmp rcx, rax
mov rax, 0xffffffffffffffff
cmovbe rcx, rax
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db461
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db475
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db475
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp + 0xd0], rax
lea r8, [rdi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0xe8], r14
mov qword [rbp + 0xe0], rdi
movzx eax, byte [rsp + 0x40]
mov byte [rbp + 0xf0], al
movups xmmword [rbp + 0xf8], xmm6
movups xmmword [rbp + 0x108], xmm7
movups xmmword [rbp + 0x118], xmm8
movups xmmword [rbp + 0x128], xmm9
movups xmmword [rbp + 0x138], xmm10
movups xmmword [rbp + 0x148], xmm11
movups xmmword [rbp + 0x158], xmm12
movups xmmword [rbp + 0x168], xmm13
movsd qword [rbp + 0x178], xmm14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
lea r15, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r15, qword [rbp - 0x80]
cmp rbx, 0x10
jae 0x1400db519
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 8], 0xf
jmp 0x1400db595
mov r14, rbx
or r14, 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
cmova r14, rax
lea rax, [r14 + 1]
cmp rax, 0x1000
jb 0x1400db571
lea rcx, [rax + 0x27]
cmp rcx, rax
mov rax, 0xffffffffffffffff
cmovbe rcx, rax
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db56a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db57e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db57e
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp - 0x20], rax
lea r8, [rbx + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
lea r14, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r14, r13
cmp rdi, 0x10
jae 0x1400db5c6
movups xmm0, xmmword [r14]
movups xmmword [rbp], xmm0
mov qword [rbp + 0x18], 0xf
jmp 0x1400db642
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rax, [rbx + 1]
cmp rax, 0x1000
jb 0x1400db61e
lea rcx, [rax + 0x27]
cmp rcx, rax
mov rax, 0xffffffffffffffff
cmovbe rcx, rax
call fcn.1401eb0a4
mov rcx, rax
test rax, rax
je 0x1400db617
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400db62b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rax, rax
je 0x1400db62b
mov rcx, rax
call fcn.1401eb0a4
mov qword [rbp], rax
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x10], rdi
movzx eax, byte [rsp + 0x40]
mov byte [rbp + 0x20], al
movups xmmword [rbp + 0x28], xmm6
movups xmmword [rbp + 0x38], xmm7
movups xmmword [rbp + 0x48], xmm8
movups xmmword [rbp + 0x58], xmm9
movups xmmword [rbp + 0x68], xmm10
movups xmmword [rbp + 0x78], xmm11
movups xmmword [rbp + 0x88], xmm12
movups xmmword [rbp + 0x98], xmm13
movsd qword [rbp + 0xa8], xmm14
mov rcx, rsi
call fcn.1400c7990
mov ebx, eax
test eax, eax
je 0x1400db859
lea rax, str.Create_backup_dir_failed
mov qword [rsp + 0x20], rax
mov r9d, 0x3e7
lea r8, str.DistributedDB::MultiVerNaturalStore::BackupCurrentDatabases
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov rdx, r12
call fcn.140106980
xor esi, esi
mov rax, qword [rbp + 0xa8]
test rax, rax
je 0x1400db701
lea rcx, [rbp + 0x28]
add rax, rcx
lea rdx, [rbp + 0x28]
mov rcx, rax
sub rcx, rdx
lea rdx, [rbp + 0x28]
cmp rdx, rax
cmova rcx, rsi
test rcx, rcx
je 0x1400db701
lea rdi, [rbp + 0x28]
mov eax, 0xff
rep stosb byte [rdi], al
mov qword [rbp + 0xa8], rsi
lea rcx, [rbp]
call fcn.14001cb10
lea rcx, [rbp - 0x20]
call fcn.14001cb10
nop
mov rax, qword [rbp + 0x178]
test rax, rax
je 0x1400db75f
lea rcx, [rbp + 0xf8]
add rax, rcx
lea rdx, [rbp + 0xf8]
mov rcx, rax
sub rcx, rdx
lea rdx, [rbp + 0xf8]
cmp rdx, rax
cmova rcx, rsi
test rcx, rcx
je 0x1400db75f
lea rdi, [rbp + 0xf8]
mov eax, 0xff
rep stosb byte [rdi], al
mov qword [rbp + 0x178], rsi
lea rcx, [rbp + 0xd0]
call fcn.14001cb10
lea rcx, [rbp + 0xb0]
call fcn.14001cb10
nop
mov rax, qword [rbp + 0x248]
test rax, rax
je 0x1400db7c3
lea rdx, [rbp + 0x1c8]
add rdx, rax
lea rdi, [rbp + 0x1c8]
mov rcx, rdx
sub rcx, rdi
lea rdi, [rbp + 0x1c8]
cmp rdi, rdx
cmova rcx, rsi
test rcx, rcx
je 0x1400db7c3
lea rdi, [rbp + 0x1c8]
mov eax, 0xff
rep stosb byte [rdi], al
mov qword [rbp + 0x248], rsi
lea rcx, [rbp + 0x1a0]
call fcn.14001cb10
lea rcx, [rbp + 0x180]
call fcn.14001cb10
nop
mov rax, qword [rbp + 0x2d0]
lea rcx, [rbp - 0x60]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x80]
call fcn.14001cb10
mov eax, ebx
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x280]
mov rax, qword [rcx]
mov r8, rsi
lea rdx, [rbp + 0x180]
call qword [rax + 0x70]
mov ebx, eax
test eax, eax
jne 0x1400db6c7
mov rcx, qword [rdi + 0x288]
mov rax, qword [rcx]
mov r8, rsi
lea rdx, [rbp + 0xb0]
call qword [rax + 0x80]
mov ebx, eax
test eax, eax
jne 0x1400db6c7
mov r8, rsi
lea rdx, [rbp - 0x20]
call fcn.140103720
mov ebx, eax
test eax, eax
jne 0x1400db6c7
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], al
mov dword [rsp + 0x50], 7
mov rdx, qword [rsi + 0x10]
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.14002ff60
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400db8f2
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001eac0
mov r8d, 8
lea rdx, str._version
lea rcx, [rsp + 0x60]
call fcn.14001eac0
lea rdi, [rsi + 0x40]
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov dword [rsp + 0x50], 0xf
lea rbx, [rdi + 0x10]
mov rdx, qword [rbx]
add rdx, 8
lea rcx, [rbp - 0x40]
call fcn.14002ff60
cmp qword [rdi + 0x18], 0x10
jb 0x1400db952
mov rdi, qword [rdi]
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14001eac0
mov r8d, 8
lea rdx, str._version
lea rcx, [rbp - 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400c82a0
nop
lea rcx, [rbp - 0x40]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
lea rdx, [rsi + 0x80]
cmp qword [rdx + 0x18], 0x10
jb 0x1400db9ab
mov rdx, qword [rdx]
cmp qword [r12 + 0x18], 0x10
jb 0x1400db9b7
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x1400dba04
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, 0x3fe
lea r8, str.DistributedDB::MultiVerNaturalStore::BackupCurrentDatabases
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x1400db6c7
xor esi, esi
mov ebx, esi
jmp 0x1400db6c9