Function at 0x14000a6dc
Capabilities:
Get common file path

Disassembly:
test rdx, rdx
je 0x14000aa76
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14027eb40]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rdx
mov r13, rcx
xor r12d, r12d
mov rdi, qword [rdx + 0x18]
test rdi, rdi
je 0x14000a735
mov al, byte [rdi]
jmp 0x14000a738
mov al, byte [rdx + 0x20]
test al, al
je 0x14000aa4d
lea r15, [0x140234670]
test rdi, rdi
je 0x14000a75c
add rdi, 8
cmp qword [rdi + 0x18], 8
jb 0x14000a75f
mov rdi, qword [rdi]
jmp 0x14000a75f
mov rdi, r15
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov eax, 7
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
lea rsi, [r13 + 0x110]
test eax, eax
je 0x14000a80b
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or r14, 0xffffffffffffffff
cmp word [rsi], r12w
jne 0x14000a7cf
mov r8, r12
jmp 0x14000a7dc
mov r8, r14
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14000a7d2
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140004e30
cmp word [rdi], r12w
jne 0x14000a7f4
mov r8, r12
jmp 0x14000a801
mov r8, r14
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14000a7f7
mov rdx, rdi
lea rcx, [rsp + 0x50]
jmp 0x14000a876
mov r8, rdi
mov edx, 0x104
mov rcx, rsi
call fcn.14019bfb0
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or r14, 0xffffffffffffffff
cmp word [rax], r12w
jne 0x14000a833
mov r8, r12
jmp 0x14000a840
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000a836
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004e30
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [rsi], r12w
jne 0x14000a861
mov r8, r12
jmp 0x14000a86e
mov r8, r14
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14000a864
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140004e30
test dword [rbx + 0x10], 0x20000
je 0x14000a8ff
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov r9, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000a8ff
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000a8ff
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000a8ff
lea rcx, [rax + 8]
cmp word [rbp - 0x70], r12w
jne 0x14000a8e5
mov r8, r12
jmp 0x14000a8f6
lea rax, [rbp - 0x70]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000a8ec
lea rdx, [rbp - 0x70]
call fcn.140004e30
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000a916
lea r15, [rax + 8]
cmp qword [r15 + 0x18], 8
jb 0x14000a916
mov r15, qword [r15]
mov rcx, r15
call fcn.14019a0c8
test rax, rax
je 0x14000a9c8
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
test dword [rbx + 0x10], 0x10000
je 0x14000a955
mov dword [rsp + 0x20], 2
jmp 0x14000a95d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, r14
je 0x14000a9c8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 0x104
xor r8d, r8d
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x14000a9bf
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000a9bf
lea rcx, [rax + 8]
cmp word [rsi], r12w
jne 0x14000a9aa
mov r14, r12
jmp 0x14000a9b4
inc r14
cmp word [rsi + r14*2], r12w
jne 0x14000a9aa
mov r8, r14
mov rdx, rsi
call fcn.140004e30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [rbx + 0xc], 0x40000000
je 0x14000a9f5
mov rdx, rbx
mov rcx, r13
call fcn.14000a224
test dword [rbx + 0x10], 0x100000
je 0x14000a9f5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, r13
call fcn.14000a164
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000aa03
mov byte [rax], r12b
jmp 0x14000aa07
mov byte [rbx + 0x20], r12b
cmp qword [rsp + 0x68], 8
jb 0x14000aa19
mov rcx, qword [rsp + 0x50]
call fcn.14001ae84
mov ebx, 7
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
cmp qword [rbp - 0x78], 8
jb 0x14000aa3f
mov rcx, qword [rsp + 0x70]
call fcn.14001ae84
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140199450
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret