Function at 0x140107c80
Capabilities:
Delete directory
Delete 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 + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rdx
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x30], r12d
mov rdi, qword [r8]
mov r15, qword [r8 + 8]
cmp rdi, r15
je 0x14010821c
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
or esi, 1
mov dword [rsp + 0x30], esi
mov r14d, esi
mov rdx, qword [rbx + 0x10]
inc rdx
lea rcx, [rbp - 0x40]
call fcn.14002ff60
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140107d0a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rbp - 0x40]
call fcn.14001eac0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140107d3a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14001eac0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
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
or esi, 2
mov dword [rsp + 0x30], esi
mov r8d, 3
lea rdx, [0x14022b89c]
lea rcx, [rbp - 0x20]
call fcn.14001eac0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov esi, r14d
or esi, 6
lea rcx, [rbp - 0x20]
call fcn.14001cb10
and esi, 0xfffffffe
lea rcx, [rbp - 0x40]
call fcn.14001cb10
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x140107e0b
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x1401080fb
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov eax, esi
or eax, 8
mov dword [rsp + 0x30], eax
mov rdx, qword [rbx + 0x10]
inc rdx
lea rcx, [rbp - 0x80]
call fcn.14002ff60
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140107e41
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140107e71
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
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 eax, esi
or eax, 0x18
mov dword [rsp + 0x30], eax
mov r8d, 7
lea rdx, str..db_wal
lea rcx, [rbp - 0x60]
call fcn.14001eac0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 0x38
lea rcx, [rsp + 0x60]
call fcn.14001cb10
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
lea rcx, [rbp]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x60]
call fcn.14001cb10
and esi, 0xfffffff7
lea rcx, [rbp - 0x80]
call fcn.14001cb10
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x140107f77
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x140108151
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov eax, esi
or eax, 0x40
mov dword [rsp + 0x30], eax
mov rdx, qword [rbx + 0x10]
inc rdx
lea rcx, [rbp - 0x80]
call fcn.14002ff60
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140107fad
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140107fdd
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x80]
call fcn.14001eac0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
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 eax, esi
or eax, 0xc0
mov dword [rsp + 0x30], eax
mov r8d, 7
lea rdx, str..db_shm
lea rcx, [rbp - 0x60]
call fcn.14001eac0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 0x1c0
lea rcx, [rsp + 0x60]
call fcn.14001cb10
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
lea rcx, [rbp + 0x20]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x60]
call fcn.14001cb10
and esi, 0xffffffbf
lea rcx, [rbp - 0x80]
call fcn.14001cb10
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x1401080e8
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x14010819e
lea rcx, [rsp + 0x60]
call fcn.14001cb10
add rdi, 0x20
jmp 0x140107cca
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, dword [rax]
mov dword [rsp + 0x28], r8d
lea rax, str.Remove_the_db_file_failed:_d
mov r9d, 0x216
jmp 0x1401081ed
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Remove_the_wal_file_failed:_d
mov r9d, 0x21c
jmp 0x1401081e9
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Remove_the_shm_file_failed:_d
mov r9d, 0x222
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, str.DistributedDB::GenericKvDB::RemoveDbFiles
lea rdx, [0x1402c0bc8]
mov ecx, 3
call fcn.1400cc1d0
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
mov eax, 0xfffffbe4
jmp 0x140108272
cmp qword [rbx + 0x18], 0x10
jb 0x140108226
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
test eax, eax
je 0x140108270
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_directory:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x227
lea r8, str.DistributedDB::GenericKvDB::RemoveDbFiles
lea rdx, [0x1402c0bc8]
mov ecx, 3
call fcn.1400cc1d0
mov eax, 0xfffffbe4
jmp 0x140108272
xor eax, eax
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret