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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5c8]
sub rsp, 0x6c8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov qword [rsp + 0x38], r9
mov edi, r8d
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov ecx, 7
mov qword [rbp - 0x58], rcx
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
test r8d, r8d
je 0x140049e46
lea r8, [rbp - 0x70]
mov rcx, rsi
call fcn.14000365c
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140049d71
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
cmp word [rbp - 4], ax
jne 0x140049c6e
mov r8d, eax
jmp 0x140049c80
lea rcx, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x140049c76
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.14000528c
nop
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000365c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140004d54
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1400390f0
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
je 0x140049d66
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], cx
cmp word [rbp - 4], cx
jne 0x140049cfb
mov r8, rcx
jmp 0x140049d0d
lea rax, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], cx
jne 0x140049d03
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.14000528c
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000365c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140004d54
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400390f0
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x140049cdd
mov edi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140049dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140049dae
lea r9, str.file_search_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp + 0x220]
call fcn.14001ff68
lea rdx, [0x14008f3c8]
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
add edi, 0xffffffff
je 0x140049e46
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rax
mov word [rbp - 0x50], ax
lea r8d, [rax + 1]
lea rdx, [0x140080c00]
lea rcx, [rbp - 0x50]
call fcn.14000528c
nop
lea r8, [rbp - 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140049e80
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.140004d54
mov rbx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], rbx
je 0x140049e3b
mov rsi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140049ba4
add rbx, 0x20
cmp rbx, qword [rsp + 0x58]
jne 0x140049e1d
lea rcx, [rsp + 0x50]
call fcn.140035500
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140004d54
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140004d54
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14003a6d0
add rsp, 0x6c8
pop rdi
pop rsi
pop rbx
pop rbp
ret