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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r13b, dl
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], r8
xor edi, edi
or eax, 0xffffffff
cmp r8d, eax
jne 0x14022d09e
shr r8, 0x20
cmp r8d, eax
mov sil, 1
je 0x14022d0a1
mov sil, dil
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x14022d0b4
mov eax, 0x80070057
jmp 0x14022d5ef
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], di
cmp qword [rcx + 0x18], 8
jb 0x14022d0d0
mov rcx, qword [rcx]
mov rdx, rbx
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14022d105
lea r8, [0x1403ce9d8]
lea rcx, [rsp + 0x58]
call fcn.140067914
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140085570
lea rcx, [rsp + 0x58]
call fcn.140055f70
jmp 0x14022d10f
lea rcx, [rsp + 0x78]
call fcn.14006fe84
lea r8, [0x1403e7078]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140067914
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14022d220
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14022d20d
lea rax, str.Failed_deleting_folder_content
mov qword [rbp + 0x230], rax
mov qword [rbp + 0x238], 0x3e
cmp qword [rbx + 0x18], 8
jb 0x14022d193
mov rbx, qword [rbx]
lea r14, [0x1403cb630]
mov rax, rdi
test rbx, rbx
je 0x14022d1b2
mov r14, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14022d1a9
mov qword [rbp + 0x240], r14
lea eax, [rax*2 + 2]
mov dword [rbp + 0x248], eax
mov dword [rbp + 0x24c], edi
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], 4
lea rax, [rbp + 0x210]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404848a4]
call fcn.140001208
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x14022d5d9
lea r14, [0x1403cb630]
xor ebx, ebx
lea r8, [rbp - 0x14]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.140067914
nop
test byte [rbp - 0x40], 0x10
je 0x14022d2b4
movzx ecx, word [rbp - 0x14]
movzx eax, word [rbp - 0x12]
cmp cx, word [0x1403d5500]
jne 0x14022d261
cmp ax, word [0x1403d5502]
je 0x14022d48c
cmp cx, word [0x1403f3f90]
jne 0x14022d284
cmp ax, word [0x1403f3f92]
jne 0x14022d284
movzx eax, word [rbp - 0x10]
cmp ax, word [0x1403f3f94]
je 0x14022d48c
lea rcx, [rsp + 0x58]
test sil, sil
je 0x14022d2a2
or eax, 0xffffffff
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov r8, qword [rsp + 0x40]
mov dl, 1
jmp 0x14022d2aa
mov r8, qword [rsp + 0x38]
mov dl, r13b
call fcn.14022d044
jmp 0x14022d48c
test sil, sil
jne 0x14022d3aa
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x2c]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
nop dword [rax + rax]
cmp eax, 1
jne 0x14022d3aa
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14022d48c
lea rax, str.LastWriteTime_is_fresh._Skip_deleting_the_file
mov qword [rbp + 0x230], rax
mov qword [rbp + 0x238], 0x5e
xor r8d, r8d
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov rdx, r14
mov ecx, r8d
test rax, rax
je 0x14022d337
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r8w
jne 0x14022d32d
mov qword [rbp + 0x240], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x248], eax
mov dword [rbp + 0x24c], r8d
lea rax, [rbp - 0x2c]
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], 8
lea rax, [rsp + 0x38]
mov qword [rbp + 0x260], rax
mov qword [rbp + 0x268], 8
lea rax, [rbp + 0x210]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
lea rdx, [0x140484518]
mov rcx, r10
call fcn.140001208
jmp 0x14022d48a
lea rcx, [rsp + 0x58]
call fcn.14022cf84
mov dword [rsp + 0x30], eax
test eax, 0xfffffffc
jne 0x14022d3c8
cmp eax, 1
jne 0x14022d48c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14022d48c
lea rax, str.Failed_deleting_file
mov qword [rbp + 0x230], rax
mov qword [rbp + 0x238], MsiGetActiveDatabase
xor r8d, r8d
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov rdx, r14
mov ecx, r8d
test rax, rax
je 0x14022d432
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r8w
jne 0x14022d428
mov qword [rbp + 0x240], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x248], eax
mov dword [rbp + 0x24c], r8d
lea rax, [rsp + 0x30]
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], 4
lea rax, [rbp + 0x210]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
lea rdx, [0x1404847fc]
mov rcx, r10
call fcn.140001208
xor ebx, ebx
lea rcx, [rsp + 0x58]
call fcn.140055f70
lea rdx, [rbp - 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14022d229
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
xor esi, esi
test r13b, r13b
mov rbx, qword [rsp + 0x48]
je 0x14022d5d9
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14022d4dd
mov rdx, qword [rbx]
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x58]
call fcn.140055574
lea rcx, [rsp + 0x58]
call fcn.14022cf84
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.140055f70
mov eax, dword [rsp + 0x30]
test eax, 0xfffffffc
jne 0x14022d526
cmp eax, 1
jne 0x14022d5d9
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14022d5d9
lea rax, str.Failed_deleting_folder
mov qword [rbp + 0x230], rax
mov qword [rbp + 0x238], 0x2e
cmp qword [rbx + 0x18], 8
jb 0x14022d569
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x14022d581
mov r14, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x14022d578
mov qword [rbp + 0x240], r14
lea eax, [rax*2 + 2]
mov dword [rbp + 0x248], eax
mov dword [rbp + 0x24c], esi
lea rax, [rsp + 0x30]
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], 4
lea rax, [rbp + 0x210]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404844db]
call fcn.140001208
nop
lea rcx, [rbp - 0x68]
call fcn.140055f70
nop
lea rcx, [rsp + 0x78]
call fcn.140055f70
mov eax, edi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140356560
add rsp, 0x380
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret