Function at 0x140296e50
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 [0x14044e770]
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 0x14029718d
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14029718d
cmp qword [rsp + 0x68], rsi
je 0x14029718d
test rbx, rbx
je 0x140296f64
mov rdx, rbx
call fcn.140296d40
mov ebx, eax
test eax, eax
jns 0x140296f11
mov edx, eax
jmp 0x140297194
mov rdx, qword [rbp - 0x70]
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140297b50
mov ebx, eax
test eax, eax
js 0x140296f0a
mov rdx, qword [rsp + 0x68]
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x48]
call fcn.140297b50
mov ebx, eax
test eax, eax
js 0x140296f0a
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 0x140296f76
mov rax, rbx
mov qword [rsp + 0x58], rbx
jmp 0x140296fb0
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1402973a0
jmp 0x140296f24
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, str.__
call fcn.140297b50
mov ebx, eax
test eax, eax
jns 0x140296fa6
mov edx, eax
call fcn.1402ad3ac
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
jmp 0x140297199
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 0x140296fe0
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 0x140297192
lea rdx, [0x14030cae0]
lea rcx, [rbp - 0x34]
call fcn.1402976a4
test eax, eax
jne 0x140297148
lea rdx, [0x1403158a0]
lea rcx, [rbp - 0x34]
call fcn.1402976a4
test eax, eax
jne 0x140297148
lea rdx, [0x14032fbd0]
lea rcx, [rbp - 0x34]
call fcn.1402976a4
test eax, eax
jne 0x140297148
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x34]
call fcn.140297b50
mov ebx, eax
test eax, eax
js 0x1402970a6
mov rcx, qword [rbp - 0x70]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x34]
call fcn.140297b50
mov ebx, eax
test eax, eax
js 0x14029717a
test byte [rbp - 0x60], 0x10
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
je 0x1402970b7
mov eax, dword [rbp + 0x258]
test eax, eax
je 0x140297114
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.140296e50
mov ebx, eax
test eax, eax
jns 0x140297114
mov edx, eax
call fcn.1402ad3ac
mov rdi, qword [rsp + 0x30]
jmp 0x140297199
lea rdx, str.__
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x1402970cf
mov rax, rdi
jmp 0x1402970ee
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, str.__
call fcn.140297b50
mov ebx, eax
test eax, eax
js 0x140297162
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.140296b64
mov ebx, eax
test eax, eax
js 0x140296f0a
mov rcx, rdi
call fcn.1402af580
mov rcx, rsi
call fcn.1402af580
mov rcx, qword [rsp + 0x38]
call fcn.1402af580
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 0x140296fe0
xor ebx, ebx
jmp 0x140297199
mov edx, eax
call fcn.1402ad3ac
mov rax, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x140297199
mov edx, eax
call fcn.1402ad3ac
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
jmp 0x140297199
mov ebx, 0x80070057
mov edx, ebx
call fcn.1402ad3ac
mov rcx, qword [rsp + 0x48]
call fcn.1402af580
mov rcx, qword [rbp - 0x80]
call fcn.1402af580
mov rcx, qword [rsp + 0x58]
call fcn.1402af580
mov rcx, rdi
call fcn.1402af580
mov rcx, rsi
call fcn.1402af580
mov rcx, qword [rsp + 0x38]
call fcn.1402af580
mov rax, qword [rbp - 0x78]
cmp rax, 0xffffffffffffffff
je 0x1402971e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x308
pop rdi
pop rsi
pop rbx
pop rbp
ret