Function at 0x140021068
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
mov r13, qword [rcx + 0x18]
test r13, r13
je 0x140021345
lea r14, [rcx + 8]
lea r12, [r13 - 1]
cmp r12, qword [r14 + 0x10]
jb 0x1400210a0
xor r15d, r15d
jmp 0x1400210aa
lfence
mov rax, qword [r14]
mov r15, qword [rax + r12*8]
and qword [rbp + 0x48], 0
lea rdi, [r15 + 0x10]
xor esi, esi
mov rcx, qword [r15 + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14002110f
mov rcx, qword [r15]
lea r8, [rbp + 0x58]
and qword [rbp + 0x58], 0
lea rdx, [0x14005959c]
call fcn.14001ff84
mov esi, eax
test eax, eax
js 0x1400211e0
mov rbx, qword [rbp + 0x58]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov qword [r15 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400211ba
mov rcx, rbx
call fcn.140033d70
jmp 0x140021126
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x140021203
or r9d, 0xffffffff
mov dword [rsp + 0x20], 1
or edx, r9d
lea r8, [0x14005d854]
lea rcx, [rdi + 0x2c]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
je 0x1400210b5
or r9d, 0xffffffff
mov dword [rsp + 0x20], 1
or edx, r9d
lea r8, [0x1400686cc]
lea rcx, [rdi + 0x2c]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
je 0x1400210b5
mov eax, dword [rdi]
mov edx, 0x410
and eax, edx
cmp eax, edx
je 0x1400210b5
mov rbx, rdi
test esi, esi
jns 0x140021221
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, esi
mov edx, 0x53
call fcn.140002204
jmp 0x140021221
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rbx
mov edi, eax
call fcn.140033d70
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
jmp 0x14002121d
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, eax
mov edx, 0x41
call fcn.1400068cc
mov rcx, qword [rbp + 0x58]
call fcn.140033d70
jmp 0x14002121d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rbx, qword [rbp + 0x48]
lea eax, [rsi + 0x7ff8fffe]
test eax, 0xffffffef
je 0x1400212ca
cmp esi, 0x80070003
jne 0x14002124a
mov rcx, qword [r15]
call fcn.14002024c
test al, al
jne 0x140021376
test esi, esi
js 0x140021403
test byte [rbx], 0x10
lea rdx, [rbx + 0x2c]
mov rcx, qword [r15]
je 0x1400213d0
and qword [rbp + 0x60], 0
lea r8, [rbp + 0x60]
call fcn.14001ff84
mov rbx, qword [rbp + 0x60]
mov edi, eax
test eax, eax
js 0x1400213ac
and qword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140020f5c
mov edi, eax
test eax, eax
js 0x140021389
mov rdx, qword [rbp + 0x48]
mov rcx, r14
call fcn.140005094
mov edi, eax
test eax, eax
js 0x140021382
and qword [rbp + 0x48], 0
xor ecx, ecx
call fcn.140021434
mov rcx, rbx
call fcn.140033d70
mov eax, 1
jmp 0x14002133c
cmp r12, qword [r14 + 0x10]
jae 0x140021422
cmp byte [r14 + 0x18], 0
je 0x140021315
lfence
mov rax, qword [r14]
mov rbx, qword [rax + r12*8]
test rbx, rbx
je 0x140021315
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140021305
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
or qword [rbx + 8], 0xffffffffffffffff
mov rcx, qword [rbx]
call fcn.140033d70
mov rcx, rbx
call fcn.140033d70
mov rax, qword [r14]
mov r8, qword [r14 + 0x10]
sub r8, r12
lea rcx, [rax + r12*8]
lea rdx, [rcx + 8]
lea r8, [r8*8 - 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
dec qword [r14 + 0x10]
or rax, 0xffffffffffffffff
add r13, rax
jne 0x140021091
mov ebx, 0x80070012
mov edx, 0xa8
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, ebx
call fcn.140002204
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 0x800700ce
mov edx, 0x8b
jmp 0x14002134f
mov edx, 0x9a
jmp 0x14002138e
mov edx, 0x99
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, eax
call fcn.1400068cc
mov rcx, qword [rbp + 0x48]
call fcn.140021434
jmp 0x1400213c4
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, eax
mov edx, 0x96
call fcn.1400068cc
mov rcx, rbx
call fcn.140033d70
mov eax, edi
jmp 0x140021364
mov r8, qword [rbp + 0x50]
call fcn.14001ff84
mov ebx, eax
test eax, eax
jns 0x1400213fc
mov edx, 0xa3
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, ebx
call fcn.1400068cc
jmp 0x140021362
xor eax, eax
jmp 0x140021364
mov rcx, qword [rbp + 0x40]
lea r8, str.onecoreprintscan_appxpackaginglibcore_srcdirectorywalker.cpp
mov r9d, esi
mov edx, 0x8f
call fcn.140002204
mov eax, esi
jmp 0x140021364
mov ebx, 0x80070057
mov edx, 0x86
jmp 0x1400213e4