Function at 0x14001abb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp + 0x68], rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov rdi, qword [rcx + 0x18]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
test rdi, rdi
je 0x14001ac45
mov qword [rbp - 0x80], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x14001ac33
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x14001ac42
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]
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
xor r8d, r8d
lea rdx, [0x1401c16d8]
mov rcx, rbx
call fcn.140005060
mov dword [rsp + 0x30], 1
mov r14, 0xffffffffffffffff
cmp byte [rsi + 0x358], 0
jne 0x14001acd5
lea rdx, [rsi + 0x338]
lea rcx, [rbp + 8]
call fcn.140006b00
mov dword [rsp + 0x30], 3
lea rax, [rbp + 8]
cmp rbx, rax
je 0x14001accc
mov rcx, rbx
call fcn.140004ff0
movups xmm0, xmmword [rbp + 8]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x18]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r15w
lea rcx, [rbp + 8]
jmp 0x14001b0d1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x350]
call fcn.140152140
mov byte [rsp + 0x20], 0
mov r9d, 0x208
lea r8, [rbp + 0x350]
lea rdx, str.CaptureFileOutput
lea rcx, str.SOFTWAREAMDDVR
call fcn.140006ff0
test al, al
je 0x14001ae06
lea rax, [rbp + 0x350]
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x14001ad20
test r8, r8
je 0x14001ae06
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
lea rdx, [rbp + 0x350]
lea rcx, [rsp + 0x40]
call fcn.140005060
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x48], r15
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r15w
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x48]
call fcn.140005060
mov byte [rbp - 0x28], 0
lea rcx, [rsp + 0x40]
call fcn.140004ff0
nop
lea rdi, [rsi + 0x338]
mov byte [rdi + 0x20], 0
lea rax, [rbp - 0x48]
cmp rdi, rax
je 0x14001add4
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rdi
call fcn.140005060
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.140006b00
movzx eax, byte [rdi + 0x20]
mov byte [rbp + 0x90], al
mov esi, 5
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0x70]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x48]
jmp 0x14001b083
mov qword [rbp + 0x128], r15
lea r9, [rbp + 0x128]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401cb698]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rdx, qword [rbp + 0x128]
test rdx, rdx
je 0x14001af5a
mov qword [rbp + 0x48], r15
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp + 0x58], xmm0
mov word [rbp + 0x48], r15w
mov r8, r14
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001ae50
lea rcx, [rbp + 0x48]
call fcn.140005060
nop
mov r8d, 0xe
lea rdx, [0x1401c94a8]
lea rcx, [rbp + 0x48]
call fcn.140011ba0
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140006b00
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x70], r15
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
lea rax, [rbp - 0x70]
cmp rax, rdi
je 0x14001aecb
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001aebe
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140005060
mov byte [rbp - 0x50], 0
mov rcx, rdi
call fcn.140004ff0
nop
lea rdi, [rsi + 0x338]
mov byte [rdi + 0x20], 0
lea rax, [rbp - 0x70]
cmp rdi, rax
je 0x14001af06
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
mov rcx, rdi
call fcn.140005060
mov rdx, rdi
lea rcx, [rbp + 0x98]
call fcn.140006b00
movzx eax, byte [rdi + 0x20]
mov byte [rbp + 0xb8], al
mov esi, 9
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0x98]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x70]
call fcn.140004ff0
nop
lea rcx, [rbp + 0x48]
call fcn.140004ff0
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14001b088
mov r8d, 0x104
lea rdx, [rbp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001af89
cmp eax, 0x104
je 0x14001af89
lea rcx, [rbp + 0x140]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x14001af91
mov word [rbp + 0x140], r15w
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
lea rax, [rbp + 0x140]
mov r8, r14
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14001afb0
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x60]
call fcn.140005060
mov dword [rsp + 0x30], 0x11
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x20], r15
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.140005060
mov byte [rbp], 0
lea rcx, [rsp + 0x60]
call fcn.140004ff0
nop
lea rdi, [rsi + 0x338]
mov byte [rdi + 0x20], 0
lea rax, [rbp - 0x20]
cmp rdi, rax
je 0x14001b050
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
mov rcx, rdi
call fcn.140005060
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.140006b00
movzx eax, byte [rdi + 0x20]
mov byte [rbp + 0xe0], al
mov esi, 0x31
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0xc0]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x20]
call fcn.140004ff0
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.140006b00
or esi, 0x40
mov dword [rsp + 0x30], esi
lea rax, [rbp + 0x28]
cmp rbx, rax
je 0x14001b0cd
mov rcx, rbx
call fcn.140004ff0
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x38]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r15w
lea rcx, [rbp + 0x28]
call fcn.140004ff0
mov dword [rbp + 0x130], r15d
lea r8, [rbp + 0x130]
lea rdx, str.DvrEnabled
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400074d0
test al, al
jne 0x14001b130
lea r8, [rbp + 0x130]
lea rdx, str.DvrEnabled
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400075b0
test al, al
jne 0x14001b130
lea rdx, [rbp + 0x130]
lea rcx, str.DvrEnabled
call fcn.140007690
test al, al
je 0x14001b151
cmp dword [rbp + 0x130], 0
je 0x14001b151
mov rdx, rbx
lea rcx, [rbp + 0x108]
call fcn.140006b00
mov rcx, rax
call fcn.140105a40
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14001b18a
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14001b167
mov dword [rax + 4], r15d
lock xadd dword [rax], r14d
cmp r14d, 1
je 0x14001b18a
test ecx, ecx
jne 0x14001b18a
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rbp - 0x80]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rax, rbx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x670
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret