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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xad8]
sub rsp, 0xbd8
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0xac0], rax
movzx esi, r9b
mov byte [rsp + 0x40], r9b
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor eax, eax
mov qword [rbp - 0x68], rax
lea edx, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.1401fcb40
mov eax, dword [rbp - 0x68]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x14034c84c]
mov rcx, qword [rbp - 0x70]
call fcn.1402ba94c
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.1401fde50
nop
lea r8, [rbp - 0x70]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x68], 0
jle 0x1401675f4
mov rcx, qword [rbp - 0x70]
call fcn.1402b7350
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140167617
xor bl, bl
jmp 0x140167a32
lea rdx, [0x140346ce0]
nop
test sil, sil
je 0x140167736
test byte [rbp + 0x70], 0x10
je 0x140167736
movzx ecx, word [rbp + 0x9c]
movzx eax, word [rbp + 0x9e]
cmp cx, word [0x140345c60]
jne 0x140167657
cmp ax, word [0x140345c62]
je 0x140167736
cmp cx, word [0x14034c85c]
jne 0x14016767d
cmp ax, word [0x14034c85e]
jne 0x14016767d
movzx eax, word [rbp + 0xa0]
cmp ax, word [0x14034c860]
je 0x140167736
lea rax, [rbp + 0x9c]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140167690
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x1401676ac
mov qword [rsp + 0x70], rdx
jmp 0x1401676d5
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x9c]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x78], 0
jle 0x140167705
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
movzx r9d, sil
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x20]
call fcn.140167550
nop
cmp dword [rbp - 0x18], 0
jle 0x14016772a
mov rcx, qword [rbp - 0x20]
call fcn.1402b7350
lea rdx, [0x140346ce0]
mov rbx, qword [rsp + 0x68]
test dword [rbp + 0x70], 0x400
je 0x140167a0b
lea rax, [rbp + 0x9c]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140167750
xor esi, esi
mov qword [rsp + 0x60], rsi
test ebx, ebx
jne 0x14016776c
mov qword [rsp + 0x58], rdx
jmp 0x140167795
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x9c]
mov rcx, qword [rsp + 0x58]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1401fde50
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x60], 0
jle 0x1401677c5
mov rcx, qword [rsp + 0x58]
call fcn.1402b7350
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 [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401679f2
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0x2c0]
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 0x1401679e8
cmp dword [rbp + 0x2c0], 0xa000000c
jne 0x1401679e8
movzx edi, word [rbp + 0x2ce]
shr edi, 1
movzx eax, word [rbp + 0x2cc]
shr rax, 1
lea rbx, [rbp + 0x2d4]
lea rbx, [rbx + rax*2]
lea rax, [0x140346ce0]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
mov r8d, edi
add r8, r8
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call fcn.1402b7460
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fde50
lea rcx, [0x140346ce0]
mov qword [rbp - 0x60], rcx
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
mov edx, dword [rbp - 0x74]
lea rcx, [rbp - 0x60]
call fcn.1401fcb40
movsxd r9, dword [rbp - 0x74]
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x60]
call fcn.1402ba94c
mov edx, dword [rbp - 0x74]
lea rcx, [rbp - 0x60]
call fcn.1401fde50
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x50]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x54]
mov eax, dword [rbp - 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x50]
call fcn.1402ba94c
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x50]
call fcn.1401fde50
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.1400d44c0
nop
lea r8, [rbp - 0x60]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x18]
call fcn.140167a60
nop
mov rdx, rax
mov rcx, qword [rbp - 0x30]
call fcn.140167c90
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x58]
mov rcx, qword [rbp - 0x30]
call fcn.140167cf0
nop
cmp dword [rbp + 0x40], 0
jle 0x140167985
mov rcx, qword [rbp + 0x38]
call fcn.1402b7350
cmp dword [rbp + 0x30], 0
jle 0x140167994
mov rcx, qword [rbp + 0x28]
call fcn.1402b7350
cmp dword [rbp + 0x20], 0
jle 0x1401679a4
mov rcx, qword [rbp + 0x18]
call fcn.1402b7350
nop
cmp dword [rbp + 0x10], 0
jle 0x1401679b4
mov rcx, qword [rbp + 8]
call fcn.1402b7350
nop
cmp dword [rbp - 0x48], 0
jle 0x1401679c3
mov rcx, qword [rbp - 0x50]
call fcn.1402b7350
cmp dword [rbp - 0x58], 0
jle 0x1401679d3
mov rcx, qword [rbp - 0x60]
call fcn.1402b7350
nop
cmp dword [rsp + 0x50], 0
jle 0x1401679e4
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
mov rdi, qword [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x78], 0
jle 0x140167a01
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
mov rbx, qword [rsp + 0x68]
movzx esi, byte [rsp + 0x40]
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
lea rdx, [0x140346ce0]
jne 0x140167620
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [rbp - 8], 0
jle 0x140167a41
mov rcx, qword [rbp - 0x10]
call fcn.1402b7350
movzx eax, bl
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0xbd8
pop rdi
pop rsi
pop rbx
pop rbp
ret