Function at 0x14000c3b0
Capabilities:
Create directory
Get common file path

Disassembly:
jmp 0x14000c3b0
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x528], rbx
mov rax, qword [0x14009a7a8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov dword [rsp + 0x60], r9d
mov rdi, r8
mov r13d, edx
mov rsi, rcx
lea r12, [rcx + 0x120]
mov qword [rsp + 0x48], r12
test r12, r12
je 0x14000c423
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov byte [rsp + 0x50], r14b
jmp 0x14000c42c
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x41], al
movzx eax, byte [rbp + 0x440]
mov byte [rsi + 0x35a], al
mov byte [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x42]
call fcn.140002af9
nop
xor ebx, ebx
cmp byte [rsp + 0x40], bl
jne 0x14000c473
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.CLogger::Create_:_TI_failed_with_error__s____d
call fcn.1400022cf
jmp 0x14000c7ed
test rdi, rdi
jne 0x14000c560
lea rdi, [0x14009bdb0]
cmp byte [0x14009c020], bl
jne 0x14000c560
lea r8, [0x140080434]
mov edx, 0x104
mov rcx, rdi
call fcn.140001e38
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000c559
lea rax, [rdi - 2]
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x14000c4c6
movups xmm0, xmmword [0x140080438]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140080448]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140080458]
movsd qword [rax + 0x20], xmm0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rdi - 2]
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x14000c500
movups xmm0, xmmword [str.ShadowPlay]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140080478]
movsd qword [rax + 0x10], xmm1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rdi - 2]
nop
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x14000c530
movups xmm0, xmmword [str.CaptureCore.log]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x140080498]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [0x1400804a8]
mov word [rcx + 0x20], ax
mov byte [0x14009c020], 1
mov rcx, rsi
call fcn.140002fdb
mov rdx, rdi
mov rcx, rsi
call fcn.14000378d
test eax, eax
je 0x14000c7ed
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea r14, [rsp + 0x68]
mov r9d, 0x1f01ff
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14000332d
test eax, eax
jns 0x14000c5d1
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.1400022cf
mov r14, rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov r9, r14
mov edx, 0x60004
mov r8d, 7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
test r14, r14
je 0x14000c64e
mov dword [rsp + 0x5c], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x58], ebx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x5c]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x14000c64a
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000c64a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x44]
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x14000c672
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.1400022cf
jmp 0x14000c7ed
mov r9d, eax
lea r8, [rsi + 8]
mov rdx, rdi
mov rcx, rsi
call fcn.1400037fb
test eax, eax
jne 0x14000c695
mov rcx, rsi
call fcn.140002fdb
jmp 0x14000c7ed
lea rcx, [rsi + 0x150]
mov r8, rdi
mov edx, 0x104
call fcn.140001e38
lea rdi, [rsi + 0x1c]
test rdi, rdi
je 0x14000c74d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140002be9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.140002be9
mov r8d, 0x104
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call fcn.140001244
test rax, rax
je 0x14000c71c
lea r8, [rax + 2]
mov edx, 0x104
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1c0]
call fcn.140001e83
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rdi
mov r9d, 0xffffffff
lea r8, [rbp + 0x1c0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r15, str.setup.exe
nop dword [rax]
nop dword [rax + rax]
movsxd rax, ebx
imul r14, rax, 0x64
lea rdx, [r14 + r15]
mov rcx, rdi
call fcn.140003cf1
test eax, eax
je 0x14000c780
inc ebx
cmp ebx, 7
jb 0x14000c760
jmp 0x14000c79b
lea r8, [r15 + 0x32]
add r8, r14
mov edx, 0x104
mov r9, 0xffffffffffffffff
mov rcx, rdi
call fcn.14000150a
mov edx, 0x2e
mov rcx, rdi
call fcn.14000276b
mov rbx, rax
test rax, rax
je 0x14000c7c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x140080a60]
mov rcx, rbx
call fcn.140002cf2
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x14], eax
cmp r13d, 0xffffffff
je 0x14000c7db
cmp r13d, 0xa
jbe 0x14000c7e1
mov r13d, 6
mov dword [rsi + 0x14c], r13d
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x48], rax
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14000c81b
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r12, r12
je 0x14000c830
cmp byte [rsp + 0x41], 0
je 0x14000c830
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140001d20
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret