Function at 0x1400096a5
Capabilities:
Get common file path

Disassembly:
test rdx, rdx
je 0x1400099de
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 [0x14005d098]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
mov r13, rcx
xor r12d, r12d
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x1400096f5
mov al, byte [rcx]
jmp 0x1400096f8
mov al, byte [rdx + 0x20]
test al, al
je 0x1400099b5
lea r15, [0x14004e52c]
test rcx, rcx
je 0x14000971a
add rcx, 8
call fcn.140003a60
mov rbx, rax
jmp 0x14000971d
mov rbx, r15
lea rcx, [rsp + 0x70]
call fcn.140002fb0
nop
lea rcx, [rsp + 0x50]
call fcn.140002fb0
nop
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
lea rsi, [r13 + 0x110]
test eax, eax
je 0x1400097aa
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 0x14000976e
mov r8, r12
jmp 0x14000977b
mov r8, r14
inc r8
cmp word [rsi + r8*2], r12w
jne 0x140009771
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140003400
cmp word [rbx], r12w
jne 0x140009793
mov r8, r12
jmp 0x1400097a0
mov r8, r14
inc r8
cmp word [rbx + r8*2], r12w
jne 0x140009796
mov rdx, rbx
lea rcx, [rsp + 0x50]
jmp 0x140009815
mov r8, rbx
mov edx, 0x104
mov rcx, rsi
call fcn.14001b0e4
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or r14, 0xffffffffffffffff
cmp word [rax], r12w
jne 0x1400097d2
mov r8, r12
jmp 0x1400097df
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400097d5
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003400
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [rsi], r12w
jne 0x140009800
mov r8, r12
jmp 0x14000980d
mov r8, r14
inc r8
cmp word [rsi + r8*2], r12w
jne 0x140009803
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140003400
test dword [rdi + 0x10], 0x20000
je 0x14000989a
lea rcx, [rsp + 0x50]
call fcn.140003a60
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.140003a60
mov rcx, rax
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000989a
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000989a
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000989a
lea rcx, [rax + 8]
cmp word [rbp - 0x70], r12w
jne 0x140009880
mov r8, r12
jmp 0x140009891
lea rax, [rbp - 0x70]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x140009887
lea rdx, [rbp - 0x70]
call fcn.140003400
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400098af
add rcx, 8
call fcn.140003a60
mov r15, rax
mov rcx, r15
call fcn.14001aa50
test rax, rax
je 0x140009961
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
test dword [rdi + 0x10], 0x10000
je 0x1400098ee
mov dword [rsp + 0x20], 2
jmp 0x1400098f6
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, r14
je 0x140009961
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 0x140009958
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140009958
lea rcx, [rax + 8]
cmp word [rsi], r12w
jne 0x140009943
mov r14, r12
jmp 0x14000994d
inc r14
cmp word [rsi + r14*2], r12w
jne 0x140009943
mov r8, r14
mov rdx, rsi
call fcn.140003400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [rdi + 0xc], 0x40000000
je 0x14000998e
mov rdx, rdi
mov rcx, r13
call fcn.1400093b8
test dword [rdi + 0x10], 0x100000
je 0x14000998e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, r13
call fcn.1400092f8
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000999c
mov byte [rax], r12b
jmp 0x1400099a0
mov byte [rdi + 0x20], r12b
lea rcx, [rsp + 0x50]
call fcn.140003bf0
nop
lea rcx, [rsp + 0x70]
call fcn.140003bf0
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140013b90
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret