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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xb08]
sub rsp, 0xc08
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0xaf0], rax
movzx esi, r9b
mov byte [rsp + 0x40], r9b
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor eax, eax
mov qword [rbp - 0x28], rax
lea edx, [rax + 1]
lea rcx, [rbp - 0x30]
call fcn.1402028a0
mov eax, dword [rbp - 0x28]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x1403526ec]
mov rcx, qword [rbp - 0x30]
call fcn.1402c06dc
mov edx, 1
lea rcx, [rbp - 0x30]
call fcn.140203bb0
nop
lea r8, [rbp - 0x30]
mov rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.1400d4050
nop
cmp dword [rbp - 0x28], 0
jle 0x14016a2d4
mov rcx, qword [rbp - 0x30]
call fcn.1402bd0e0
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rbp - 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x14016a2f9
xor bl, bl
jmp 0x14016a8d1
lea rdx, [0x14034d1a0]
test sil, sil
je 0x14016a40c
test byte [rbp + 0xa0], 0x10
je 0x14016a40c
movzx ecx, word [rbp + 0xcc]
movzx eax, word [rbp + 0xce]
cmp cx, word [0x14034bd50]
jne 0x14016a33a
cmp ax, word [0x14034bd52]
je 0x14016a40c
cmp cx, word [0x1403526fc]
jne 0x14016a360
cmp ax, word [0x1403526fe]
jne 0x14016a360
movzx eax, word [rbp + 0xd0]
cmp ax, word [0x140352700]
je 0x14016a40c
lea rax, [rbp + 0xcc]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14016a370
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
jne 0x14016a38a
mov qword [rbp - 0x48], rdx
jmp 0x14016a3b0
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x40]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0xcc]
mov rcx, qword [rbp - 0x48]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.140203bb0
nop
lea r8, [rbp - 0x48]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.1400d4050
nop
cmp dword [rbp - 0x40], 0
jle 0x14016a3dc
mov rcx, qword [rbp - 0x48]
call fcn.1402bd0e0
movzx r9d, sil
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x60]
call fcn.14016a230
nop
cmp dword [rbp + 0x68], 0
jle 0x14016a401
mov rcx, qword [rbp + 0x60]
call fcn.1402bd0e0
lea rdx, [0x14034d1a0]
mov rbx, qword [rbp - 0x50]
test dword [rbp + 0xa0], 0x400
je 0x14016a8a7
lea rax, [rbp + 0xcc]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14016a430
xor esi, esi
mov qword [rbp - 0x58], rsi
test ebx, ebx
jne 0x14016a44a
mov qword [rbp - 0x60], rdx
jmp 0x14016a470
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0xcc]
mov rcx, qword [rbp - 0x60]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140203bb0
nop
lea r8, [rbp - 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400d4050
nop
cmp dword [rbp - 0x58], 0
jle 0x14016a49d
mov rcx, qword [rbp - 0x60]
call fcn.1402bd0e0
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [r9 + 3]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14016a88d
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0x2f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14016a883
mov eax, dword [rbp + 0x2f0]
cmp eax, 0xa000000c
jne 0x14016a6ce
movzx edi, word [rbp + 0x2fe]
shr edi, 1
movzx eax, word [rbp + 0x2fc]
shr rax, 1
lea rbx, [rbp + 0x304]
lea rbx, [rbx + rax*2]
lea rax, [0x14034d1a0]
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.1402028a0
mov r8d, edi
add r8, r8
mov rdx, rbx
mov rcx, qword [rbp - 0x80]
call fcn.1402bd1f0
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140203bb0
lea rcx, [0x14034d1a0]
mov qword [rsp + 0x48], rcx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x48]
call fcn.140203bb0
mov edx, dword [rbp - 0x74]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x74]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbp - 0x74]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400d5970
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x20]
call fcn.14016a900
nop
mov rdx, rax
mov rcx, qword [rbp - 0x18]
call fcn.14016ab30
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp - 0x18]
call fcn.14016ab90
nop
cmp dword [rbp + 0x48], 0
jle 0x14016a669
mov rcx, qword [rbp + 0x40]
call fcn.1402bd0e0
cmp dword [rbp + 0x38], 0
jle 0x14016a678
mov rcx, qword [rbp + 0x30]
call fcn.1402bd0e0
cmp dword [rbp + 0x28], 0
jle 0x14016a688
mov rcx, qword [rbp + 0x20]
call fcn.1402bd0e0
nop
cmp dword [rbp - 8], 0
jle 0x14016a698
mov rcx, qword [rbp - 0x10]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x60], 0
jle 0x14016a6a9
mov rcx, qword [rsp + 0x58]
call fcn.1402bd0e0
cmp dword [rsp + 0x50], 0
jle 0x14016a6bb
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x78], 0
jle 0x14016a87f
mov rcx, qword [rbp - 0x80]
jmp 0x14016a87a
cmp eax, 0xa0000003
jne 0x14016a883
movzx edi, word [rbp + 0x2fa]
shr edi, 1
movzx eax, word [rbp + 0x2f8]
shr rax, 1
lea rbx, [rbp + 0x300]
lea rbx, [rbx + rax*2]
lea rax, [0x14034d1a0]
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rbp - 0x68], rax
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1402028a0
mov r8d, edi
add r8, r8
mov rdx, rbx
mov rcx, qword [rbp - 0x70]
call fcn.1402bd1f0
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.140203bb0
lea rcx, [0x14034d1a0]
mov qword [rsp + 0x48], rcx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x48]
call fcn.140203bb0
mov edx, dword [rbp - 0x64]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x64]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbp - 0x64]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp]
call fcn.1400d5970
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp]
lea rcx, [rbp + 0x20]
call fcn.14016a900
nop
mov rdx, rax
mov rcx, qword [rbp - 0x18]
call fcn.14016ab30
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x18]
call fcn.14016ab90
nop
cmp dword [rbp + 0x48], 0
jle 0x14016a81e
mov rcx, qword [rbp + 0x40]
call fcn.1402bd0e0
cmp dword [rbp + 0x38], 0
jle 0x14016a82d
mov rcx, qword [rbp + 0x30]
call fcn.1402bd0e0
cmp dword [rbp + 0x28], 0
jle 0x14016a83d
mov rcx, qword [rbp + 0x20]
call fcn.1402bd0e0
nop
cmp dword [rbp + 8], 0
jle 0x14016a84d
mov rcx, qword [rbp]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x60], 0
jle 0x14016a85e
mov rcx, qword [rsp + 0x58]
call fcn.1402bd0e0
cmp dword [rsp + 0x50], 0
jle 0x14016a870
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x68], 0
jle 0x14016a87f
mov rcx, qword [rbp - 0x70]
call fcn.1402bd0e0
mov rdi, qword [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsp + 0x78], 0
jle 0x14016a89e
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
mov rbx, qword [rbp - 0x50]
movzx esi, byte [rsp + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
lea rdx, [0x14034d1a0]
jne 0x14016a300
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [rbp + 0x18], 0
jle 0x14016a8e0
mov rcx, qword [rbp + 0x10]
call fcn.1402bd0e0
movzx eax, bl
mov rcx, qword [rbp + 0xaf0]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0xc08
pop rdi
pop rsi
pop rbx
pop rbp
ret