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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x888]
sub rsp, 0x960
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x850], rax
mov r14, rcx
mov qword [rbp - 0x78], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor esi, esi
mov qword [rsp + 0x68], rsi
mov dword [rbp - 0x80], 0x104
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x220]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
lea r8, [0x140347f58]
mov edx, 0x104
lea rcx, [rbp + 0x220]
call fcn.1402bbbd8
lea r8, [rbp + 0x220]
mov edx, 0x104
lea rcx, [rbp + 0x430]
call fcn.1402b96f8
lea r8, [0x14034e8b4]
mov edx, 0x104
lea rcx, [rbp + 0x430]
call fcn.1402bbbd8
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
or r15, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
cmp rax, r15
je 0x1400fa6c1
test byte [rbp - 0x30], 0x10
je 0x1400fa69f
movzx ecx, word [rbp - 4]
movzx eax, word [rbp - 2]
cmp cx, word [0x140347c20]
jne 0x1400fa599
cmp ax, word [0x140347c22]
je 0x1400fa69f
cmp cx, word [0x14034e8ac]
jne 0x1400fa5bc
cmp ax, word [0x14034e8ae]
jne 0x1400fa5bc
movzx eax, word [rbp]
cmp ax, word [0x14034e8b0]
je 0x1400fa69f
lea rcx, [rbp - 4]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400fa5c3
lea rdx, [rbp + 0x220]
mov rcx, r15
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400fa5e0
add ecx, 2
add eax, ecx
movsxd rbx, eax
lea rcx, [rbx + rbx]
call fcn.1402b9c60
mov r14, rax
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x220]
mov rdx, rbx
mov rcx, rax
call fcn.1402b96f8
lea r8, [rbp - 4]
mov rdx, rbx
mov rcx, r14
call fcn.1402bbbd8
lea rax, [rsp + 0x40]
cmp rax, rdi
jae 0x1400fa670
lea rax, [rsp + 0x40]
cmp r12, rax
ja 0x1400fa670
lea rbx, [rsp + 0x40]
sub rbx, r12
sar rbx, 3
cmp rdi, rsi
jne 0x1400fa662
lea rcx, [rsp + 0x58]
call fcn.1400bb350
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rdi, rdi
je 0x1400fa696
mov rax, qword [r12 + rbx*8]
mov qword [rdi], rax
jmp 0x1400fa696
cmp rdi, rsi
jne 0x1400fa68e
lea rcx, [rsp + 0x58]
call fcn.1400bb350
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rdi, rdi
je 0x1400fa696
mov qword [rdi], r14
add rdi, 8
mov qword [rsp + 0x60], rdi
lea rdx, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400fa571
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rbp - 0x78]
mov eax, dword [0x14042c9c0]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1400fa6f9
or eax, 1
mov dword [0x14042c9c0], eax
mov qword [0x14042c9d0], rsi
mov qword [0x14042c9d8], 0xffffffff80000003
lea rcx, [0x1403017a0]
call fcn.1402bb344
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov rcx, qword [0x14042c9d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r13, [0x140348ca0]
test eax, eax
jne 0x1400fa96b
lea ecx, [rax + 0x10]
call fcn.1402b968c
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1400fa96b
mov rcx, qword [rsp + 0x40]
mov qword [rax], rsi
mov qword [rax + 8], rcx
mov qword [rsp + 0x70], r13
xor eax, eax
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rdx, str.Startup
mov rcx, rbx
call fcn.1400d8b50
test al, al
je 0x1400fa94c
xor r8d, r8d
lea rdx, str._USERPROFILE_
lea rcx, [rsp + 0x70]
call fcn.1402019e0
test al, al
je 0x1400fa94c
xor ecx, ecx
mov r13d, ecx
sub rdi, r12
sar rdi, 3
test rdi, rdi
je 0x1400fa945
lea rax, [r14 + 0xa08]
mov r14, r12
mov r12, rax
jmp 0x1400fa7c6
xor ecx, ecx
mov rsi, qword [r14]
test rsi, rsi
jne 0x1400fa7d7
mov ebx, ecx
mov qword [rsp + 0x50], rsi
jmp 0x1400fa7f7
mov rbx, r15
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400fa7e0
mov qword [rsp + 0x50], 0
test ebx, ebx
jne 0x1400fa805
lea rax, [0x140348ca0]
mov qword [rsp + 0x48], rax
jmp 0x1400fa82a
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140200570
nop
mov r8d, 0xd
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x70]
call fcn.1402011d0
nop
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.1400d2bd0
nop
cmp dword [rbp - 0x50], 0
jle 0x1400fa86e
mov rcx, qword [rbp - 0x58]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x50], 0
jle 0x1400fa87f
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
mov rsi, qword [rbp - 0x68]
test rsi, rsi
jne 0x1400fa893
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x38], rax
jmp 0x1400fa8ab
mov rbx, r15
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400fa896
xor eax, eax
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400fa8b9
lea rax, [0x140348ca0]
mov qword [rsp + 0x30], rax
jmp 0x1400fa8de
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
movzx eax, byte [0x14042c16a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.1400e97f0
nop
cmp dword [rsp + 0x38], 0
jle 0x1400fa91a
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x60], 0
jle 0x1400fa929
mov rcx, qword [rbp - 0x68]
call fcn.1402b9c20
inc r13d
add r14, 8
movsxd rax, r13d
cmp rax, rdi
jb 0x1400fa7c4
mov r12, qword [rsp + 0x58]
mov rbx, qword [rbp - 0x70]
lea r13, [0x140348ca0]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x78], 0
jle 0x1400fa96b
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
lea rax, [rbp + 0x640]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x4018
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400faa2f
lea rax, [rbp + 0x640]
nop dword [rax]
inc r15
cmp word [rax + r15*2], 0
jne 0x1400fa9a0
mov qword [rsp + 0x38], 0
test r15d, r15d
jne 0x1400fa9c0
mov qword [rsp + 0x30], r13
jmp 0x1400fa9ea
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, r15d
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x640]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
mov rcx, qword [rbp - 0x78]
add rcx, 0xa08
movzx eax, byte [0x14042c16a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x48]
call fcn.1400e97f0
nop
cmp dword [rsp + 0x38], 0
jle 0x1400faa2f
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
test r12, r12
je 0x1400faa3c
mov rcx, r12
call fcn.1402177e0
mov al, 1
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret