Function at 0x1401074d0
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], r12b
xor r8d, r8d
lea rdx, [0x14020e9cd]
lea rcx, [rbp - 0x80]
call fcn.14001cb70
nop
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1401063c0
mov ebx, eax
test eax, eax
jne 0x140107b5b
lea r8d, [r12 + 1]
mov rcx, rdi
call fcn.1400c5050
mov esi, eax
mov ecx, eax
sub ecx, 1
je 0x1401075a6
sub ecx, 1
je 0x14010759d
cmp ecx, 1
lea rcx, [rsp + 0x60]
je 0x140107594
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], bl
lea r8d, [r12 + 7]
lea rdx, str.unknown
call fcn.14001cb70
jmp 0x1401075b8
lea rdx, [0x1402bef00]
jmp 0x1401075b2
lea rdx, [0x1402beea0]
jmp 0x1401075ad
lea rdx, [0x1402bee40]
lea rcx, [rsp + 0x60]
call fcn.14001ca40
nop
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x30], 3
mov rbx, qword [rbp - 0x70]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.14002ff60
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x30], 7
mov r8d, 9
lea rdx, str._ctrl_pre
lea rcx, [rbp - 0x60]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x60]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x40]
call fcn.14001cb10
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
setns dil
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x1d
mov rbx, qword [rbp - 0x70]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.14002ff60
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x30], 0x3d
mov r8d, 8
lea rdx, str._ctrl_ok
lea rcx, [rbp - 0x60]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x60]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x40]
call fcn.14001cb10
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
setns r15b
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x30], 0xed
mov rbx, qword [rbp - 0x70]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.14002ff60
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14001cb10
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rcx, qword [rbp - 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
setns r14b
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x36d
mov rbx, qword [rbp - 0x70]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.14002ff60
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x30], 0x76d
mov r8d, 4
lea rdx, str._bak
lea rcx, [rbp - 0x60]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x60]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x40]
call fcn.14001cb10
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
setns al
test dil, dil
je 0x140107a39
mov r8d, esi
lea rdx, [rbp - 0x40]
call fcn.1401066c0
test eax, eax
je 0x140107a07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rax]
mov dword [rsp + 0x28], edx
lea rax, str.Remove_the_backup_dir_failed:_d
mov r9d, 0x230
lea r8, str.DistributedDB::GenericKvDB::RecoverPrehandle
jmp 0x140107b08
lea rdx, [rbp + 0x20]
call fcn.140106980
test eax, eax
je 0x140107b25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Remove_the_pre_ctrl_file_failed:_d
mov r9d, 0x234
lea r8, str.DistributedDB::GenericKvDB::RecoverPrehandle
jmp 0x140107b04
test r15b, r15b
je 0x140107b25
test al, al
je 0x140107adb
test r14b, r14b
je 0x140107a78
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.1400c8470
test eax, eax
je 0x140107a78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Remove_the_prime_dir_failed:__d
mov r9d, 0x1da
jmp 0x140107afd
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x140107adb
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.Rename_the_bak_dir_to_prime_dir_failed:_d.
mov qword [rsp + 0x20], rax
mov r9d, 0x1e2
lea r8, str.DistributedDB::GenericKvDB::RekeyRecover
lea rdx, [0x1402c0bc8]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x140107b28
lea rdx, [rbp]
call fcn.140106980
test eax, eax
je 0x140107b25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Remove_the_end_ctrl_file_failed:__d
mov r9d, 0x1ea
lea r8, str.DistributedDB::GenericKvDB::RekeyRecover
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea rdx, [0x1402c0bc8]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbe4
jmp 0x140107b28
mov ebx, r12d
lea rcx, [rbp - 0x40]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x20]
call fcn.14001cb10
nop
lea rcx, [rbp]
call fcn.14001cb10
nop
lea rcx, [rbp + 0x20]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x80]
call fcn.14001cb10
mov eax, ebx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret