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

Disassembly:
jmp 0x14000b950
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 [0x14009b798]
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 0x14000b9c3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov byte [rsp + 0x50], r14b
jmp 0x14000b9cc
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.140002b08
nop
xor ebx, ebx
cmp byte [rsp + 0x40], bl
jne 0x14000ba13
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.1400022d9
jmp 0x14000bd8d
test rdi, rdi
jne 0x14000bb00
lea rdi, [0x14009cda0]
cmp byte [0x14009d010], bl
jne 0x14000bb00
lea r8, [0x140080374]
mov edx, 0x104
mov rcx, rdi
call fcn.140001e42
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 0x14000baf9
lea rax, [rdi - 2]
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x14000ba66
movups xmm0, xmmword [0x140080378]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140080388]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140080398]
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 0x14000baa0
movups xmm0, xmmword [str.ShadowPlay]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1400803b8]
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 0x14000bad0
movups xmm0, xmmword [str.CaptureCore.log]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1400803d8]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [0x1400803e8]
mov word [rcx + 0x20], ax
mov byte [0x14009d010], 1
mov rcx, rsi
call fcn.140002fd6
mov rdx, rdi
mov rcx, rsi
call fcn.140003788
test eax, eax
je 0x14000bd8d
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.140003328
test eax, eax
jns 0x14000bb71
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.1400022d9
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 0x14000bbee
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 0x14000bbea
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000bbea
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x44]
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x14000bc12
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.1400022d9
jmp 0x14000bd8d
mov r9d, eax
lea r8, [rsi + 8]
mov rdx, rdi
mov rcx, rsi
call fcn.1400037f6
test eax, eax
jne 0x14000bc35
mov rcx, rsi
call fcn.140002fd6
jmp 0x14000bd8d
lea rcx, [rsi + 0x150]
mov r8, rdi
mov edx, 0x104
call fcn.140001e42
lea rdi, [rsi + 0x1c]
test rdi, rdi
je 0x14000bced
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140002bf3
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.140002bf3
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 0x14000bcbc
lea r8, [rax + 2]
mov edx, 0x104
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1c0]
call fcn.140001e8d
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.140003cec
test eax, eax
je 0x14000bd20
inc ebx
cmp ebx, 7
jb 0x14000bd00
jmp 0x14000bd3b
lea r8, [r15 + 0x32]
add r8, r14
mov edx, 0x104
mov r9, 0xffffffffffffffff
mov rcx, rdi
call fcn.140001514
mov edx, 0x2e
mov rcx, rdi
call fcn.14000277a
mov rbx, rax
test rax, rax
je 0x14000bd68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x1400809a0]
mov rcx, rbx
call fcn.140002cf7
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x14], eax
cmp r13d, 0xffffffff
je 0x14000bd7b
cmp r13d, 0xa
jbe 0x14000bd81
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 0x14000bdbb
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r12, r12
je 0x14000bdd0
cmp byte [rsp + 0x41], 0
je 0x14000bdd0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140001d2a
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret