Function at 0x140163a10
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe60]
sub rsp, 0xf60
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0xe50], rax
lea rdx, str.CBaseOSSpecTypeWin2K::ReadOnlyCancellation
lea rcx, [rsp + 0x50]
call fcn.14001abe0
nop
lea r13, [0x1402a8360]
lea r14, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163aa2
test byte [rcx + 0x1c], 1
je 0x140163aa2
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiSetPropertyW
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc40]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa30]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x60]
call fcn.1401e7e40
mov ebx, 1
mov r15d, ebx
lea rcx, [rsp + 0x40]
call fcn.14005f660
nop
lea rcx, [rsp + 0x38]
call fcn.140091e00
nop
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
nop word [rax + rax]
mov dword [rsp + 0x30], 0x63
lea r8, [rsp + 0x30]
mov edx, r15d
lea rcx, [rsp + 0x40]
call fcn.140063670
mov eax, dword [r12]
cmp dword [0x1402bc1f0], eax
jg 0x1401643b7
mov edx, dword [rsp + 0x30]
call fcn.14018c270
mov r8, rax
lea rdx, [rbp + 0x610]
lea rcx, [rsp + 0x38]
call fcn.1400929b0
test eax, eax
je 0x1401642ae
lea r8, [0x1402557a0]
mov edx, 0x104
lea rcx, [rbp + 0xc40]
call fcn.1401ebfa8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
lea rax, [rbp + 0xc40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x610]
lea r8, [0x140252608]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.14002fb20
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163c7e
test byte [rcx + 0x1c], 4
je 0x140163c3f
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.msi.dll_MsiSetPropertyW
mov dword [rsp + 0x20], 3
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163c7e
test byte [rcx + 0x1c], 4
je 0x140163c7e
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x8e
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163d17
test byte [rcx + 0x1c], 4
je 0x140163ce0
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x8f
mov qword [rsp + 0x20], rdi
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.14001b1a0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163d17
test byte [rcx + 0x1c], 4
je 0x140163d17
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x90
mov dword [rsp + 0x20], esi
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
cmp rdi, 0xffffffffffffffff
je 0x140163d84
test ebx, ebx
je 0x140163d7b
nop dword [rax]
nop word [rax + rax]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x610]
lea r8, [0x140252608]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14002fb20
mov edx, 0x20
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140163d30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa30]
call fcn.1401e7e40
lea rax, [rbp + 0xc40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x610]
lea r8, str._s_d_s
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.14002fb20
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x610]
lea r8, str._s_d
mov edx, 0x104
lea rcx, [rbp + 0xa30]
call fcn.14002fb20
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163ea6
test byte [rcx + 0x1c], 4
je 0x140163e5f
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, SysAllocStringByteLen
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.14001d1d0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163ea6
test byte [rcx + 0x1c], 4
je 0x140163ea6
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, DllRegisterServer
lea rax, [rbp + 0xa30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.14001d1d0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163f3f
test byte [rcx + 0x1c], 4
je 0x140163f08
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, DllRegisterServer
mov qword [rsp + 0x20], rbx
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.14001b1a0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140163f3f
test byte [rcx + 0x1c], 4
je 0x140163f3f
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, DllRegisterServer
mov dword [rsp + 0x20], edi
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
cmp rbx, 0xffffffffffffffff
je 0x140163fa4
nop word [rax + rax]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xa30]
lea r8, [0x140252608]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14002fb20
mov edx, 0x20
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140163f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x820]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.SpoolDrivers
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ec614
lea r8, [0x140251df8]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ec614
lea r8, str.Color
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ec614
lea r8, [rbp + 0x1f0]
mov edx, 0x104
lea rcx, [rbp + 0x820]
call fcn.1401ebfa8
lea r8, str..icc
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ec614
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x1401640db
test byte [rcx + 0x1c], 4
je 0x14016409c
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x1401640db
test byte [rcx + 0x1c], 4
je 0x1401640db
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140164156
nop word [rax + rax]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x820]
lea r8, [0x140252608]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14002fb20
mov edx, 0x20
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x140164100
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
lea r8, [rbp + 0x820]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ebfa8
lea r8, str..prf
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.1401ec614
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14016421a
test byte [rcx + 0x1c], 4
je 0x1401641db
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x97
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14016421a
test byte [rcx + 0x1c], 4
je 0x14016421a
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x98
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140164296
test ebx, ebx
je 0x14016428d
nop dword [rax + rax]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x820]
lea r8, [0x140252608]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14002fb20
mov edx, 0x20
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x140164240
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [rbp + 0x1f0]
mov edx, 0x104
lea rcx, [rbp + 0x820]
call fcn.1401ebfa8
add r15d, r15d
cmp r15d, 0x40
jbe 0x140163b50
mov byte [rsp + 0x58], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x1401642fb
test byte [rcx + 0x1c], 1
je 0x1401642fb
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x99
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
nop
lea rcx, [rsp + 0x38]
call fcn.140091f70
nop
lea rcx, [rsp + 0x40]
call fcn.14005f7d0
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x58], 0
jne 0x140164374
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140164374
test byte [rcx + 0x1c], 1
je 0x140164374
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
cmp qword [0x1402bbdc8], 8
cmovae r14, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x80]
call fcn.1400048a0
lea rcx, [rsp + 0x60]
call fcn.1400048a0
mov rcx, qword [rbp + 0xe50]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0xf60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x1402bc1f0]
call fcn.1401e2aa8
cmp dword [0x1402bc1f0], 0xffffffff
jne 0x140163b7a
call fcn.14018ce80
lea rcx, [0x140228190]
call fcn.1401e2df0
nop
lea rcx, [0x1402bc1f0]
call fcn.1401e2a48
jmp 0x140163b7a