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

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0xe10]
sub rsp, 0xf10
mov rax, qword [0x1800c8010]
xor rax, rsp
mov qword [rbp + 0xdf0], rax
mov rbx, r8
mov r15, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x9d0]
call fcn.180059570
test rbx, rbx
je 0x1800099f0
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rdx, rbx
mov rcx, rdi
call fcn.180009890
mov qword [rsp + 0xf08], rsi
lea rcx, [rbp + 0x9d0]
mov r8, r15
mov qword [rsp + 0xf00], r12
mov edx, 0x104
call fcn.18005d82c
lea r8, [0x180098370]
mov edx, 0x104
lea rcx, [rbp + 0x9d0]
call fcn.18005d894
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x9d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180009cdb
xor r12d, r12d
nop
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180009cba
movzx ecx, word [rsp + 0x6c]
movzx eax, word [rsp + 0x6e]
cmp cx, 0x2e
jne 0x180009a8d
test ax, ax
je 0x180009a50
cmp cx, cx
jne 0x180009a8d
cmp ax, cx
jne 0x180009a8d
cmp word [rsp + 0x70], r12w
je 0x180009a50
xor edx, edx
mov r8d, 0x208
test byte [rsp + 0x40], 0x10
je 0x180009b6c
lea rcx, [rbp + 0x190]
call fcn.180059570
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.180059570
test rbx, rbx
je 0x180009ad9
mov r8, rbx
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.18005d894
lea r8, [0x180098384]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.18005d894
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.18005d894
mov r8, r15
lea rcx, [rbp + 0x3a0]
mov edx, 0x104
call fcn.18005d894
lea r8, [0x180098384]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.18005d894
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.18005d894
lea r8, [rbp + 0x190]
mov rcx, rdi
lea rdx, [rbp + 0x3a0]
call fcn.180009990
test eax, eax
jne 0x180009a50
jmp 0x180009cdb
lea rcx, [rbp + 0x5b0]
call fcn.180059570
xor edx, edx
lea rcx, [rbp + 0x7c0]
mov r8d, 0x208
call fcn.180059570
test rbx, rbx
je 0x180009ba5
mov r8, rbx
lea rcx, [rbp + 0x5b0]
mov edx, 0x104
call fcn.18005d82c
lea r8, [0x180098384]
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.18005d894
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.18005d894
mov r8, r15
lea rcx, [rbp + 0x7c0]
mov edx, 0x104
call fcn.18005d894
lea r8, [0x180098384]
mov edx, 0x104
lea rcx, [rbp + 0x7c0]
call fcn.18005d894
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x7c0]
call fcn.18005d894
test rdi, rdi
je 0x180009cae
cmp dword [rdi], 2
jne 0x180009ca2
mov rsi, qword [rdi + 8]
lea rcx, [rbp + 0xbe0]
xor edx, edx
mov r8d, 0x208
call fcn.180059570
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0xbe0]
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0x5b0]
mov dword [rsp + 0x28], 0x206
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x180009cdb
lea r8, [rbp + 0x7c0]
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0xbe0]
mov rcx, rsi
call fcn.180008eb0
mov dword [0x1800cb320], eax
test eax, eax
je 0x180009a50
jmp 0x180009cdb
mov dword [0x1800cb320], 0x80000
jmp 0x180009cdb
mov dword [0x1800cb320], 0x10000
jmp 0x180009cdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
cmp eax, 0x12
jne 0x180009cd5
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x180009cdd
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov r12, qword [rsp + 0xf00]
mov rsi, qword [rsp + 0xf08]
mov rcx, qword [rbp + 0xdf0]
xor rcx, rsp
call fcn.1800555d0
add rsp, 0xf10
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret