Function at 0x140001316
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
jmp 0x14000afc0
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x538], rbx
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov dword [rsp + 0x4c], r9d
mov rdi, r8
mov dword [rsp + 0x50], edx
mov r14, rcx
lea rax, [rcx + 0x120]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000b036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, 1
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x60], cl
jmp 0x14000b03f
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x40], al
movzx eax, byte [rbp + 0x450]
mov byte [r14 + 0x35a], al
test rdi, rdi
jne 0x14000b141
lea rdi, [0x140096c60]
cmp byte [0x140096ed0], 0
jne 0x14000b141
lea r8, [0x14007b37c]
mov edx, 0x104
mov rcx, rdi
call fcn.140003049
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000b13a
lea rax, [rdi - 2]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x14000b0a2
movups xmm0, xmmword [0x14007b380]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14007b390]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14007b3a0]
movsd qword [rax + 0x20], xmm0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rdi - 2]
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x14000b0e0
movups xmm0, xmmword [str.ShadowPlay]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14007b3c0]
movsd qword [rax + 0x10], xmm1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14000b110
movups xmm0, xmmword [str.CaptureCore.log]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x14007b3e0]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [0x14007b3f0]
mov word [rcx + 0x20], ax
mov byte [0x140096ed0], 1
mov rcx, r14
call fcn.140003c7e
mov r15d, 1
mov esi, r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140002757
xor ebx, ebx
test rdi, rdi
je 0x14000b2d0
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140003049
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b195
bt eax, 0xa
jb 0x14000b1ad
mov edx, 0x5c
lea rcx, [rbp - 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000b1bf
mov word [rax], bx
jmp 0x14000b180
lea rdx, [rbp - 0x40]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400029a5
mov esi, ebx
test esi, esi
je 0x14000b2d0
mov rdx, rdi
mov rcx, r14
call fcn.140001974
test eax, eax
je 0x14000b2d0
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea rsi, [rsp + 0x70]
mov r9d, 0x1f01ff
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140002b30
test eax, eax
jns 0x14000b239
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.CLogger::Create_:_CreateSA_failed___s_._Error__0x_x_
call fcn.1400029a5
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov r9, rsi
mov edx, 0x60004
mov r8d, 7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
test rsi, rsi
je 0x14000b2b1
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x44], ebx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x14000b2b1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000b2b1
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [r14 + 8], 0xffffffffffffffff
jne 0x14000b317
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.CLogger::Create_:_Error_opening_log_file___s___Error__0x_x_
call fcn.1400029a5
mov r15d, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000b2ea
cmp byte [rsp + 0x40], 0
je 0x14000b2ea
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x538]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, r13d
lea r8, [r14 + 8]
mov rdx, rdi
mov rcx, r14
call fcn.1400028d8
test eax, eax
jne 0x14000b337
mov rcx, r14
call fcn.140003c7e
jmp 0x14000b2d0
lea rcx, [r14 + 0x150]
mov r8, rdi
mov edx, 0x104
call fcn.140003049
lea rsi, [r14 + 0x1c]
test rsi, rsi
je 0x14000b3ef
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.140002757
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140002757
mov r8d, 0x104
lea rdx, [rbp - 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp - 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000b3be
lea r8, [rax + 2]
mov edx, 0x104
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call fcn.14000172b
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
lea r8, [rbp + 0x1d0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r12, str.setup.exe
nop word [rax + rax]
movsxd rax, ebx
imul rdi, rax, 0x64
lea rdx, [rdi + r12]
mov rcx, rsi
call fcn.140003283
test eax, eax
je 0x14000b420
inc ebx
cmp ebx, 7
jb 0x14000b400
jmp 0x14000b43c
lea r8, [r12 + 0x32]
add r8, rdi
mov edx, 0x104
mov r9, 0xffffffffffffffff
mov rcx, rsi
call fcn.140002d15
mov edx, 0x2e
mov rcx, rsi
call fcn.1400039a9
mov rbx, rax
test rax, rax
je 0x14000b469
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x14007b8a0]
mov rcx, rbx
call fcn.140003ce7
mov eax, dword [rsp + 0x4c]
mov dword [r14 + 0x14], eax
mov eax, dword [rsp + 0x50]
cmp eax, 0xffffffff
je 0x14000b47f
cmp eax, 0xa
jbe 0x14000b484
mov eax, 6
mov dword [r14 + 0x14c], eax
jmp 0x14000b2d3