Function at 0x140001820
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400064a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140001a8c
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], di
jne 0x140001895
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140001abe
mov qword [rsp + 0x50], 7
cmp rbx, 8
jae 0x1400018e3
mov qword [rsp + 0x48], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x38], di
jmp 0x140001993
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x1400018ff
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140001931
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001ac4
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000195d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001ac4
mov rcx, rax
call fcn.1400041c0
test rax, rax
je 0x140001a80
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000196f
test rcx, rcx
je 0x14000196c
call fcn.1400041c0
mov rsi, rax
jmp 0x14000196f
mov rsi, rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r15
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], di
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1400019d6
lea rax, [rcx + 4]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 8
cmovae rax, qword [rsp + 0x38]
movabs rdx, 0x2a002e002a005c
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], di
jmp 0x1400019ee
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140003ad0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001a3b
test byte [rsp + 0x60], 0x10
lea ebx, [rdi + 1]
cmovne ebx, edi
mov edi, ebx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001a13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140001a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000444c
cmp edi, 5
setg al
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400041a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400011c0
int3
call fcn.140001120
int3