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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x9e8]
sub rsp, 0xae8
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov rdi, r8
mov r15, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3a0]
call fcn.18029c350
lea rax, [rbp + 0x3a0]
mov rcx, r15
sub rcx, rax
lea rdx, [rbp + 0x3a0]
mov r8d, 0x104
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1801aee53
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1801aee53
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x1801aee31
test r8, r8
lea rax, [rdx - 2]
lea rcx, [rbp + 0x3a0]
cmovne rax, rdx
xor r12d, r12d
sub rcx, 2
mov word [rax], r12w
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801aee70
mov eax, dword [0x180374b30]
mov dword [rcx], eax
lea rcx, [rbp + 0x3a0]
sub rcx, 2
nop
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801aee90
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1801aeea0
lea rcx, [rbp + 0x3a0]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801aeec0
mov eax, dword [0x18038ace8]
lea rdx, [rsp + 0x40]
mov dword [rcx], eax
movzx eax, word [0x18038acec]
mov word [rcx + 4], ax
lea rcx, [rbp + 0x3a0]
mov qword [rsp + 0xae0], rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1801af1fe
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1801af1dd
movzx ecx, word [rsp + 0x6c]
cmp cx, word [0x1803844ec]
movzx eax, word [rsp + 0x6e]
jne 0x1801aef42
cmp ax, word [0x1803844ee]
je 0x1801aef10
cmp cx, word [0x180388a4c]
jne 0x1801aef62
cmp ax, word [0x180388a4e]
jne 0x1801aef62
movzx eax, word [rsp + 0x70]
cmp ax, word [0x180388a50]
je 0x1801aef10
xor edx, edx
mov r8d, 0x208
test byte [rsp + 0x40], 0x10
je 0x1801af031
lea rcx, [rbp + 0x5b0]
call fcn.18029c350
lea rcx, [rbp + 0x5b0]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801aef90
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1801aefa0
lea rcx, [rbp + 0x5b0]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801aefc0
mov eax, dword [0x180374b30]
mov dword [rcx], eax
lea rax, [rbp + 0x5b0]
sub rax, 2
nop
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x1801aefe0
lea r8, [rsp + 0x6c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x1801af000
lea r8, [rbp + 0x5b0]
mov rdx, r15
mov rcx, rsi
call fcn.1801aedd0
test eax, eax
jne 0x1801aef10
jmp 0x1801af1fe
lea rcx, [rbp + 0x190]
call fcn.18029c350
lea rax, [rbp + 0x190]
mov r8, r15
sub r8, rax
lea rcx, [rbp + 0x190]
mov edx, 0x104
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1801af083
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1801af083
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1801af060
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
lea rcx, [rbp + 0x190]
sub rcx, 2
mov word [rax], r12w
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801af0a0
mov eax, dword [0x180374b30]
lea rdx, [rbp + 0x190]
sub rdx, 2
mov dword [rcx], eax
nop
cmp word [rdx + 2], r12w
lea rdx, [rdx + 2]
jne 0x1801af0c0
xor r8d, r8d
nop
movzx ecx, word [rdi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x1801af0d0
lea rcx, [rbp + 0x190]
sub rcx, 2
nop
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801af0f0
mov dword [rcx], eax
lea rcx, [rbp + 0x190]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1801af110
lea r8, [rsp + 0x6c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1801af130
test rsi, rsi
je 0x1801af1d1
cmp dword [rsi], 2
jne 0x1801af1c5
mov rbx, qword [rsi + 8]
lea rcx, [rbp + 0x7c0]
xor edx, edx
mov r8d, 0x208
call fcn.18029c350
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x7c0]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x6c]
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 0x1801af1fe
lea r8, [rbp + 0x190]
mov rcx, rbx
lea rdx, [rbp + 0x7c0]
call fcn.1801ae080
mov dword [0x18048a424], eax
test eax, eax
je 0x1801aef10
jmp 0x1801af1fe
mov dword [0x18048a424], 0x80000
jmp 0x1801af1fe
mov dword [0x18048a424], 0x10000
jmp 0x1801af1fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
cmp eax, 0x12
jne 0x1801af1f8
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x1801af200
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rbx, qword [rsp + 0xae0]
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0xae8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret