Function at 0x14000a834
Capabilities:
Get common file path

Disassembly:
test rdx, rdx
je 0x14000abe8
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rdx
mov r13, rcx
xor r12d, r12d
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x14000a88d
mov cl, byte [rax]
jmp 0x14000a890
mov cl, byte [rdx + 0x20]
test cl, cl
je 0x14000abbf
mov rcx, rbx
call fcn.14000e14c
mov r14, rax
lea rcx, [rsp + 0x78]
call fcn.1400049d0
lea rcx, [rsp + 0x78]
call fcn.140004a50
mov edi, 7
mov qword [rax], rdi
lea rcx, [rsp + 0x78]
call fcn.1400044e0
mov word [rsp + 0x40], r12w
mov qword [rax + 0x10], r12
cmp qword [rax + 0x18], 8
jb 0x14000a8dd
mov rax, qword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140004a60
nop
lea rcx, [rsp + 0x58]
call fcn.1400049d0
lea rcx, [rsp + 0x58]
call fcn.140004a50
mov qword [rax], rdi
lea rcx, [rsp + 0x58]
call fcn.1400044e0
mov word [rsp + 0x40], r12w
mov qword [rax + 0x10], r12
cmp qword [rax + 0x18], 8
jb 0x14000a920
mov rax, qword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140004a60
nop
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov r15d, 0x104
lea rdi, [r13 + 0x110]
test eax, eax
je 0x14000a9ab
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rsi, 0xffffffffffffffff
cmp word [rdi], r12w
jne 0x14000a96f
mov r8, r12
jmp 0x14000a97c
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14000a972
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140004880
cmp word [r14], r12w
jne 0x14000a994
mov r8, r12
jmp 0x14000a9a1
mov r8, rsi
inc r8
cmp word [r14 + r8*2], r12w
jne 0x14000a997
mov rdx, r14
lea rcx, [rsp + 0x58]
jmp 0x14000aa14
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1401cb54c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or rsi, 0xffffffffffffffff
cmp word [rax], r12w
jne 0x14000a9d1
mov r8, r12
jmp 0x14000a9de
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000a9d4
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140004880
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [rdi], r12w
jne 0x14000a9ff
mov r8, r12
jmp 0x14000aa0c
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14000aa02
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140004880
test dword [rbx + 0x10], 0x20000
je 0x14000aaae
lea rcx, [rsp + 0x58]
call fcn.1400044e0
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x14000aa3d
mov r14, qword [rax]
lea rcx, [rsp + 0x78]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000aa51
mov rax, qword [rax]
mov r9, rdi
xor r8d, r8d
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000aaae
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000aaae
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000aaae
lea rcx, [rax + 8]
cmp word [rbp - 0x60], r12w
jne 0x14000aa94
mov r8, r12
jmp 0x14000aaa5
lea rax, [rbp - 0x60]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000aa9b
lea rdx, [rbp - 0x60]
call fcn.140004880
mov rcx, rbx
call fcn.14000e14c
mov r14, rax
mov rcx, rax
call fcn.1401c9048
test rax, rax
je 0x14000ab6b
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
test dword [rbx + 0x10], 0x10000
je 0x14000aaf8
mov dword [rsp + 0x20], 2
jmp 0x14000ab00
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rsi
je 0x14000ab6b
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x14000ab62
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000ab62
lea rcx, [rax + 8]
cmp word [rdi], r12w
jne 0x14000ab4d
mov rsi, r12
jmp 0x14000ab57
inc rsi
cmp word [rdi + rsi*2], r12w
jne 0x14000ab4d
mov r8, rsi
mov rdx, rdi
call fcn.140004880
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [rbx + 0xc], 0x40000000
je 0x14000ab98
mov rdx, rbx
mov rcx, r13
call fcn.14000a494
test dword [rbx + 0x10], 0x100000
je 0x14000ab98
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, r13
call fcn.14000a3d4
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000aba6
mov byte [rax], r12b
jmp 0x14000abaa
mov byte [rbx + 0x20], r12b
lea rcx, [rsp + 0x58]
call fcn.140004af0
nop
lea rcx, [rsp + 0x78]
call fcn.140004af0
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1401c44c0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret