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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov r12d, 7
mov qword [rbp - 0x41], r12
xor r14d, r14d
mov qword [rbp - 0x49], r14
mov word [rbp - 0x59], r14w
mov edx, 0x104
xor r8d, r8d
lea rcx, [rbp - 0x59]
call fcn.140002394
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rdx, qword [rbp - 0x59]
mov ecx, dword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
mov ecx, eax
cmp rcx, qword [rbp - 0x49]
jbe 0x14003687d
sub rcx, qword [rbp - 0x49]
mov rdx, rcx
jmp 0x140036843
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rax, qword [rbp - 0x59]
mov qword [rbp - 0x49], rcx
mov word [rax + rcx*2], r14w
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140036bb4
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rax, qword [rbp - 0x59]
mov r13d, 0x5c
cmp word [rax + rcx*2 - 2], r13w
je 0x1400368cd
mov r8d, r13d
lea edx, [r13 - 0x5b]
lea rcx, [rbp - 0x59]
call fcn.140002394
mov r8d, InitCommonControls
lea rdx, str.TraceView.ini
lea rcx, [rbp - 0x59]
call fcn.14000254c
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x69], r14
mov word [rbp - 0x79], r14w
mov edx, 0x105
xor r8d, r8d
lea rcx, [rbp - 0x79]
call fcn.140002394
lea rdi, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rdi, qword [rbp - 0x79]
mov esi, dword [rbp - 0x69]
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop dword [rax + rax]
test rax, rax
je 0x14003695c
lea rdx, str.GetTempPath2W
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14003695c
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rdi
mov ecx, esi
call qword [0x140070c80]
jmp 0x14003696d
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
mov ecx, eax
cmp rcx, qword [rbp - 0x69]
jbe 0x140036981
sub rcx, qword [rbp - 0x69]
mov rdx, rcx
jmp 0x1400368f5
lea rax, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rax, qword [rbp - 0x79]
mov qword [rbp - 0x69], rcx
mov word [rax + rcx*2], r14w
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140036b91
test eax, eax
jne 0x140036b91
lea rax, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rax, qword [rbp - 0x79]
cmp word [rax + rcx*2 - 2], r13w
je 0x1400369e4
mov r8d, r13d
mov edx, 1
lea rcx, [rbp - 0x79]
call fcn.140002394
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.14001ba70
mov r8d, 0xa
lea rdx, str.traceview_
lea rcx, [rbp - 0x79]
call fcn.14000254c
cmp word [rbp - 0x29], r14w
jne 0x140036a16
mov r8, r14
jmp 0x140036a28
lea rax, [rbp - 0x29]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140036a1e
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x79]
call fcn.14000254c
mov r8d, r13d
mov edx, 1
lea rcx, [rbp - 0x79]
call fcn.140002394
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rcx, qword [rbp - 0x79]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140036a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x140036b68
mov rcx, rbx
call fcn.140036794
nop
lea rax, [rbp - 0x79]
cmp rbx, rax
je 0x140036abe
cmp qword [rbx + 0x18], 8
jb 0x140036aa5
mov rcx, qword [rbx]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
lea rdx, [rbp - 0x79]
mov rcx, rbx
call fcn.14000f29c
nop
lea rdi, [rbx + 0x20]
lea rax, [rbp - 0x59]
cmp rdi, rax
je 0x140036afa
cmp qword [rdi + 0x18], 8
jb 0x140036ae1
mov rcx, qword [rdi]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.14000f29c
nop
lea rcx, [rbx + 0x40]
call fcn.140036e0c
nop
cmp qword [rbp - 0x61], 8
jb 0x140036b1b
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x69], r14
mov word [rbp - 0x79], r14w
cmp qword [rbp - 0x41], 8
jb 0x140036b3f
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x20]
call fcn.140010d90
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, str.Failed_to_create_temporary_directory:_n_n
call fcn.140043374
int3
lea rdx, str.Failed_to_determine_temp_directory.
lea rcx, [rsp + 0x20]
call fcn.14000f264
lea rdx, [0x1400f1de0]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Failed_to_determine_the_current_directory.
lea rcx, [rsp + 0x20]
call fcn.14000f264
lea rdx, [0x1400f1de0]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
int3