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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x58], rdx
mov rdi, qword [rcx + 0x18]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x28], xmm1
test rdi, rdi
je 0x1400146af
mov qword [rsp + 0x28], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x14001469d
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x1400146ac
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
cmp byte [r14 + 0x58], 0
jne 0x1400146eb
lea rdx, [r14 + 0x38]
mov rcx, rbx
call fcn.140006b00
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400148af
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x1400146df
xor esi, esi
mov dword [rax + 4], esi
mov rdi, 0xffffffffffffffff
jmp 0x14001488c
xor esi, esi
mov qword [rbp - 0x58], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.140152140
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401cb710]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rdi, [rsi - 1]
test eax, eax
jne 0x140014843
mov r9, qword [rbp - 0x58]
lea r8, str._sAMDDVR
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14000f700
xor r8d, r8d
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140014761
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140014843
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
lea rax, [rbp - 0x50]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140014780
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.140005060
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rsi
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140005060
mov byte [rsp + 0x78], 0
lea rcx, [rsp + 0x38]
call fcn.140004ff0
nop
lea r15, [r14 + 0x38]
mov byte [r15 + 0x20], 0
lea rax, [rsp + 0x58]
cmp r15, rax
je 0x14001481b
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, r15
call fcn.140005060
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140006b00
movzx eax, byte [r15 + 0x20]
mov byte [rbp - 0x60], al
lea rcx, [rbp - 0x80]
call fcn.140004ff0
nop
lea rcx, [rsp + 0x58]
call fcn.140004ff0
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [r14 + 0x58], 0
je 0x140014869
lea r8, [rbp - 0x50]
lea rdx, str.Error_creating_DVR_local_appdata_folder:__s
mov ecx, 4
call fcn.1400838f0
lea rdx, [r14 + 0x38]
mov rcx, rbx
call fcn.140006b00
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400148af
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14001488c
mov dword [rax + 4], esi
lock xadd dword [rax], edi
cmp edi, 1
je 0x1400148af
test ecx, ecx
jne 0x1400148af
mov rcx, qword [rsp + 0x28]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret