Function at 0x140012700
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 rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov word [rcx], 0
lea r14, [rsp + 0x440]
lea rdx, str.TEMP
lea rbp, str.PROGRAM_BASE
lea r12, str._PROGRAM_
lea r13, [0x14002cb14]
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add rdi, 2
xor eax, eax
nop word cs:[rax + rax]
nop
movzx ecx, word [rdi - 2]
cmp cx, 0x25
je 0x1400127a0
test cx, cx
je 0x140012d09
test rax, rax
je 0x1400127c0
mov word [rax], cx
add rax, 2
add rdi, 2
jmp 0x140012770
test rax, rax
jne 0x1400127e0
mov word [rsp + 0x440], 0
add rdi, 2
mov rax, r14
jmp 0x140012770
test rsi, rsi
je 0x140012d37
mov word [rbx], cx
add rbx, 2
add rsi, 0xffffffffffffffff
jmp 0x14001275e
mov word [rax], 0
mov rcx, r14
call fcn.1400197e4
test eax, eax
je 0x14001297a
mov rcx, r14
lea rdx, str.PROGRAM
call fcn.1400197e4
test eax, eax
je 0x14001298c
mov rcx, r14
mov rdx, rbp
call fcn.1400197e4
test eax, eax
je 0x1400129f6
mov rcx, r14
mov rdx, r13
call fcn.1400197e4
test eax, eax
je 0x140012aca
mov rcx, r14
lea rdx, str.HOME
call fcn.1400197e4
test eax, eax
je 0x140012bf2
mov rcx, r14
lea rdx, str.CACHE_DIR
call fcn.1400197e4
test eax, eax
je 0x140012c80
mov rcx, r14
lea rdx, str.TIME
call fcn.1400197e4
test eax, eax
jne 0x140012d37
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, [0x14002c940]
call fcn.140012d50
cmp word [rbx], 0
mov r13, rsi
mov r14, rbx
je 0x1400128d0
nop word cs:[rax + rax]
nop dword [rax]
add r13, 0xffffffffffffffff
cmp word [r14 + 2], 0
lea r14, [r14 + 2]
jne 0x1400128c0
mov r12b, byte [rsp + 0x40]
test r12b, r12b
je 0x140012bb6
xor eax, eax
lea r15, [rsp + 0x40]
nop word cs:[rax + rax]
nop
mov rbp, r14
mov rcx, r13
test ax, ax
je 0x140012922
mov rcx, r13
mov rax, r14
nop word cs:[rax + rax]
nop dword [rax + rax]
lea rbp, [rax + 2]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
mov rax, rbp
jne 0x140012910
test rcx, rcx
je 0x140012d3b
mov rcx, rbp
call fcn.14001a1fc
lea rcx, [rax*2]
add rcx, rbp
mov byte [rsp + 0x3e], r12b
mov byte [rsp + 0x3f], 0
mov r8d, 2
lea rdx, [rsp + 0x3e]
call fcn.140019a10
mov r12b, byte [r15 + 1]
test r12b, r12b
je 0x140012bb6
add r14, 2
add r15, 1
add r13, 0xffffffffffffffff
movzx eax, word [r14]
jmp 0x1400128f0
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 1
jmp 0x140012a62
mov r15, r13
mov r13, r12
mov r12, rbp
call fcn.1400164a8
cmp word [rbx], 0
mov rdx, rsi
mov rcx, rbx
je 0x1400129bf
nop word cs:[rax + rax]
add rdx, 0xffffffffffffffff
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400129b0
mov rax, qword [rax]
mov r8, qword [rax]
movzx ebp, word [r8]
test bp, bp
je 0x1400129ef
xor eax, eax
cmp rdx, rax
je 0x140012d3b
mov word [rcx], bp
add rcx, 2
movzx ebp, word [r8 + rax*2 + 2]
add rax, 1
test bp, bp
jne 0x1400129d0
mov word [rcx], 0
jmp 0x140012a50
mov rcx, rbx
call fcn.14001a1fc
mov r8, rsi
sub r8, rax
mov rcx, rbx
mov rdx, r12
call fcn.140012700
test al, al
je 0x140012d37
mov r15, r13
mov r13, r12
mov r12, rbp
mov rcx, rbx
call fcn.14001a1fc
cmp rax, 4
jb 0x140012a50
mov rbp, rax
lea rcx, [rbx + rax*2]
add rcx, 0xfffffffffffffff8
lea rdx, str..exe
call fcn.1400197e4
test eax, eax
jne 0x140012a50
mov word [rbx + rbp*2 - 8], 0
xor eax, eax
mov rbp, r12
mov r12, r13
mov r13, r15
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.TEMP
cmp word [rbx], 0
je 0x140012a92
mov rcx, rbx
nop word cs:[rax + rax]
nop dword [rax]
lea rbx, [rcx + 2]
add rsi, 0xffffffffffffffff
cmp word [rcx + 2], 0
mov rcx, rbx
jne 0x140012a80
test al, al
je 0x14001275e
cmp word [rbx - 2], 0x5c
jne 0x14001275e
nop word cs:[rax + rax]
nop
mov word [rbx - 2], 0
add rsi, 1
cmp word [rbx - 4], 0x5c
lea rbx, [rbx - 2]
je 0x140012ab0
jmp 0x14001275e
call r15
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x14002c962]
mov r9d, eax
call fcn.140012d50
cmp word [rbx], 0
mov rbp, rsi
mov r14, rbx
je 0x140012b10
nop word cs:[rax + rax]
nop dword [rax]
add rbp, 0xffffffffffffffff
cmp word [r14 + 2], 0
lea r14, [r14 + 2]
jne 0x140012b00
mov r12b, byte [rsp + 0x40]
test r12b, r12b
je 0x140012bb6
xor eax, eax
lea r15, [rsp + 0x40]
nop word cs:[rax + rax]
nop
mov r13, r14
mov rcx, rbp
test ax, ax
je 0x140012b62
mov rcx, rbp
mov rax, r14
nop word cs:[rax + rax]
nop dword [rax + rax]
lea r13, [rax + 2]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
mov rax, r13
jne 0x140012b50
test rcx, rcx
je 0x140012d3b
mov rcx, r13
call fcn.14001a1fc
lea rcx, [rax*2]
add rcx, r13
mov byte [rsp + 0x3e], r12b
mov byte [rsp + 0x3f], 0
mov r8d, 2
lea rdx, [rsp + 0x3e]
call fcn.140019a10
mov r12b, byte [r15 + 1]
test r12b, r12b
je 0x140012bb6
add r14, 2
add r15, 1
add rbp, 0xffffffffffffffff
movzx eax, word [r14]
jmp 0x140012b30
xor eax, eax
lea r14, [rsp + 0x440]
lea rdx, str.TEMP
lea rbp, str.PROGRAM_BASE
lea r12, str._PROGRAM_
lea r13, [0x14002cb14]
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp word [rbx], 0
jne 0x140012a6f
jmp 0x140012a92
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 0x140012d37
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012c3f
nop word cs:[rax + rax]
nop dword [rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012c30
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012cfa
xor ebp, ebp
nop word cs:[rax + rax]
nop dword [rax]
cmp rcx, rbp
je 0x140012d3b
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
add rbp, 1
test dx, dx
jne 0x140012c60
jmp 0x140012cfa
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 0x140012d37
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012ccf
nop word cs:[rax + rax]
nop dword [rax + rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012cc0
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012cfa
xor ebp, ebp
nop
cmp rcx, rbp
je 0x140012d3b
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
add rbp, 1
test dx, dx
jne 0x140012ce0
mov word [rax], 0
mov al, 1
mov rbp, r8
jmp 0x140012a62
mov word [rbx], 0
mov sil, 1
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.140014a30
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 0x140012d11
call fcn.140019994
int3