Function at 0x140012780
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 r14, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov word [rcx], 0
movzx eax, word [rdx]
test ax, ax
je 0x140012f6c
mov rsi, r8
mov rdi, rdx
lea rbx, [rsp + 0x440]
lea rdx, str.TEMP
lea r15, str.PROGRAM
lea r12, str.PROGRAM_BASE
lea rbp, [0x140035112]
lea r13, str..exe
add rdi, 2
xor ecx, ecx
jmp 0x14001281d
mov word [rsp + 0x440], 0
mov rcx, rbx
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140012f6c
cmp ax, 0x7b
je 0x140012800
movzx r8d, ax
cmp r8d, 0x7d
je 0x140012840
test rcx, rcx
je 0x140012a10
mov word [rcx], ax
add rcx, 2
jmp 0x14001280d
mov word [rcx], 0
mov rcx, rbx
call fcn.14001aca8
test eax, eax
je 0x140012a30
mov rcx, rbx
mov rdx, r15
call fcn.14001aca8
test eax, eax
je 0x140012a49
mov rcx, rbx
mov rdx, r12
call fcn.14001aca8
test eax, eax
je 0x140012ac3
mov rcx, rbx
lea rdx, [0x140035202]
call fcn.14001aca8
test eax, eax
je 0x140012b32
mov rcx, rbx
lea rdx, str.HOME
call fcn.14001aca8
test eax, eax
je 0x140012c8d
mov rcx, rbx
lea rdx, str.CACHE_DIR
call fcn.14001aca8
test eax, eax
je 0x140012d00
mov rcx, rbx
lea rdx, str.COMPANY
call fcn.14001aca8
test eax, eax
je 0x140012d88
mov rcx, rbx
lea rdx, str.PRODUCT
call fcn.14001aca8
test eax, eax
je 0x140012e90
mov rcx, rbx
lea rdx, str.VERSION
call fcn.14001aca8
test eax, eax
je 0x140012f08
mov rcx, rbx
lea rdx, str.TIME
call fcn.14001aca8
test eax, eax
jne 0x140012f9b
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.1400126f0
cmp word [r14], 0
mov r15, rsi
mov rbp, r14
je 0x140012966
dec r15
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012958
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140012bfb
lea r13, [rsp + 0x40]
mov byte [rsp + 0x3e], al
mov byte [rsp + 0x3f], 0
mov r8d, 2
lea rcx, [rsp + 0x3a]
lea rdx, [rsp + 0x3e]
call fcn.14001af7c
cmp rax, 1
jne 0x140012f9f
cmp word [rbp], 0
mov rcx, r15
mov rax, rbp
je 0x1400129d1
mov rdx, rbp
mov rcx, r15
nop word cs:[rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400129c0
test rcx, rcx
je 0x140012f9f
movzx ecx, word [rsp + 0x3a]
mov word [rax], cx
mov word [rax + 2], 0
add rbp, 2
dec r15
movzx eax, byte [r13 + 1]
inc r13
test al, al
jne 0x140012978
jmp 0x140012bfb
test rsi, rsi
je 0x140012f9b
mov word [r14], ax
mov word [r14 + 2], 0
add r14, 2
dec rsi
jmp 0x140012c7c
mov ecx, esi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 1
lea rdx, str.TEMP
jmp 0x140012c20
call fcn.140015d84
cmp word [r14], 0
mov rdx, rsi
mov rcx, r14
je 0x140012a6e
nop dword [rax + rax]
dec rdx
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140012a60
mov rax, qword [rax]
mov rax, qword [rax]
movzx r8d, word [rax]
test r8w, r8w
je 0x140012ab0
xor r9d, r9d
nop word cs:[rax + rax]
cmp rdx, r9
je 0x140012f9f
mov word [rcx], r8w
add rcx, 2
movzx r8d, word [rax + r9*2 + 2]
inc r9
test r8w, r8w
jne 0x140012a90
mov word [rcx], 0
xor eax, eax
lea rdx, str.TEMP
jmp 0x140012c20
mov rcx, r14
call fcn.14001b8b8
mov r8, rsi
sub r8, rax
mov rcx, r14
mov rdx, rbp
call fcn.140012780
test al, al
je 0x140012f9b
mov rbp, r12
mov r12, r15
mov rcx, r14
call fcn.14001b8b8
cmp rax, 4
jb 0x140012b17
mov r15, rax
lea rcx, [r14 + rax*2]
add rcx, 0xfffffffffffffff8
mov rdx, r13
call fcn.14001aca8
test eax, eax
jne 0x140012b17
mov word [r14 + r15*2 - 8], 0
xor eax, eax
mov r15, r12
mov r12, rbp
lea rbp, [0x140035112]
lea rdx, str.TEMP
jmp 0x140012c20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x140034fae]
mov r9d, eax
call fcn.1400126f0
cmp word [r14], 0
mov r15, rsi
mov rbp, r14
je 0x140012b6e
nop
dec r15
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012b60
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140012bfb
lea r13, [rsp + 0x40]
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
mov r8d, 2
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x3a]
call fcn.14001af7c
cmp rax, 1
jne 0x140012f9f
cmp word [rbp], 0
mov rcx, r15
mov rax, rbp
je 0x140012bd1
mov rdx, rbp
mov rcx, r15
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x140012bc0
test rcx, rcx
je 0x140012f9f
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov word [rax + 2], 0
add rbp, 2
dec r15
movzx eax, byte [r13 + 1]
inc r13
test al, al
jne 0x140012b80
xor eax, eax
lea rdx, str.TEMP
lea r15, str.PROGRAM
lea rbp, [0x140035112]
lea r13, str..exe
nop dword [rax]
cmp word [r14], 0
je 0x140012c48
nop word [rax + rax]
lea rcx, [r14 + 2]
dec rsi
cmp word [r14 + 2], 0
mov r14, rcx
jne 0x140012c30
test al, al
je 0x140012c79
jmp 0x140012c4f
mov rcx, r14
test al, al
je 0x140012c79
cmp word [rcx - 2], 0x5c
jne 0x140012c79
nop word cs:[rax + rax]
lea r14, [rcx - 2]
mov word [rcx - 2], 0
inc rsi
cmp word [rcx - 4], 0x5c
mov rcx, r14
je 0x140012c60
jmp 0x140012c7c
mov r14, rcx
movzx eax, word [rdi]
test ax, ax
jne 0x1400127ea
jmp 0x140012f6c
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 0x140012f9b
cmp word [r14], 0
mov rcx, rsi
mov rax, r14
je 0x140012cce
nop
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012cc0
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012d7e
xor r8d, r8d
nop
cmp rcx, r8
je 0x140012f9f
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + r8*2 + 0x42]
inc r8
test dx, dx
jne 0x140012ce0
jmp 0x140012d7e
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 0x140012f9b
cmp word [r14], 0
mov rcx, rsi
mov rax, r14
je 0x140012d4e
nop word cs:[rax + rax]
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012d40
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x140012d7e
xor r8d, r8d
nop dword [rax + rax]
cmp rcx, r8
je 0x140012f9f
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + r8*2 + 0x42]
inc r8
test dx, dx
jne 0x140012d60
mov word [rax], 0
jmp 0x140012a3b
cmp word [r14], 0
mov rcx, rsi
mov rax, r14
je 0x140012da3
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012d95
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f9f
mov word [rax], 0x4d
cmp rcx, 1
je 0x140012f9f
mov word [rax + 2], 0x61
cmp rcx, 2
je 0x140012f9f
mov word [rax + 4], 0x6b
cmp rcx, 3
je 0x140012f9f
mov word [rax + 6], 0x20
cmp rcx, 4
je 0x140012f9f
mov word [rax + 8], 0x49
cmp rcx, 5
je 0x140012f9f
mov word [rax + 0xa], 0x6e
cmp rcx, 6
je 0x140012f9f
mov word [rax + 0xc], 0x64
cmp rcx, 7
je 0x140012f9f
mov word [rax + 0xe], 0x75
cmp rcx, 8
je 0x140012f9f
mov word [rax + 0x10], 0x73
cmp rcx, 9
je 0x140012f9f
mov word [rax + 0x12], 0x74
cmp rcx, 0xa
je 0x140012f9f
mov word [rax + 0x14], 0x72
cmp rcx, 0xb
je 0x140012f9f
mov word [rax + 0x16], 0x69
cmp rcx, 0xc
je 0x140012f9f
mov word [rax + 0x18], 0x65
cmp rcx, 0xd
je 0x140012f9f
mov dword [rax + 0x1a], 0x73
xor eax, eax
jmp 0x140012c20
cmp word [r14], 0
mov rcx, rsi
mov rax, r14
je 0x140012eab
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012e9d
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f9f
mov word [rax], 0x56
cmp rcx, 1
je 0x140012f9f
mov word [rax + 2], 0x69
cmp rcx, 2
je 0x140012f9f
mov word [rax + 4], 0x72
cmp rcx, 3
je 0x140012f9f
mov word [rax + 6], 0x75
cmp rcx, 4
je 0x140012f9f
mov dword [rax + 8], 0x73
xor eax, eax
jmp 0x140012c20
cmp word [r14], 0
mov rcx, rsi
mov rax, r14
je 0x140012f23
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012f15
test rcx, rcx
lea rdx, str.TEMP
je 0x140012f9f
mov word [rax], 0x31
cmp rcx, 1
je 0x140012f9f
mov word [rax + 2], 0x2e
cmp rcx, 2
je 0x140012f9f
mov word [rax + 4], 0x30
cmp rcx, 3
je 0x140012f9f
mov word [rax + 6], 0x2e
cmp rcx, 4
je 0x140012f9f
mov dword [rax + 8], 0x30
xor eax, eax
jmp 0x140012c20
mov word [r14], 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 0x140012f75
call fcn.14001af00
int3