Function at 0x140013190
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc48
mov r15, rcx
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov word [rcx], 0
movzx eax, word [rdx]
test ax, ax
je 0x140013759
mov rsi, r8
mov rdi, rdx
lea r14, [rsp + 0x440]
lea r12, str.TEMP
mov r13, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rbx, str.PROGRAM
lea rbp, [0x140031b9a]
add rdi, 2
xor ecx, ecx
jmp 0x140013210
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140013759
cmp ax, 0x25
jne 0x140013230
test rcx, rcx
jne 0x140013250
mov word [rsp + 0x440], 0
mov rcx, r14
jmp 0x140013200
test rcx, rcx
je 0x1400133e0
mov word [rcx], ax
add rcx, 2
jmp 0x140013200
mov word [rcx], 0
mov rcx, r14
mov rdx, r12
call fcn.14001bd10
test eax, eax
je 0x1400133fc
mov rcx, r14
mov rdx, rbx
call fcn.14001bd10
test eax, eax
je 0x140013411
mov rcx, r14
mov rdx, rbp
call fcn.14001bd10
test eax, eax
je 0x14001348a
mov rcx, r14
lea rdx, str.HOME
call fcn.14001bd10
test eax, eax
je 0x140013584
mov rcx, r14
lea rdx, str.CACHE_DIR
call fcn.14001bd10
test eax, eax
je 0x14001360f
mov rcx, r14
lea rdx, str.VERSION
call fcn.14001bd10
test eax, eax
je 0x1400136c6
mov rcx, r14
lea rdx, str.TIME
call fcn.14001bd10
test eax, eax
jne 0x14001378a
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x30]
mov edx, 0x400
lea rcx, [rsp + 0x40]
lea r8, str._lld
call fcn.1400137a0
cmp word [r15], 0
mov r12, rsi
mov r13, r15
je 0x14001333f
nop word cs:[rax + rax]
dec r12
cmp word [r13 + 2], 0
lea r13, [r13 + 2]
jne 0x140013330
movzx r14d, byte [rsp + 0x40]
test r14b, r14b
je 0x140013550
lea rbx, [rsp + 0x40]
nop word cs:[rax + rax]
cmp word [r13], 0
mov rbp, r13
mov rax, r12
je 0x140013391
mov rax, r12
mov rcx, r13
nop word cs:[rax + rax]
lea rbp, [rcx + 2]
dec rax
cmp word [rcx + 2], 0
mov rcx, rbp
jne 0x140013380
test rax, rax
je 0x14001378e
mov rcx, rbp
call fcn.14001c908
lea rcx, [rax*2]
add rcx, rbp
mov byte [rsp + 0x3e], r14b
mov byte [rsp + 0x3f], 0
mov r8d, 2
lea rdx, [rsp + 0x3e]
call fcn.14001bfd8
dec r12
movzx r14d, byte [rbx + 1]
inc rbx
test r14b, r14b
jne 0x140013360
jmp 0x140013550
test rsi, rsi
je 0x14001378a
mov word [r15], ax
add r15, 2
dec rsi
mov rcx, r15
jmp 0x1400136b2
mov ecx, esi
mov rdx, r15
call r13
cmp word [r15], 0
jne 0x1400136a0
jmp 0x1400133f4
call fcn.140016fd4
cmp word [r15], 0
mov rdx, rsi
mov rcx, r15
je 0x14001343e
nop word cs:[rax + rax]
dec rdx
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140013430
mov r8, rbx
mov rax, qword [rax]
mov rax, qword [rax]
movzx ebp, word [rax]
test bp, bp
je 0x14001347d
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdx, rbx
je 0x14001378e
mov word [rcx], bp
add rcx, 2
movzx ebp, word [rax + rbx*2 + 2]
inc rbx
test bp, bp
jne 0x140013460
mov word [rcx], 0
mov rbx, r8
jmp 0x14001356d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x1400319e1]
mov r9d, eax
call fcn.1400137a0
cmp word [r15], 0
mov rbp, rsi
mov rbx, r15
je 0x1400134ce
nop word cs:[rax + rax]
dec rbp
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400134c0
movzx r14d, byte [rsp + 0x40]
test r14b, r14b
je 0x140013550
lea r13, [rsp + 0x40]
nop
cmp word [rbx], 0
mov r12, rbx
mov rax, rbp
je 0x140013511
mov rax, rbp
mov rcx, rbx
nop word cs:[rax + rax]
lea r12, [rcx + 2]
dec rax
cmp word [rcx + 2], 0
mov rcx, r12
jne 0x140013500
test rax, rax
je 0x14001378e
mov rcx, r12
call fcn.14001c908
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x31], 0
mov r8d, 2
lea rdx, [rsp + 0x30]
call fcn.14001bfd8
dec rbp
movzx r14d, byte [r13 + 1]
inc r13
test r14b, r14b
jne 0x1400134e0
lea r14, [rsp + 0x440]
lea r12, str.TEMP
mov r13, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rbx, str.PROGRAM
lea rbp, [0x140031b9a]
cmp word [r15], 0
jne 0x1400136a0
jmp 0x1400133f4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14001378a
cmp word [r15], 0
mov rcx, rsi
mov rax, r15
je 0x1400135ce
nop word cs:[rax + rax]
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400135c0
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x14001368d
xor ebp, ebp
nop word cs:[rax + rax]
cmp rcx, rbp
je 0x14001378e
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
inc rbp
test dx, dx
jne 0x1400135f0
jmp 0x14001368d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0x1c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14001378a
cmp word [r15], 0
mov rcx, rsi
mov rax, r15
je 0x14001365e
nop word cs:[rax + rax]
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140013650
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x14001368d
xor ebp, ebp
nop dword [rax]
cmp rcx, rbp
je 0x14001378e
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
inc rbp
test dx, dx
jne 0x140013670
mov word [rax], 0
mov rbp, r8
cmp word [r15], 0
je 0x1400133f4
lea rcx, [r15 + 2]
dec rsi
cmp word [r15 + 2], 0
mov r15, rcx
jne 0x1400136a0
movzx eax, word [rdi]
mov r15, rcx
test ax, ax
jne 0x1400131f3
jmp 0x14001375c
cmp word [r15], 0
mov rcx, rsi
mov rax, r15
je 0x1400136ee
nop word cs:[rax + rax]
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400136e0
test rcx, rcx
je 0x14001378e
mov word [rax], 0x32
cmp rcx, 1
je 0x14001378e
mov word [rax + 2], 0x2e
cmp rcx, 2
je 0x14001378e
mov word [rax + 4], 0x33
cmp rcx, 3
je 0x14001378e
mov word [rax + 6], 0x2e
cmp rcx, 4
je 0x14001378e
mov word [rax + 8], 0x30
cmp rcx, 5
je 0x14001378e
mov word [rax + 0xa], 0x2e
cmp rcx, 6
je 0x14001378e
mov dword [rax + 0xc], 0x30
cmp word [r15], 0
jne 0x1400136a0
jmp 0x1400133f4
mov rcx, r15
mov word [rcx], 0
mov sil, 1
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.140015260
mov eax, esi
add rsp, 0xc48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x140013764
call fcn.14001bf5c
int3