Function at 0x1400123a0
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 0x140012b38
mov r15, r8
mov rdi, rdx
lea rsi, [rsp + 0x440]
lea rdx, str.TEMP
lea r12, str.PROGRAM_BASE
lea r13, [0x140034422]
lea rbx, str..exe
lea rbp, [0x140034512]
add rdi, 2
xor ecx, ecx
jmp 0x14001243d
mov word [rsp + 0x440], 0
mov rcx, rsi
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140012b38
cmp ax, 0x7b
je 0x140012420
movzx r8d, ax
cmp r8d, 0x7d
je 0x140012460
test rcx, rcx
je 0x140012610
mov word [rcx], ax
add rcx, 2
jmp 0x14001242d
mov word [rcx], 0
mov rcx, rsi
call fcn.14001a4b8
test eax, eax
je 0x140012630
mov rcx, rsi
lea rdx, str.PROGRAM
call fcn.14001a4b8
test eax, eax
je 0x14001264a
mov rcx, rsi
mov rdx, r12
call fcn.14001a4b8
test eax, eax
je 0x1400126c3
mov rcx, rsi
mov rdx, rbp
call fcn.14001a4b8
test eax, eax
je 0x140012732
mov rcx, rsi
lea rdx, str.HOME
call fcn.14001a4b8
test eax, eax
je 0x14001288d
mov rcx, rsi
lea rdx, str.CACHE_DIR
call fcn.14001a4b8
test eax, eax
je 0x140012900
mov rcx, rsi
lea rdx, str.COMPANY
call fcn.14001a4b8
test eax, eax
je 0x140012988
mov rcx, rsi
lea rdx, str.PRODUCT
call fcn.14001a4b8
test eax, eax
je 0x140012a40
mov rcx, rsi
lea rdx, str.VERSION
call fcn.14001a4b8
test eax, eax
je 0x140012ab8
mov rcx, rsi
lea rdx, str.TIME
call fcn.14001a4b8
test eax, eax
jne 0x140012b67
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, [0x14003429c]
call fcn.140012310
cmp word [r14], 0
mov rsi, r15
mov rbp, r14
je 0x140012586
dec rsi
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012578
movzx ebx, byte [rsp + 0x40]
test bl, bl
je 0x1400127f2
lea r13, [rsp + 0x40]
cmp word [rbp], 0
mov r12, rbp
mov rax, rsi
je 0x1400125c1
mov rax, rsi
mov rcx, rbp
nop dword [rax + rax]
lea r12, [rcx + 2]
dec rax
cmp word [rcx + 2], 0
mov rcx, r12
jne 0x1400125b0
test rax, rax
je 0x140012b6b
mov rcx, r12
call fcn.14001b0c8
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x3e], bl
mov byte [rsp + 0x3f], 0
mov r8d, 2
lea rdx, [rsp + 0x3e]
call fcn.14001a78c
add rbp, 2
dec rsi
movzx ebx, byte [r13 + 1]
inc r13
test bl, bl
jne 0x140012598
jmp 0x1400127f2
test r15, r15
je 0x140012b67
mov word [r14], ax
mov word [r14 + 2], 0
add r14, 2
dec r15
jmp 0x14001287c
mov ecx, r15d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 1
lea rdx, str.TEMP
jmp 0x140012820
call fcn.14001558c
cmp word [r14], 0
mov rdx, r15
mov rcx, r14
je 0x14001266e
nop dword [rax]
dec rdx
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140012660
mov rax, qword [rax]
mov rax, qword [rax]
movzx r8d, word [rax]
test r8w, r8w
je 0x1400126b0
xor r9d, r9d
nop word cs:[rax + rax]
cmp rdx, r9
je 0x140012b6b
mov word [rcx], r8w
add rcx, 2
movzx r8d, word [rax + r9*2 + 2]
inc r9
test r8w, r8w
jne 0x140012690
mov word [rcx], 0
xor eax, eax
lea rdx, str.TEMP
jmp 0x140012820
mov rcx, r14
call fcn.14001b0c8
mov r8, r15
sub r8, rax
mov rcx, r14
mov rdx, r13
call fcn.1400123a0
test al, al
je 0x140012b67
mov rbp, r13
mov r13, r12
mov rcx, r14
call fcn.14001b0c8
cmp rax, 4
jb 0x140012717
mov r12, rax
lea rcx, [r14 + rax*2]
add rcx, 0xfffffffffffffff8
mov rdx, rbx
call fcn.14001a4b8
test eax, eax
jne 0x140012717
mov word [r14 + r12*2 - 8], 0
xor eax, eax
mov r12, r13
mov r13, rbp
lea rbp, [0x140034512]
lea rdx, str.TEMP
jmp 0x140012820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x1400342be]
mov r9d, eax
call fcn.140012310
cmp word [r14], 0
mov rsi, r15
mov rbp, r14
je 0x14001276e
nop
dec rsi
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012760
movzx ebx, byte [rsp + 0x40]
test bl, bl
je 0x1400127f2
lea r13, [rsp + 0x40]
nop dword [rax]
cmp word [rbp], 0
mov r12, rbp
mov rax, rsi
je 0x1400127b1
mov rax, rsi
mov rcx, rbp
nop word cs:[rax + rax]
lea r12, [rcx + 2]
dec rax
cmp word [rcx + 2], 0
mov rcx, r12
jne 0x1400127a0
test rax, rax
je 0x140012b6b
mov rcx, r12
call fcn.14001b0c8
lea rcx, [r12 + rax*2]
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x31], 0
mov r8d, 2
lea rdx, [rsp + 0x30]
call fcn.14001a78c
add rbp, 2
dec rsi
movzx ebx, byte [r13 + 1]
inc r13
test bl, bl
jne 0x140012780
xor eax, eax
lea rsi, [rsp + 0x440]
lea rdx, str.TEMP
lea r12, str.PROGRAM_BASE
lea r13, [0x140034422]
lea rbx, str..exe
lea rbp, [0x140034512]
nop
cmp word [r14], 0
je 0x140012848
nop word [rax + rax]
lea rcx, [r14 + 2]
dec r15
cmp word [r14 + 2], 0
mov r14, rcx
jne 0x140012830
test al, al
je 0x140012879
jmp 0x14001284f
mov rcx, r14
test al, al
je 0x140012879
cmp word [rcx - 2], 0x5c
jne 0x140012879
nop word cs:[rax + rax]
lea r14, [rcx - 2]
mov word [rcx - 2], 0
inc r15
cmp word [rcx - 4], 0x5c
mov rcx, r14
je 0x140012860
jmp 0x14001287c
mov r14, rcx
movzx eax, word [rdi]
test ax, ax
jne 0x14001240a
jmp 0x140012b38
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 0x140012b67
cmp word [r14], 0
mov rcx, r15
mov rax, r14
je 0x1400128ce
nop
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400128c0
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x14001297e
xor r8d, r8d
nop
cmp rcx, r8
je 0x140012b6b
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + r8*2 + 0x42]
inc r8
test dx, dx
jne 0x1400128e0
jmp 0x14001297e
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 0x140012b67
cmp word [r14], 0
mov rcx, r15
mov rax, r14
je 0x14001294e
nop word cs:[rax + rax]
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012940
movzx edx, word [rsp + 0x40]
test dx, dx
je 0x14001297e
xor r8d, r8d
nop dword [rax + rax]
cmp rcx, r8
je 0x140012b6b
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + r8*2 + 0x42]
inc r8
test dx, dx
jne 0x140012960
mov word [rax], 0
jmp 0x14001263c
cmp word [r14], 0
mov rcx, r15
mov rax, r14
je 0x1400129a3
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012995
test rcx, rcx
lea rdx, str.TEMP
je 0x140012b6b
mov word [rax], 0x4d
cmp rcx, 1
je 0x140012b6b
mov word [rax + 2], 0x69
cmp rcx, 2
je 0x140012b6b
mov word [rax + 4], 0x63
cmp rcx, 3
je 0x140012b6b
mov word [rax + 6], 0x72
cmp rcx, 4
je 0x140012b6b
mov word [rax + 8], 0x6f
cmp rcx, 5
je 0x140012b6b
mov word [rax + 0xa], 0x73
cmp rcx, 6
je 0x140012b6b
mov word [rax + 0xc], 0x6f
cmp rcx, 7
je 0x140012b6b
mov word [rax + 0xe], 0x66
cmp rcx, 8
je 0x140012b6b
mov dword [rax + 0x10], 0x74
xor eax, eax
jmp 0x140012820
cmp word [r14], 0
mov rcx, r15
mov rax, r14
je 0x140012a5b
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012a4d
test rcx, rcx
lea rdx, str.TEMP
je 0x140012b6b
mov word [rax], 0x53
cmp rcx, 1
je 0x140012b6b
mov word [rax + 2], 0x65
cmp rcx, 2
je 0x140012b6b
mov word [rax + 4], 0x74
cmp rcx, 3
je 0x140012b6b
mov word [rax + 6], 0x75
cmp rcx, 4
je 0x140012b6b
mov dword [rax + 8], 0x70
xor eax, eax
jmp 0x140012820
cmp word [r14], 0
mov rcx, r15
mov rax, r14
je 0x140012ad3
dec rcx
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140012ac5
test rcx, rcx
lea rdx, str.TEMP
je 0x140012b6b
mov word [rax], 0x31
cmp rcx, 1
je 0x140012b6b
mov word [rax + 2], 0x2e
cmp rcx, 2
je 0x140012b6b
mov word [rax + 4], 0x31
cmp rcx, 3
je 0x140012b6b
mov word [rax + 6], 0x2e
cmp rcx, 4
je 0x140012b6b
mov word [rax + 8], 0x30
cmp rcx, 5
je 0x140012b6b
mov word [rax + 0xa], 0x2e
cmp rcx, 6
je 0x140012b6b
mov dword [rax + 0xc], 0x30
xor eax, eax
jmp 0x140012820
mov word [r14], 0
mov sil, 1
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.1400142b0
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 0x140012b41
call fcn.14001a710
int3