Function at 0x140009f40
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov eax, dword [0x14007bc28]
xor edi, edi
test al, 1
jne 0x140009faf
or eax, 1
mov dword [0x14007bc28], eax
mov qword [0x14007bc20], 7
mov qword [0x14007bc18], rdi
mov word [0x14007bc08], di
lea rcx, [0x140055500]
call fcn.14003783c
cmp qword [0x14007bc18], rdi
jne 0x14000a2b3
mov word [rbp - 9], di
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rdi
lea r8, [rbp - 9]
mov edx, 0x104
lea rcx, [rbp + 0xf]
call fcn.140009550
nop
mov rsi, qword [rbp + 0xf]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a03d
mov rdx, rsi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14000a01d
lea r8d, [rax + 3]
lea rdx, [0x1400572c0]
jmp 0x14000a05e
cmp word [rsi], 0
jne 0x14000a028
mov r8, rdi
jmp 0x14000a05b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14000a030
jmp 0x14000a05b
cmp word [rsi], 0
jne 0x14000a048
mov r8, rdi
jmp 0x14000a05b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14000a050
mov rdx, rsi
lea r14, [0x14007bc08]
mov rcx, r14
call fcn.140004610
cmp qword [0x14007bc18], 0
je 0x14000a29d
mov qword [rbp + 0x47], 7
mov qword [rbp + 0x3f], rdi
mov word [rbp + 0x2f], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp + 0x2f]
call fcn.1400044c0
nop
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
mov rax, qword [rbp + 0x3f]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14000a0cf
mov r8d, 1
lea rdx, [0x1400572c8]
lea rcx, [rbp + 0x2f]
call fcn.140009c00
lea rcx, [0x140056838]
call fcn.140005930
cmp word [rax], 0
jne 0x14000a0e6
mov r8, rdi
jmp 0x14000a0fb
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000a0f0
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140009c00
lea rcx, [rbp - 1]
call fcn.14000ef60
nop
mov rcx, qword [rax]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, rax
mov qword [rbp + 7], rax
mov rax, qword [rbp - 1]
test rax, rax
je 0x14000a151
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
je 0x14000a172
lea rcx, [rbx + 0x10]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x28]
nop
test rbx, rbx
je 0x14000a190
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8d, 1
lea rdx, [0x1400572c8]
lea rcx, [rbp + 0x2f]
call fcn.140009c00
lea rcx, str.iostream
call fcn.140005930
cmp word [rax], 0
je 0x14000a1ca
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14000a1c0
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140009c00
lea rcx, [rbp - 1]
call fcn.14000ef60
nop
mov rcx, qword [rax]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, rax
mov qword [rbp + 7], rax
mov rax, qword [rbp - 1]
test rax, rax
je 0x14000a223
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
je 0x14000a244
lea rcx, [rbx + 0x10]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x28]
nop
test rbx, rbx
je 0x14000a262
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8d, 1
lea rdx, [0x1400572c8]
lea rcx, [rbp + 0x2f]
call fcn.140009c00
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2f]
mov rcx, r14
call fcn.1400044c0
nop
cmp qword [rbp + 0x47], 8
jb 0x14000a29d
mov rcx, qword [rbp + 0x2f]
call fcn.1400376e4
nop
test rsi, rsi
je 0x14000a338
mov rcx, rsi
call fcn.1400376e4
jmp 0x14000a338
lea rcx, [rbp - 1]
call fcn.14000ef60
nop
mov rcx, qword [rax]
lea r14, [0x14007bc08]
mov rdx, r14
cmp qword [0x14007bc20], 8
cmovae rdx, qword [0x14007bc08]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, rax
mov qword [rbp + 7], rax
mov rax, qword [rbp - 1]
test rax, rax
je 0x14000a309
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
je 0x14000a319
xor edx, edx
mov rcx, rbx
call fcn.14000ffe0
nop
test rbx, rbx
je 0x14000a338
mov rcx, qword [rbx + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbx + 8]
add rcx, rdx
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
cmp qword [0x14007bc20], 8
cmovae r14, qword [0x14007bc08]
mov rax, r14
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140038d80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret