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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
and qword [rsp + 0x48], 0
mov rbx, r8
and qword [rbp - 0x80], 0
mov r8d, 0x250
mov qword [rsp + 0x70], rdx
xor edx, edx
mov qword [rsp + 0x78], rcx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x68], r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rsp + 0x78]
xor eax, eax
or qword [rbp - 0x78], 0xffffffffffffffff
xor edi, edi
xor esi, esi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1402b86cd
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1402b86cd
cmp qword [rsp + 0x68], rsi
je 0x1402b86cd
test rbx, rbx
je 0x1402b84a4
mov rdx, rbx
call fcn.1402b8280
mov ebx, eax
test eax, eax
jns 0x1402b8451
mov edx, eax
jmp 0x1402b86d4
mov rdx, qword [rbp - 0x70]
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1402b9090
mov ebx, eax
test eax, eax
js 0x1402b844a
mov rdx, qword [rsp + 0x68]
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x48]
call fcn.1402b9090
mov ebx, eax
test eax, eax
js 0x1402b844a
mov rbx, qword [rbp - 0x80]
lea rdx, str.__
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x1402b84b6
mov rax, rbx
mov qword [rsp + 0x58], rbx
jmp 0x1402b84f0
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1402b88e0
jmp 0x1402b8464
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, str.__
call fcn.1402b9090
mov ebx, eax
test eax, eax
jns 0x1402b84e6
mov edx, eax
call fcn.1402de908
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
jmp 0x1402b86d9
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp - 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x1402b8520
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1402b86d2
lea rdx, [0x140344690]
lea rcx, [rbp - 0x34]
call fcn.1402b8be4
test eax, eax
jne 0x1402b8688
lea rdx, [0x14034d688]
lea rcx, [rbp - 0x34]
call fcn.1402b8be4
test eax, eax
jne 0x1402b8688
lea rdx, [0x140368180]
lea rcx, [rbp - 0x34]
call fcn.1402b8be4
test eax, eax
jne 0x1402b8688
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x34]
call fcn.1402b9090
mov ebx, eax
test eax, eax
js 0x1402b85e6
mov rcx, qword [rbp - 0x70]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x34]
call fcn.1402b9090
mov ebx, eax
test eax, eax
js 0x1402b86ba
test byte [rbp - 0x60], 0x10
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
je 0x1402b85f7
mov eax, dword [rbp + 0x258]
test eax, eax
je 0x1402b8654
mov r9, qword [rsp + 0x68]
mov r8, rsi
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x250]
mov dword [rsp + 0x20], eax
call fcn.1402b8390
mov ebx, eax
test eax, eax
jns 0x1402b8654
mov edx, eax
call fcn.1402de908
mov rdi, qword [rsp + 0x30]
jmp 0x1402b86d9
lea rdx, str.__
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x1402b860f
mov rax, rdi
jmp 0x1402b862e
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, str.__
call fcn.1402b9090
mov ebx, eax
test eax, eax
js 0x1402b86a2
mov rax, qword [rsp + 0x50]
mov r9d, dword [rbp + 0x250]
mov r8, rsi
mov rcx, qword [rsp + 0x78]
mov rdx, rax
mov qword [rsp + 0x38], rax
call fcn.1402b80a4
mov ebx, eax
test eax, eax
js 0x1402b844a
mov rcx, rdi
call fcn.1402e0ad0
mov rcx, rsi
call fcn.1402e0ad0
mov rcx, qword [rsp + 0x38]
call fcn.1402e0ad0
xor edi, edi
xor esi, esi
xor eax, eax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rsi
mov rcx, qword [rbp - 0x78]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1402b8520
xor ebx, ebx
jmp 0x1402b86d9
mov edx, eax
call fcn.1402de908
mov rax, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x1402b86d9
mov edx, eax
call fcn.1402de908
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
jmp 0x1402b86d9
mov ebx, 0x80070057
mov edx, ebx
call fcn.1402de908
mov rcx, qword [rsp + 0x48]
call fcn.1402e0ad0
mov rcx, qword [rbp - 0x80]
call fcn.1402e0ad0
mov rcx, qword [rsp + 0x58]
call fcn.1402e0ad0
mov rcx, rdi
call fcn.1402e0ad0
mov rcx, rsi
call fcn.1402e0ad0
mov rcx, qword [rsp + 0x38]
call fcn.1402e0ad0
mov rax, qword [rbp - 0x78]
cmp rax, 0xffffffffffffffff
je 0x1402b8723
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0x308
pop rdi
pop rsi
pop rbx
pop rbp
ret