Function at 0x14010851c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r13b, dl
mov rbx, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x58], r8
xor edi, edi
or eax, 0xffffffff
cmp r8d, eax
jne 0x14010856d
shr r8, 0x20
cmp r8d, eax
mov r15b, 1
je 0x140108570
mov r15b, dil
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x140108583
mov eax, 0x80070057
jmp 0x140108946
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], di
cmp qword [rcx + 0x18], 8
jb 0x14010859e
mov rcx, qword [rcx]
mov rdx, rbx
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1401085d2
lea r8, [0x1403a9ce8]
lea rcx, [rsp + 0x78]
call fcn.1400b9f70
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14008aed0
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
jmp 0x1401085db
lea rcx, [rbp - 0x68]
call fcn.14007d520
lea r8, [0x1403bb73c]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call fcn.1400b9f70
nop
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140108691
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14010867b
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x18], 8
jb 0x14010863d
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea rcx, str.Failed_deleting_folder_content
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044f4f2]
mov rcx, rax
call fcn.140005ba8
test edi, edi
jle 0x140108931
movzx edi, di
or edi, 0x80070000
jmp 0x140108931
mov esi, edi
mov ebx, 0x2e
lea r8, [rbp + 0xc]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400b9f70
nop
test byte [rbp - 0x20], 0x10
je 0x140108724
movzx ecx, word [rbp + 0xc]
movzx eax, bx
sub ecx, eax
jne 0x1401086c5
movzx ecx, word [rbp + 0xe]
movzx eax, di
sub ecx, eax
test ecx, ecx
je 0x14010884c
movzx ecx, word [rbp + 0xc]
movzx eax, bx
sub ecx, eax
jne 0x1401086ec
movzx ecx, word [rbp + 0xe]
movzx eax, bx
sub ecx, eax
jne 0x1401086ec
movzx ecx, word [rbp + 0x10]
movzx eax, di
sub ecx, eax
test ecx, ecx
je 0x14010884c
lea rcx, [rsp + 0x78]
test r15b, r15b
je 0x140108712
or eax, 0xffffffff
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov r8, qword [rsp + 0x50]
mov dl, 1
jmp 0x14010871a
mov r8, qword [rsp + 0x58]
mov dl, r13b
call fcn.14010851c
jmp 0x14010884c
test r15b, r15b
jne 0x1401087c5
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0xc]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
nop dword [rax + rax]
cmp eax, 1
jne 0x1401087c5
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14010884c
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rbp - 0xc]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x68], rcx
lea rcx, str.LastWriteTime_is_fresh._Skip_deleting_the_file
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044f154]
mov rcx, rax
call fcn.1400054ec
jmp 0x14010884c
lea rcx, [rsp + 0x78]
call fcn.14025da28
mov edi, eax
test eax, 0xfffffffc
jne 0x1401087dd
cmp eax, 1
jne 0x14010884a
test edi, edi
jg 0x1401087e5
mov esi, edi
jmp 0x1401087ee
movzx esi, di
or esi, 0x80070000
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14010884a
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rcx
lea rcx, str.Failed_deleting_file
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044f069]
mov rcx, rax
call fcn.140005ba8
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140108698
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test r13b, r13b
mov rbx, qword [rsp + 0x70]
je 0x14010892f
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14010889b
mov rdx, qword [rbx]
lea rcx, [rsp + 0x78]
call fcn.14008c350
lea rcx, [rsp + 0x78]
call fcn.14025da28
mov edi, eax
lea rcx, [rsp + 0x78]
call fcn.14007a7c0
test edi, 0xfffffffc
jne 0x1401088c8
cmp edi, 1
jne 0x14010892f
test edi, edi
jg 0x1401088d0
mov esi, edi
jmp 0x1401088d9
movzx esi, di
or esi, 0x80070000
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14010892f
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x18], 8
jb 0x1401088f1
mov rbx, qword [rbx]
mov qword [rsp + 0x70], rbx
lea rcx, str.Failed_deleting_folder
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044f21c]
mov rcx, rax
call fcn.140005ba8
mov edi, esi
lea rcx, [rbp - 0x48]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x68]
call fcn.14007a7c0
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140112420
add rsp, 0x340
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret