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

Disassembly:
jmp 0x1800333b0
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 [0x180135088]
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 0x180033423
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov byte [rsp + 0x50], r14b
jmp 0x18003342c
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.180003913
nop
xor ebx, ebx
cmp byte [rsp + 0x40], bl
jne 0x180033473
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.180002c25
jmp 0x1800337ed
test rdi, rdi
jne 0x180033560
lea rdi, [0x18013a180]
cmp byte [0x18013a3f0], bl
jne 0x180033560
lea r8, [0x1800e1dcc]
mov edx, 0x104
mov rcx, rdi
call fcn.180002531
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 0x180033559
lea rax, [rdi - 2]
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x1800334c6
movups xmm0, xmmword [0x1800f8818]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1800f8828]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1800f8838]
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 0x180033500
movups xmm0, xmmword [str.ShadowPlay]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1800f8858]
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 0x180033530
movups xmm0, xmmword [str.CaptureCore.log]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1800f8878]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [0x1800f8888]
mov word [rcx + 0x20], ax
mov byte [0x18013a3f0], 1
mov rcx, rsi
call fcn.180004043
mov rdx, rdi
mov rcx, rsi
call fcn.180004c0a
test eax, eax
je 0x1800337ed
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.180004543
test eax, eax
jns 0x1800335d1
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.180002c25
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 0x18003364e
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 0x18003364a
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18003364a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x44]
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x180033672
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.180002c25
jmp 0x1800337ed
mov r9d, eax
lea r8, [rsi + 8]
mov rdx, rdi
mov rcx, rsi
call fcn.180004cbe
test eax, eax
jne 0x180033695
mov rcx, rsi
call fcn.180004043
jmp 0x1800337ed
lea rcx, [rsi + 0x150]
mov r8, rdi
mov edx, 0x104
call fcn.180002531
lea rdi, [rsi + 0x1c]
test rdi, rdi
je 0x18003374d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.180003a85
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.180003a85
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.180001320
test rax, rax
je 0x18003371c
lea r8, [rax + 2]
mov edx, 0x104
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1c0]
call fcn.1800025b3
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.180005484
test eax, eax
je 0x180033780
inc ebx
cmp ebx, 7
jb 0x180033760
jmp 0x18003379b
lea r8, [r15 + 0x32]
add r8, r14
mov edx, 0x104
mov r9, 0xffffffffffffffff
mov rcx, rdi
call fcn.18000173a
mov edx, 0x2e
mov rcx, rdi
call fcn.180003369
mov rbx, rax
test rax, rax
je 0x1800337c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x1800f8e40]
mov rcx, rbx
call fcn.180003bf7
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x14], eax
cmp r13d, 0xffffffff
je 0x1800337db
cmp r13d, 0xa
jbe 0x1800337e1
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 0x18003381b
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r12, r12
je 0x180033830
cmp byte [rsp + 0x41], 0
je 0x180033830
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180002397
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret