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 [0x140033008]
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 r15, str..exe
lea r13, [0x14002db50]
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 0x140012edc
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 0x140012f0a
mov word [rbx], cx
add rbx, 2
add rsi, 0xffffffffffffffff
jmp 0x14001275e
mov word [rax], 0
mov rcx, r14
call fcn.140019a60
test eax, eax
je 0x1400129b6
mov rcx, r14
lea rdx, str.PROGRAM
call fcn.140019a60
test eax, eax
je 0x1400129c8
mov rcx, r14
mov rdx, rbp
call fcn.140019a60
test eax, eax
je 0x140012a26
mov rcx, r14
mov rdx, r13
call fcn.140019a60
test eax, eax
je 0x140012aea
mov rcx, r14
lea rdx, str.HOME
call fcn.140019a60
test eax, eax
je 0x140012c01
mov rcx, r14
lea rdx, str.CACHE_DIR
call fcn.140019a60
test eax, eax
je 0x140012c90
mov rcx, r14
lea rdx, str.COMPANY
call fcn.140019a60
test eax, eax
je 0x140012d1d
mov rcx, r14
lea rdx, str.PRODUCT
call fcn.140019a60
test eax, eax
je 0x140012ddc
mov rcx, r14
lea rdx, str.VERSION
call fcn.140019a60
test eax, eax
je 0x140012e5c
mov rcx, r14
lea rdx, str.TIME
call fcn.140019a60
test eax, eax
jne 0x140012f0a
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.140012f20
cmp word [rbx], 0
mov r13, rsi
mov r14, rbx
je 0x140012910
nop word [rax + rax]
add r13, 0xffffffffffffffff
cmp word [r14 + 2], 0
lea r14, [r14 + 2]
jne 0x140012900
mov r12b, byte [rsp + 0x40]
test r12b, r12b
je 0x140012bcf
xor ecx, ecx
lea r15, [rsp + 0x40]
nop word cs:[rax + rax]
nop
mov rbp, r14
mov rax, r13
test cx, cx
je 0x140012962
mov rax, r13
mov rcx, r14
nop word cs:[rax + rax]
nop dword [rax + rax]
lea rbp, [rcx + 2]
add rax, 0xffffffffffffffff
cmp word [rcx + 2], 0
mov rcx, rbp
jne 0x140012950
test rax, rax
je 0x140012f0e
mov rcx, rbp
call fcn.14001a47c
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.140019c8c
mov r12b, byte [r15 + 1]
test r12b, r12b
je 0x140012bcf
add r15, 1
add r13, 0xffffffffffffffff
movzx ecx, word [r14]
jmp 0x140012930
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 1
jmp 0x140012a88
mov r13, r12
mov r12, rbp
call fcn.140016638
cmp word [rbx], 0
mov rdx, rsi
mov rcx, rbx
je 0x1400129ef
nop
add rdx, 0xffffffffffffffff
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400129e0
mov rax, qword [rax]
mov r8, qword [rax]
movzx ebp, word [r8]
test bp, bp
je 0x140012a1f
xor eax, eax
cmp rdx, rax
je 0x140012f0e
mov word [rcx], bp
add rcx, 2
movzx ebp, word [r8 + rax*2 + 2]
add rax, 1
test bp, bp
jne 0x140012a00
mov word [rcx], 0
jmp 0x140012a79
mov rcx, rbx
call fcn.14001a47c
mov r8, rsi
sub r8, rax
mov rcx, rbx
mov rdx, r12
call fcn.140012700
test al, al
je 0x140012f0a
mov r13, r12
mov r12, rbp
mov rcx, rbx
call fcn.14001a47c
cmp rax, 4
jb 0x140012a79
mov rbp, rax
lea rcx, [rbx + rax*2]
add rcx, 0xfffffffffffffff8
mov rdx, r15
call fcn.140019a60
test eax, eax
jne 0x140012a79
mov word [rbx + rbp*2 - 8], 0
xor eax, eax
mov rbp, r12
mov r12, r13
lea r13, [0x14002db50]
lea rdx, str.TEMP
cmp word [rbx], 0
je 0x140012ab2
mov rcx, rbx
nop dword [rax + rax]
lea rbx, [rcx + 2]
add rsi, 0xffffffffffffffff
cmp word [rcx + 2], 0
mov rcx, rbx
jne 0x140012aa0
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 0x140012ad0
jmp 0x14001275e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x14002d972]
mov r9d, eax
call fcn.140012f20
cmp word [rbx], 0
mov rbp, rsi
mov r14, rbx
je 0x140012b30
nop word cs:[rax + rax]
nop
add rbp, 0xffffffffffffffff
cmp word [r14 + 2], 0
lea r14, [r14 + 2]
jne 0x140012b20
mov r12b, byte [rsp + 0x40]
test r12b, r12b
je 0x140012bcf
xor ecx, ecx
lea r15, [rsp + 0x40]
nop word cs:[rax + rax]
nop
mov r13, r14
mov rax, rbp
test cx, cx
je 0x140012b82
mov rax, rbp
mov rcx, r14
nop word cs:[rax + rax]
nop dword [rax + rax]
lea r13, [rcx + 2]
add rax, 0xffffffffffffffff
cmp word [rcx + 2], 0
mov rcx, r13
jne 0x140012b70
test rax, rax
je 0x140012f0e
mov rcx, r13
call fcn.14001a47c
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.140019c8c
mov r12b, byte [r15 + 1]
test r12b, r12b
je 0x140012bcf
add r15, 1
add rbp, 0xffffffffffffffff
movzx ecx, word [r14]
jmp 0x140012b50
xor eax, eax
lea r14, [rsp + 0x440]
lea rdx, str.TEMP
lea rbp, str.PROGRAM_BASE
lea r12, str._PROGRAM_
lea r15, str..exe
lea r13, [0x14002db50]
jmp 0x140012a8f
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 0x140012f0a
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012c4f
nop word cs:[rax + rax]
nop dword [rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012c40
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012d0e
xor ebp, ebp
nop word cs:[rax + rax]
nop dword [rax]
cmp rcx, rbp
je 0x140012f0e
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
add rbp, 1
test dx, dx
jne 0x140012c70
jmp 0x140012d0e
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 0x140012f0a
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012cdf
nop word cs:[rax + rax]
nop dword [rax + rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012cd0
mov r8, rbp
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012d0e
xor ebp, ebp
nop
cmp rcx, rbp
je 0x140012f0e
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + rbp*2 + 0x42]
add rbp, 1
test dx, dx
jne 0x140012cf0
mov word [rax], 0
mov al, 1
mov rbp, r8
jmp 0x140012a88
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012d3f
nop dword [rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012d30
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f0e
mov word [rax], 0x4d
cmp rcx, 1
je 0x140012f0e
mov word [rax + 2], 0x69
cmp rcx, 2
je 0x140012f0e
mov word [rax + 4], 0x63
cmp rcx, 3
je 0x140012f0e
mov word [rax + 6], 0x72
cmp rcx, 4
je 0x140012f0e
mov word [rax + 8], 0x6f
cmp rcx, 5
je 0x140012f0e
mov word [rax + 0xa], 0x73
cmp rcx, 6
je 0x140012f0e
mov word [rax + 0xc], 0x6f
cmp rcx, 7
je 0x140012f0e
mov word [rax + 0xe], 0x66
cmp rcx, 8
je 0x140012f0e
mov dword [rax + 0x10], 0x74
xor eax, eax
jmp 0x140012a8f
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012dff
nop dword [rax + rax]
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012df0
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f0e
mov word [rax], 0x53
cmp rcx, 1
je 0x140012f0e
mov word [rax + 2], 0x65
cmp rcx, 2
je 0x140012f0e
mov word [rax + 4], 0x74
cmp rcx, 3
je 0x140012f0e
mov word [rax + 6], 0x75
cmp rcx, 4
je 0x140012f0e
mov dword [rax + 8], 0x70
xor eax, eax
jmp 0x140012a8f
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140012e77
add rcx, 0xffffffffffffffff
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012e68
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f0e
mov word [rax], 0x31
cmp rcx, 1
je 0x140012f0e
mov word [rax + 2], 0x2e
cmp rcx, 2
je 0x140012f0e
mov word [rax + 4], 0x31
cmp rcx, 3
je 0x140012f0e
mov word [rax + 6], 0x2e
cmp rcx, 4
je 0x140012f0e
mov word [rax + 8], 0x30
cmp rcx, 5
je 0x140012f0e
mov word [rax + 0xa], 0x2e
cmp rcx, 6
je 0x140012f0e
mov dword [rax + 0xc], 0x30
xor eax, eax
jmp 0x140012a8f
mov word [rbx], 0
mov sil, 1
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.140014bf0
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 0x140012ee4
call fcn.140019c10
int3