Function at 0x140008850
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xcc0
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
xor r15d, r15d
mov rbx, rcx
mov word [rcx], r15w
mov rsi, r8
movzx ecx, word [rdx]
mov r14, rdx
mov eax, r15d
test cx, cx
je 0x140008b4d
cmp cx, 0x7b
jne 0x1400088b0
lea rax, [rsp + 0xb0]
mov word [rsp + 0xb0], r15w
jmp 0x140008b3b
cmp cx, 0x7d
jne 0x140008b19
lea rdx, str.TEMP
mov word [rax], r15w
lea rcx, [rsp + 0xb0]
xor bpl, bpl
call fcn.140014ba0
test eax, eax
jne 0x1400088ec
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov bpl, 1
jmp 0x140008ad8
lea rdx, [0x140024858]
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x14000895e
mov rdi, rsi
call fcn.1400109b8
mov rcx, qword [rax]
mov rax, rbx
mov rdx, qword [rcx]
cmp word [rbx], r15w
je 0x14000892d
nop dword [rax + rax]
add rax, 2
dec rdi
cmp word [rax], r15w
jne 0x140008920
movzx ecx, word [rdx]
test cx, cx
je 0x140008955
cmp rdi, 1
jb 0x140008b7e
add rdx, 2
mov word [rax], cx
add rax, 2
dec rdi
movzx ecx, word [rdx]
test cx, cx
jne 0x140008935
mov word [rax], r15w
jmp 0x140008ad8
lea rdx, str.PROGRAM_BASE
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x1400089ea
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140008980
mov r8, rsi
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rbx
call fcn.140008850
test al, al
je 0x140008b7a
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400089b0
cmp rax, 4
jb 0x140008ad8
lea rdi, [rbx + rax*2]
lea rcx, [rdi - 8]
lea rdx, str..exe
call fcn.140014ba0
test eax, eax
jne 0x140008ad8
mov word [rdi - 8], r15w
jmp 0x140008ad8
lea rdx, [0x1400248b0]
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x140008a2b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400247e8]
mov edx, 0x80
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.14000bdd0
lea rdx, [rsp + 0x30]
jmp 0x140008acd
lea rdx, [0x1400248b8]
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x140008a48
lea edx, [rax + 0x28]
jmp 0x140008a63
lea rdx, str.CACHE_DIR
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x140008a7b
lea edx, [rax + 0x1c]
mov r8, rsi
mov rcx, rbx
call fcn.1400082b0
test al, al
je 0x140008b7a
mov bpl, 1
jmp 0x140008ad8
lea rdx, str.TIME
lea rcx, [rsp + 0xb0]
call fcn.140014ba0
test eax, eax
jne 0x140008b7a
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x20]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.14000bdd0
lea rdx, [rsp + 0x8b0]
mov r8, rsi
mov rcx, rbx
call fcn.140008370
cmp word [rbx], r15w
je 0x140008aed
nop
add rbx, 2
dec rsi
cmp word [rbx], r15w
jne 0x140008ae0
test bpl, bpl
je 0x140008b14
cmp word [rbx - 2], 0x5c
lea rax, [rbx - 2]
jne 0x140008b14
nop dword [rax]
mov word [rax], r15w
mov rbx, rax
add rax, 0xfffffffffffffffe
inc rsi
cmp word [rax], 0x5c
je 0x140008b00
mov rax, r15
jmp 0x140008b3b
test rax, rax
je 0x140008b27
mov word [rax], cx
add rax, 2
jmp 0x140008b3b
cmp rsi, 1
jb 0x140008b7a
mov word [rbx], cx
add rbx, 2
dec rsi
mov word [rbx], r15w
movzx ecx, word [r14 + 2]
add r14, 2
test cx, cx
jne 0x140008894
mov word [rbx], r15w
mov al, 1
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.14000c550
mov rbx, qword [rsp + 0xcf8]
add rsp, 0xcc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x140008b53
call fcn.1400105b8
int3