Function at 0x1800e0030
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
cmp dword [rax - 8], 0
jne 0x1800e0081
mov dword [rsp + 0xf0], 1
jmp 0x1800e008c
mov dword [rsp + 0xf0], 0
cmp dword [rsp + 0xf0], 0
jne 0x1800e054c
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800e054a
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc8], rax
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call fcn.18012c430
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1800e04cd
mov rax, qword [0x1801c85a0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x18]
add eax, 0x41
mov word [rsp + 0x58], ax
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x1800e0431
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [rsp + 0x7c], eax
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800e01ce
lea rcx, [rsp + 0x98]
call fcn.1800e5040
nop
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x20], eax
lea r9, str.CTsbFolderMonitor::MakeDir_SetFileAttributesW__lu__attr_0x_08X__Folder__s_
lea r8, str.FileCache
mov edx, 0xffffffff
lea rcx, [0x1802386e8]
call fcn.1800db240
nop
lea rcx, [rsp + 0x98]
call fcn.1800e5070
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x8c], 2
mov dword [rsp + 0x90], 4
mov dword [rsp + 0x94], 8
mov dword [rsp + 0x9c], 0
jmp 0x1800e0243
mov eax, dword [rsp + 0x9c]
inc eax
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 4
jge 0x1800e0431
cmp qword [rsp + 0x70], 0
je 0x1800e026c
mov eax, dword [rsp + 0x64]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1800f8b90
movsxd rax, dword [rsp + 0x9c]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x64]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + rax*4 + 0x88]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x78], eax
jbe 0x1800e0348
cmp qword [rsp + 0x70], 0
je 0x1800e02ce
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800f8dc8
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.1800f8d24
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1800e02fb
jmp 0x1800e0431
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1800f8b90
movsxd rax, dword [rsp + 0x9c]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x64]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + rax*4 + 0x88]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800e042c
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x78], eax
ja 0x1800e042c
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd8], rax
movsxd rax, dword [rsp + 0x9c]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + rax*4 + 0x88]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x1800e03b2
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800e042c
lea rcx, [rsp + 0xa0]
call fcn.1800e5040
nop
movsxd rax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov eax, dword [rsp + rax*4 + 0x88]
mov dword [rsp + 0x20], eax
lea r9, str.CTsbFolderMonitor::MakeDir_SetFileSecurityW_type__lu____lu__Folder__s_
lea r8, str.FileCache
mov edx, 0xffffffff
lea rcx, [0x1802386e8]
call fcn.1800db240
nop
lea rcx, [rsp + 0xa0]
call fcn.1800e5070
jmp 0x1800e0233
cmp dword [rsp + 0x60], 0
jne 0x1800e04cb
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.1800f7df0
mov dword [rsp + 0xa4], eax
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800e04cb
lea rcx, [rsp + 0xa8]
call fcn.1800e5040
nop
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
lea r9, str.CTsbFolderMonitor::MakeDir_SetFileRights_Everyone__lu__Folder__s_
lea r8, str.FileCache
mov edx, 0xffffffff
lea rcx, [0x1802386e8]
call fcn.1800db240
nop
lea rcx, [rsp + 0xa8]
call fcn.1800e5070
jmp 0x1800e054a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800e04e6
mov dword [rsp + 0x40], 3
lea rcx, [0x1802386e0]
call fcn.1800d4dd0
test eax, eax
je 0x1800e054a
lea rcx, [rsp + 0xac]
call fcn.1800e5040
nop
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
lea r9, str.CTsbFolderMonitor::MakeDir_Failed__Folder__s__error__d_
lea r8, str.FileCache
mov edx, 0xffffffff
lea rcx, [0x1802386e8]
call fcn.1800db240
nop
lea rcx, [rsp + 0xac]
call fcn.1800e5070
jmp 0x1800e0554
mov dword [rsp + 0x40], 3
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x108
ret