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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov byte [rsp + 0x30], r9b
mov rsi, r8
mov rbx, rdx
mov qword [rbp - 0x80], rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x78], rax
lea edx, [rax + 1]
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x14034c84c]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401e4176
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1401e4458
lea rdx, [0x140346ce0]
mov rbx, rax
nop dword [rax]
test byte [rbp - 0x30], 0x10
je 0x1401e429a
movzx ecx, word [rbp - 4]
movzx eax, word [rbp - 2]
cmp cx, word [0x140345c60]
jne 0x1401e41c8
cmp ax, word [0x140345c62]
je 0x1401e4432
cmp cx, word [0x14034c85c]
jne 0x1401e41eb
cmp ax, word [0x14034c85e]
jne 0x1401e41eb
movzx eax, word [rbp]
cmp ax, word [0x14034c860]
je 0x1401e4432
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e41f3
xor eax, eax
mov qword [rsp + 0x68], rax
test ebx, ebx
jne 0x1401e420f
mov qword [rsp + 0x60], rdx
jmp 0x1401e4235
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x68], 0
jle 0x1401e4266
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
movzx eax, byte [rbp + 0x280]
mov byte [rsp + 0x20], al
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1401e40d0
nop
cmp dword [rbp - 0x50], 0
jle 0x1401e442d
mov rcx, qword [rbp - 0x58]
jmp 0x1401e4428
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e42a2
xor eax, eax
mov qword [rsp + 0x58], rax
test ebx, ebx
jne 0x1401e42be
mov qword [rsp + 0x50], rdx
jmp 0x1401e42e4
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400e3270
nop
cmp dword [rsp + 0x58], 0
jle 0x1401e4311
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e4320
xor eax, eax
mov qword [rsp + 0x48], rax
test ebx, ebx
jne 0x1401e4343
lea rax, [0x140346ce0]
mov qword [rsp + 0x40], rax
jmp 0x1401e4369
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x68]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x48], 0
jle 0x1401e439a
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
xor r8d, r8d
lea rcx, [rbp - 0x78]
cmp byte [rbp + 0x280], r8b
je 0x1401e43d1
lea rdx, [0x14034f908]
call fcn.1401fce20
test al, al
je 0x1401e440e
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1401e4a30
jmp 0x1401e440e
lea rdx, str..txt
call fcn.1401fce20
test al, al
jne 0x1401e43f8
xor r8d, r8d
lea rdx, str..cookie
lea rcx, [rbp - 0x78]
call fcn.1401fce20
test al, al
je 0x1401e440e
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1401e4490
nop
cmp dword [rbp - 0x60], 0
jle 0x1401e441e
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
nop
cmp dword [rbp - 0x70], 0
jle 0x1401e442d
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
mov rbx, qword [rsp + 0x38]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
lea rdx, [0x140346ce0]
jne 0x1401e41a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp dword [rbp - 0x40], 0
jle 0x1401e4467
mov rcx, qword [rbp - 0x48]
call fcn.1402b7350
mov al, 1
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x338
pop rdi
pop rsi
pop rbx
pop rbp
ret