Function at 0x14001d9d0
Capabilities:
Enumerate files on windows
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x300
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, r9
mov r12, rdx
mov r15, rcx
mov rsi, qword [rcx + 0x10]
test rsi, rsi
jne 0x14001da6f
test byte [0x1400512b0], 1
je 0x14001da36
lea r8, str.tsPath_must_not_be_empty
lea edx, [rsi + 1]
lea rcx, str.ForceDeleteFiles
call fcn.1400206a0
nop
cmp qword [r15 + 0x18], 8
jb 0x14001da45
mov rcx, qword [r15]
call fcn.140021650
mov qword [r15 + 0x18], 7
xor esi, esi
mov qword [r15 + 0x10], rsi
mov word [r15], si
cmp qword [r12 + 0x18], 8
jb 0x14001da68
mov rcx, qword [r12]
call fcn.140021650
xor eax, eax
jmp 0x14001de75
mov edx, 0x2f
xor r8d, r8d
call fcn.14001fe50
mov r13d, 1
or rbx, 0xffffffffffffffff
mov rcx, r15
mov r8, rbx
cmp rax, rbx
je 0x14001daab
lea edx, [rbx + 0x30]
call fcn.14000d170
lea rcx, [rsi - 1]
cmp rax, rcx
je 0x14001dad0
lea rdx, [0x140038e40]
jmp 0x14001dac5
mov edx, 0x5c
call fcn.14000d170
lea rcx, [rsi - 1]
cmp rax, rcx
je 0x14001dad0
lea rdx, [0x140040d4c]
mov r8, r13
mov rcx, r15
call fcn.14000efd0
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.14000ece0
nop
test byte [0x1400512b0], 4
je 0x14001db13
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
lea r8, str.Remove_file_s___s
mov edx, 3
lea rcx, str.ForceDeleteFiles
call fcn.1400206a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor esi, esi
mov qword [rsp + 0x58], rsi
mov r14d, esi
test rdi, rdi
je 0x14001dbd6
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
mov r8, r13
lea rdx, [0x140042098]
lea rcx, [rbp - 0x80]
call fcn.14000e180
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp word [rdi], si
jne 0x14001db70
mov ebx, esi
jmp 0x14001db7a
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001db70
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000e180
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140004a60
mov r14d, eax
cmp qword [rsp + 0x78], 8
jb 0x14001dbb3
mov rcx, qword [rsp + 0x60]
call fcn.140021650
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp qword [rbp - 0x68], 8
jb 0x14001dbd6
mov rcx, qword [rbp - 0x80]
call fcn.140021650
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
movsxd r14, r14d
mov rax, qword [rsp + 0x48]
cmp rdi, 0xffffffffffffffff
je 0x14001ddd6
mov r12d, dword [rbp + 0x250]
nop dword [rax]
nop word [rax + rax]
lea r8, [rbp - 0x24]
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14000eda0
mov rbx, rax
lea rax, [rsp + 0x20]
cmp rax, rbx
je 0x14001dc6f
cmp qword [rsp + 0x38], 8
jb 0x14001dc4f
mov rcx, qword [rsp + 0x20]
call fcn.140021650
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000da70
cmp qword [rbp - 0x68], 8
jb 0x14001dc7f
mov rcx, qword [rbp - 0x80]
call fcn.140021650
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x14001ddac
test r14, r14
je 0x14001dce1
mov rdi, rsi
jle 0x14001dcdc
mov rbx, qword [rsp + 0x48]
nop dword [rax]
cmp qword [rbx + 0x18], 8
jb 0x14001dcbc
mov rdx, qword [rbx]
jmp 0x14001dcbf
mov rdx, rbx
lea rcx, [rbp - 0x24]
call fcn.140022158
test eax, eax
je 0x14001dda7
inc rdi
add rbx, 0x20
cmp rdi, r14
jl 0x14001dcb0
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, 0x80
call fcn.140023d44
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140023ec4
test eax, eax
je 0x14001ddac
mov eax, dword [0x1400512b0]
test al, 2
je 0x14001dd53
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
lea r8, str.Fail_to_remove_file__s_n
mov edx, 2
lea rcx, str.ForceDeleteFiles
call fcn.1400206a0
mov eax, dword [0x1400512b0]
test r12d, r12d
je 0x14001dda2
test al, 2
je 0x14001dd85
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
lea r8, str.Mark_to_remove_file__s_in_next_reboot_n
mov edx, 2
lea rcx, str.ForceDeleteFiles
call fcn.1400206a0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r13d, esi
jmp 0x14001ddac
mov rdi, qword [rsp + 0x40]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001dc20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12, qword [rbp + 0x248]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14001de1d
mov rbx, rax
mov rdi, qword [rsp + 0x50]
cmp rax, rdi
je 0x14001de14
cmp qword [rbx + 0x18], 8
jb 0x14001ddf7
mov rcx, qword [rbx]
call fcn.140021650
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
add rbx, 0x20
cmp rbx, rdi
jne 0x14001dde8
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.140021650
nop
cmp qword [rsp + 0x38], 8
jb 0x14001de2f
mov rcx, qword [rsp + 0x20]
call fcn.140021650
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
cmp qword [r15 + 0x18], 8
jb 0x14001de51
mov rcx, qword [r15]
call fcn.140021650
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rsi
mov word [r15], si
cmp qword [r12 + 0x18], 8
jb 0x14001de72
mov rcx, qword [r12]
call fcn.140021650
mov eax, r13d
mov qword [r12 + 0x18], 7
mov qword [r12 + 0x10], rsi
mov word [r12], si
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret