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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400ccb6a
cmp word [rsp + 0x50], di
jne 0x1400ccb4f
mov eax, edi
jmp 0x1400ccb59
lea rcx, [rsp + 0x50]
call fcn.1400ded00
lea rcx, [rbx + 0x68]
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140010250
lea rsi, [rbx + 0x68]
cmp qword [rsi + 0x18], 8
jb 0x1400ccb7a
mov r14, qword [rsi]
jmp 0x1400ccb7d
mov r14, rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp word [r14], di
jne 0x1400ccb9b
mov rax, rdi
jmp 0x1400ccba3
mov rcx, r14
call fcn.1400ded00
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140010250
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
sete r14b
cmp qword [rsp + 0x48], 8
jb 0x1400ccbe7
mov rcx, qword [rsp + 0x30]
call fcn.1400400f0
test r14b, r14b
je 0x1400ccc5f
cmp qword [rsi + 0x18], 8
jb 0x1400ccbf8
mov r14, qword [rsi]
jmp 0x1400ccbfb
mov r14, rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp word [r14], di
jne 0x1400ccc19
mov rax, rdi
jmp 0x1400ccc21
mov rcx, r14
call fcn.1400ded00
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140010250
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp qword [rsp + 0x48], 8
jb 0x1400ccc5f
mov rcx, qword [rsp + 0x30]
call fcn.1400400f0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea rcx, str.PDApp.log
call fcn.1400ded00
mov r8, rax
lea rdx, str.PDApp.log
lea rcx, [rsp + 0x30]
call fcn.140010250
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
cmp eax, 1
setne r14b
cmp qword [rsp + 0x48], 8
jb 0x1400cccc2
mov rcx, qword [rsp + 0x30]
call fcn.1400400f0
test r14b, r14b
je 0x1400cccd5
mov byte [rbx + 0x98], dil
xor al, al
jmp 0x1400ccddb
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea rcx, str.PDApp.log
call fcn.1400ded00
mov r8, rax
lea rdx, str.PDApp.log
lea rcx, [rsp + 0x30]
call fcn.140010250
nop
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d50c0
movzx r14d, al
cmp qword [rsp + 0x48], 8
jb 0x1400ccd2c
mov rcx, qword [rsp + 0x30]
call fcn.1400400f0
test r14b, r14b
jne 0x1400ccd3f
mov byte [rbx + 0x98], r14b
xor al, al
jmp 0x1400ccddb
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x1400ccd58
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x90], rdi
mov qword [rsp + 0x20], rdi
cmp qword [rsi + 0x18], 8
jb 0x1400ccd67
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rsi, rax
cmp word [rax], 0
je 0x1400ccd84
mov rcx, rax
call fcn.1400ded00
mov rdi, rax
lea rcx, [rbx + 0x48]
mov r8, rdi
mov rdx, rsi
call fcn.140010250
mov rax, qword [rbx]
mov rcx, rbx
cmp byte [rbx + 0x99], 0
je 0x1400ccdb3
lea rdx, [rbx + 0x90]
call qword [rax]
mov byte [rbx + 0x98], al
jmp 0x1400ccdd4
lea rdx, [rsp + 0x20]
call qword [rax]
mov byte [rbx + 0x98], al
test al, al
je 0x1400ccdd4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400ccdd4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rbx + 0x98]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret