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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
lea r8, [0x1400086cc]
mov rdx, rcx
lea rcx, [rbp + 0x10]
call fcn.140004850
nop
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rcx, qword [rbp + 0x10]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400019a0
mov r13d, 7
lea r14, str.RustClient.exe
nop
lea rdx, [rbp + 0x16c]
lea rcx, [rbp - 0x30]
call fcn.1400040b0
nop
lea r8, [rbp - 0x30]
mov r15, qword [rbp - 0x30]
mov r12, qword [rbp - 0x18]
test byte [rbp + 0x140], 0x10
je 0x140001800
cmp r12, 7
cmova r8, r15
mov r14, qword [rbp - 0x20]
cmp r14, 1
jne 0x14000148e
mov rdx, r14
lea rax, [0x1400086d4]
mov rcx, rax
test r14, r14
je 0x14000193c
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000148e
add rcx, 2
sub rdx, 1
jne 0x140001475
jmp 0x14000193c
lea r8, [rbp - 0x30]
cmp r12, 7
cmova r8, r15
cmp r14, 2
jne 0x1400014d9
mov rdx, r14
lea rax, [0x1400086d8]
mov rcx, rax
test r14, r14
je 0x14000193c
sub r8, rax
nop dword [rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400014d9
add rcx, 2
sub rdx, 1
jne 0x1400014c0
jmp 0x14000193c
lea r8, [0x1400086e0]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.140004850
mov rbx, rax
lea r9, [rbp - 0x30]
cmp r12, 7
cmova r9, r15
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x14000153f
lea rsi, [r14 + rcx]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140001522
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
lea r8, [r14 + r14]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
mov word [rdi + rsi*2], cx
mov rsi, qword [rsp + 0x40]
jmp 0x140001560
mov qword [rsp + 0x20], r14
mov rdx, r14
mov rcx, rbx
call fcn.1400052a0
mov rbx, rax
mov r12, qword [rbp - 0x18]
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x30]
xor ecx, ecx
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], r13
mov word [rbx], cx
lea r10, [rbp - 0x70]
movq r11, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdi, xmm0
cmp rdi, 7
cmova r10, r11
movq rax, xmm1
cmp rax, 0xc
jb 0x140001618
lea r9, [rax - 0xb]
lea r9, [r10 + r9*2]
mov rbx, r10
nop
mov rax, r9
sub rax, rbx
sar rax, 1
je 0x1400015d7
cmp word [rbx], 0x24
je 0x1400015d4
cmp rax, 1
je 0x1400015d7
dec rax
add rbx, 2
cmp word [rbx], 0x24
jne 0x1400015c1
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140001618
mov edx, 0xc
lea rax, str._RECYCLE.BIN
mov rcx, rax
mov r8, rbx
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001610
add rcx, 2
sub rdx, 1
jne 0x1400015f4
sub rbx, r10
sar rbx, 1
jmp 0x14000161f
add rbx, 2
xor ecx, ecx
jmp 0x1400015b0
mov rbx, 0xffffffffffffffff
cmp rdi, 7
jbe 0x14000165b
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140001652
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019ea
mov rcx, r11
call fcn.1400063a4
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x14000169b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019f1
call fcn.1400063a4
cmp rbx, 0xffffffffffffffff
jne 0x140001932
lea r8, [0x1400086e0]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140004850
mov rbx, rax
lea r9, [rbp - 0x30]
cmp r12, 7
cmova r9, r15
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x14000170e
lea rsi, [rcx + r14]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x1400016ef
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
lea r8, [r14 + r14]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor r14d, r14d
mov word [rdi + rsi*2], r14w
mov rsi, qword [rsp + 0x40]
jmp 0x14000172c
mov qword [rsp + 0x20], r14
mov rdx, r14
mov rcx, rbx
call fcn.1400052a0
mov rbx, rax
mov r12, qword [rbp - 0x18]
mov r15, qword [rbp - 0x30]
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r13
mov word [rbx], r14w
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140001390
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400017a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019f8
call fcn.1400063a4
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r13
mov word [rbp - 0x50], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140001937
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019ff
call fcn.1400063a4
jmp 0x140001937
cmp r12, 7
cmova r8, r15
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xe
jne 0x140001943
mov rcx, r14
test rdx, rdx
je 0x140001839
sub r8, r14
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001943
add rcx, 2
sub rdx, 1
jne 0x140001821
lea r8, str._version.txt
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140004850
nop
lea rdx, str.Unknown
lea rcx, [rbp - 0x10]
call fcn.1400040b0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140004640
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
cmp qword [rbp + 0xc0], 0
je 0x140001909
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
movzx r8d, ax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x30]
call fcn.1400055d0
lea rcx, [rbp + 0x40]
call fcn.140004580
test rax, rax
jne 0x140001909
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
lea r14, [0x14000d0c0]
mov qword [rsp + 0x38], r14
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140001a06
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
lea r14, str.RustClient.exe
cmp r12, 7
jbe 0x14000197e
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140001976
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c0c
mov rcx, r15
call fcn.1400063a4
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x140001c18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp dword [0x14000d10c], 0x7fffffff
jne 0x140001a28
mov dword [0x14000d10c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400041f0
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
call fcn.1400041f0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140001a87
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rdx + 0x10], xmm1
xor esi, esi
mov word [rsp + 0x50], si
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x30], xmm1
mov rdx, r13
mov word [rsp + 0x70], si
add qword [rbx + 8], 0x40
jmp 0x140001a9f
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.140005d60
mov rdx, qword [rbp - 0x78]
mov r13, qword [rsp + 0x68]
xor esi, esi
cmp rdx, 7
jbe 0x140001ad8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ad3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b0c
call fcn.1400063a4
cmp r13, 7
jbe 0x140001b19
lea rdx, [r13*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400063a4
nop
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
lea rcx, [rbp + 0x30]
call fcn.140001c50
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140001b71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400063a4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140001bb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001baf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001baf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400063a4
movdqa xmm0, xmmword [0x140008f10]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], si
cmp r12, 7
jbe 0x140001996
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140001bff
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400063a4
jmp 0x140001996
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400063a4
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140006340
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret