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

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x5f8]
sub rsp, 0x6e8
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor r10d, r10d
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
mov esi, r10d
mov dword [rsp + 0x20], r10d
mov dword [rsp + 0x24], r10d
mov dword [rsp + 0x28], r10d
test rcx, rcx
je 0x1400eac02
test rdx, rdx
je 0x1400eac02
test r8, r8
je 0x1400eac02
test r9, r9
je 0x1400eac02
mov qword [r11 + 8], rbx
lea r9, [rbp + 0x1b0]
mov r8, rax
mov qword [r11 - 0x18], rdi
mov ebx, r10d
mov qword [rsp + 0x30], r10
sub r8, r9
mov edx, 0x106
lea rcx, [rbp + 0x1b0]
nop dword [rax]
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x1400ea9e4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400ea9e4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400ea9c0
jmp 0x1400ea9e9
test rdx, rdx
jne 0x1400ea9ed
sub rcx, 2
mov word [rcx], r10w
lea rax, [rbp + 0x1b0]
mov ecx, 0x106
nop dword [rax]
cmp word [rax], bx
je 0x1400eaa10
add rax, 2
dec rcx
jne 0x1400eaa00
jmp 0x1400eaa6e
test rcx, rcx
je 0x1400eaa6e
mov edx, 0x106
sub rdx, rcx
mov ecx, 0x106
sub rcx, rdx
lea rax, [rbp + rdx*2 + 0x1b0]
je 0x1400eaa66
lea r9, [0x140102624]
lea r8, [rcx + rdx + 0x7ffffef9]
sub r9, rax
test r8, r8
je 0x1400eaa61
movzx edx, word [r9 + rax]
test dx, dx
je 0x1400eaa61
mov word [rax], dx
add rax, 2
dec r8
dec rcx
jne 0x1400eaa41
jmp 0x1400eaa66
test rcx, rcx
jne 0x1400eaa6a
sub rax, 2
mov word [rax], r10w
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400eabd7
lea rdx, [0x14010244c]
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x1400eaab8
test byte [rsp + 0x60], 0x10
je 0x1400eaab3
mov dword [rsp + 0x20], 1
jmp 0x1400eaab8
mov esi, 1
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400eabb4
nop
lea rdx, [0x140102b24]
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x1400eab9e
test byte [rsp + 0x60], 0x10
je 0x1400eab88
mov r8, qword [rsp + 0x40]
inc dword [rsp + 0x20]
lea rax, [rbp + 0x3c0]
sub r8, rax
mov edx, 0x106
lea rcx, [rbp + 0x3c0]
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x1400eab37
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400eab37
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400eab13
jmp 0x1400eab3c
test rdx, rdx
jne 0x1400eab40
sub rcx, 2
xor eax, eax
lea rdx, [rbp - 0x74]
mov word [rcx], ax
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x3c0]
call fcn.1400ea920
mov eax, dword [rsp + 0x20]
add esi, dword [rsp + 0x24]
add eax, dword [rsp + 0x28]
add rbx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
jmp 0x1400eab9e
mov eax, dword [rbp - 0x80]
inc esi
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x3c], eax
add rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400eaad0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x20]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
mov rcx, rdi
mov dword [rax], esi
mov rax, qword [rsp + 0x48]
mov qword [rax], rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x700]
mov rdi, qword [rsp + 0x6e0]
xor eax, eax
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.14004ae00
add rsp, 0x6e8
pop rsi
pop rbp
ret
mov eax, 0x80070057
jmp 0x1400eabe9