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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x88
mov rsi, qword [rsp + 0xd8]
xor ebx, ebx
mov rdx, qword [rsi + 0x20470]
mov rax, qword [rsi + 0x20480]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
mov qword [rsi + 0x20498], rdx
cmp qword [rsi + 0x20478], rbx
jne 0x140036752
cmp qword [rsi + 0x20488], 2
jne 0x140036752
mov rax, qword [rsi + 0x20460]
cmp word [rax + 2], 0x3a
jne 0x140036752
mov dword [rsi + 0x10250], 0x2e
mov qword [rsi + 0x20478], 1
mov byte [rsp + 0x40], bl
jmp 0x14003675e
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x40], al
mov r8, qword [rsi + 0x20478]
lea rcx, [rsi + 0x250]
mov eax, 0x8000
lea rcx, [rcx + rdx*2]
sub rax, rdx
mov qword [rsp + 0x68], rax
cmp r8, rax
jb 0x140036791
mov eax, 1
add rsp, 0x88
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], rbp
lea r8, [r8*2 + 2]
lea rdx, [rsi + 0x10250]
mov qword [rsp + 0x78], rdi
call fcn.1400a9530
lea rcx, [rsi + 0x250]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
setne bl
test ebx, ebx
je 0x140036800
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov edx, ebp
mov rcx, rsi
call fcn.140050fb0
test al, al
je 0x140036800
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x1400367e0
mov rbp, qword [0x140101a58]
mov qword [rsp + 0x60], rbp
mov qword [rbp + 0x10], rsi
test ebx, ebx
je 0x1400369b1
nop dword [rax + rax]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
cmp byte [rcx], 0x75
jne 0x140036870
mov rbp, qword [rsp + 0xa8]
mov rsi, rax
nop dword [rax]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x48]
mov r8, rbp
mov edx, 2
call fcn.14002cc90
mov rcx, qword [rsi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x48]
cmp rax, rcx
je 0x140036840
mov rsi, qword [rsp + 0xd8]
jmp 0x14003688e
mov r8, qword [rsp + 0xa8]
lea r9, [rsp + 0x48]
mov edx, 3
call fcn.14002cc90
mov ebx, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400368c1
cmp ebx, 6
jne 0x140036bb5
cmp rax, qword [rsp + 0xa0]
je 0x1400368cb
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036b9e
cmp ebx, 1
je 0x1400368cb
cmp ebx, 6
jne 0x1400368b1
mov rbx, qword [rsp + 0xc0]
test rbx, rbx
je 0x14003696e
mov rax, qword [0x140101a58]
mov qword [0x140108950], rbx
cmp byte [rax + 0x139], 0
je 0x14003693b
movsxd rax, dword [0x140106dd8]
lea rcx, [0x140000000]
mov qword [rcx + rax*8 + 0x107420], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140106dd8]
lea r8, [0x140000000]
mov dword [r8 + rdx*4 + 0x106de0], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140106dd8], edx
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14006be80
mov ebx, eax
cmp eax, 1
jne 0x1400368b1
mov rcx, qword [0x140108150]
lea ebx, [rax + 4]
call fcn.14005e6b0
test eax, eax
jne 0x1400368b1
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
je 0x1400369a0
mov edx, ebp
mov rcx, rsi
call fcn.140050fb0
test al, al
jne 0x140036980
mov rbp, qword [rsp + 0x60]
inc qword [rbp + 8]
test ebx, ebx
jne 0x140036820
cmp rdi, 0xffffffffffffffff
je 0x1400369c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rsp + 0x40], 0
je 0x140036b99
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
lea rax, [rsi + rcx*2]
lea rcx, [rsi + 0x250]
mov dword [rax + 0x250], 0x2a
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0xd8], rax
cmp rax, 0xffffffffffffffff
je 0x140036b99
mov eax, 0x8000
sub rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
nop
test byte [rsi], 0x10
je 0x140036b72
cmp word [rsi + 0x2c], 0x2e
jne 0x140036a3e
movzx eax, word [rsi + 0x2e]
test ax, ax
je 0x140036b72
cmp ax, 0x2e
jne 0x140036a3e
cmp word [rsi + 0x30], 0
je 0x140036b72
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2 + 0x2c], 0
jne 0x140036a42
lea rax, [rdi + 1]
cmp rax, qword [rsp + 0x68]
jae 0x140036b72
mov rax, qword [rsp + 0x50]
lea rbx, [rdi + rdi]
add rax, 0x128
lea rdx, [rsi + 0x2c]
mov r8, rbx
lea rcx, [rsi + rax*2]
call fcn.1400a9530
mov rcx, qword [rsp + 0x50]
lea rdx, [rsi + 0x234]
lea rax, [rsi + rcx*2]
mov dword [rbx + rax + 0x250], 0x5c
lea rax, [rcx + 1]
add rax, rdi
mov qword [rsi + 0x20470], rax
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140036ab0
test rbx, rbx
jne 0x140036ac6
lea rdx, [rsi + 0x2c]
mov rbx, rdi
lea rax, [rbx + 1]
cmp rax, qword [rsp + 0x60]
jae 0x140036b72
mov rcx, qword [rsp + 0x58]
lea rdi, [rbx + rbx]
mov r8, rdi
lea rbp, [rsi + rcx*2]
lea rcx, [rbp + 0x10458]
call fcn.1400a9530
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xa8]
inc rax
mov rcx, qword [rsp + 0xa0]
add rax, rbx
mov dword [rdi + rbp + 0x10458], 0x5c
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r9, rbp
mov qword [rsi + 0x20480], rax
mov r8, rdi
movzx eax, byte [rsp + 0x40]
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.1400366d0
mov ebx, eax
cmp eax, 1
jne 0x140036bdb
cmp byte [rdi], 0
jne 0x140036b8b
cmp qword [rbp], 0
jne 0x140036b8b
mov rcx, qword [rsp + 0xd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140036a10
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
add rsp, 0x88
pop rsi
pop rbx
ret
cmp rax, qword [rsp + 0xa0]
jne 0x1400368a6
mov rax, qword [rsp + 0xb0]
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036b9e
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036b9e