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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor edi, edi
lea r9, [rbp + 0x1f0]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140022440]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140001ef1
mov rdx, qword [rbp + 0x1f0]
lea rcx, [rsp + 0x40]
call fcn.140007200
nop
mov rcx, qword [rbp + 0x1f0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r12, qword [rsp + 0x50]
sub rax, r12
cmp rax, 2
jb 0x140001f14
lea rdx, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x58]
cmp r15, 7
cmova rdx, rsi
mov qword [rbp + 0x1f8], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r13, [r12 + 2]
mov ebx, 7
lea r14, [rsp + 0x20]
cmp r13, rbx
jbe 0x140001da6
mov rbx, r13
or rbx, 7
cmp rbx, rcx
jbe 0x140001d26
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140001d55
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001f20
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001d88
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001f20
mov rcx, rax
call fcn.140008f8c
test rax, rax
je 0x140001f1a
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rdx, qword [rbp + 0x1f8]
jmp 0x140001da1
test rcx, rcx
je 0x140001d9e
call fcn.140008f8c
mov r14, rax
mov rdx, qword [rbp + 0x1f8]
jmp 0x140001da1
mov r14, rdi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov rcx, r14
call fcn.1400205f0
mov dword [rbx + r14], 0x2a005c
mov word [r14 + r13*2], di
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140001e2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f1a
call fcn.140008fc8
movdqa xmm0, xmmword [0x14002b920]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], di
cmp r14, 0xffffffffffffffff
je 0x140001eba
nop word [rax + rax]
test byte [rsp + 0x60], 0x10
lea ebx, [rdi + 1]
cmovne ebx, edi
mov edi, ebx
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001e50
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xa
setl bl
cmp r15, 7
jbe 0x140001eb5
lea rdx, [r15*2 + 2]
mov rcx, rsi
cmp rdx, 0x1000
jb 0x140001ead
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rcx, rsi
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140001f0e
mov rcx, rsi
call fcn.140008fc8
movzx eax, bl
jmp 0x140001ef3
cmp r15, 7
jbe 0x140001ef1
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001ee9
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f0e
mov rcx, rsi
call fcn.140008fc8
xor al, al
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400121dc
nop
call fcn.140001200
nop
call fcn.1400121dc
int3
call fcn.140001160
int3