Function at 0x1400123e0
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 r15, 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 0x140012984
mov rsi, r8
mov rdi, rdx
lea rbx, [rsp + 0x440]
lea r13, str.TEMP
mov rbp, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r14, str.PROGRAM
lea r12, str.PROGRAM_BASE
add rdi, 2
xor ecx, ecx
jmp 0x14001246d
mov word [rsp + 0x440], 0
mov rcx, rbx
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140012984
cmp ax, 0x7b
je 0x140012450
movzx edx, ax
cmp edx, 0x7d
je 0x140012490
test rcx, rcx
je 0x140012610
mov word [rcx], ax
add rcx, 2
jmp 0x14001245d
mov word [rcx], 0
mov rcx, rbx
mov rdx, r13
call fcn.1400199c0
test eax, eax
je 0x140012630
mov rcx, rbx
mov rdx, r14
call fcn.1400199c0
test eax, eax
je 0x140012649
mov rcx, rbx
mov rdx, r12
call fcn.1400199c0
test eax, eax
je 0x1400126c7
mov rcx, rbx
lea rdx, [0x140034602]
call fcn.1400199c0
test eax, eax
je 0x14001273c
mov rcx, rbx
lea rdx, str.HOME
call fcn.1400199c0
test eax, eax
je 0x14001288d
mov rcx, rbx
lea rdx, str.CACHE_DIR
call fcn.1400199c0
test eax, eax
je 0x140012900
mov rcx, rbx
lea rdx, str.TIME
call fcn.1400199c0
test eax, eax
jne 0x1400129b3
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.140012350
cmp word [r15], 0
mov r14, rsi
mov rbp, r15
je 0x14001257e
nop word cs:[rax + rax]
dec r14
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012570
movzx eax, byte [rsp + 0x40]
test al, al
je 0x14001280b
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.140019ca8
cmp rax, 1
jne 0x1400129b7
cmp word [rbp], 0
mov rcx, r14
mov rax, rbp
je 0x1400125e1
mov rdx, rbp
mov rcx, r14
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400125d0
test rcx, rcx
je 0x1400129b7
movzx ecx, word [rsp + 0x3a]
mov word [rax], cx
mov word [rax + 2], 0
add rbp, 2
dec r14
movzx eax, byte [r13 + 1]
inc r13
test al, al
jne 0x140012590
jmp 0x14001280b
test rsi, rsi
je 0x1400129b3
mov word [r15], ax
mov word [r15 + 2], 0
add r15, 2
dec rsi
jmp 0x14001287c
mov ecx, esi
mov rdx, r15
call rbp
mov al, 1
cmp word [r15], 0
jne 0x140012830
jmp 0x140012848
call fcn.1400158a0
cmp word [r15], 0
mov rdx, rsi
mov rcx, r15
je 0x14001266e
nop dword [rax + 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 0x1400129b7
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
cmp word [r15], 0
jne 0x140012830
jmp 0x140012848
mov rcx, r15
call fcn.14001a228
mov r8, rsi
sub r8, rax
mov rcx, r15
lea rdx, [0x140034532]
call fcn.1400123e0
test al, al
je 0x1400129b3
mov r12, r14
mov rcx, r15
call fcn.14001a228
cmp rax, 4
jb 0x140012720
mov r14, rax
lea rcx, [r15 + rax*2]
add rcx, 0xfffffffffffffff8
lea rdx, str..exe
call fcn.1400199c0
test eax, eax
jne 0x140012720
mov word [r15 + r14*2 - 8], 0
xor eax, eax
mov r14, r12
lea r12, str.PROGRAM_BASE
cmp word [r15], 0
jne 0x140012830
jmp 0x140012848
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x80
lea rcx, [rsp + 0x40]
lea r8, [0x1400343ce]
mov r9d, eax
call fcn.140012350
cmp word [r15], 0
mov r14, rsi
mov rbp, r15
je 0x14001277e
nop dword [rax + rax]
dec r14
cmp word [rbp + 2], 0
lea rbp, [rbp + 2]
jne 0x140012770
movzx eax, byte [rsp + 0x40]
test al, al
je 0x14001280b
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.140019ca8
cmp rax, 1
jne 0x1400129b7
cmp word [rbp], 0
mov rcx, r14
mov rax, rbp
je 0x1400127e1
mov rdx, rbp
mov rcx, r14
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400127d0
test rcx, rcx
je 0x1400129b7
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov word [rax + 2], 0
add rbp, 2
dec r14
movzx eax, byte [r13 + 1]
inc r13
test al, al
jne 0x140012790
xor eax, eax
lea r13, str.TEMP
mov rbp, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r14, str.PROGRAM
cmp word [r15], 0
je 0x140012848
nop dword [rax]
lea rcx, [r15 + 2]
dec rsi
cmp word [r15 + 2], 0
mov r15, rcx
jne 0x140012830
test al, al
je 0x140012879
jmp 0x14001284f
mov rcx, r15
test al, al
je 0x140012879
cmp word [rcx - 2], 0x5c
jne 0x140012879
nop word cs:[rax + rax]
lea r15, [rcx - 2]
mov word [rcx - 2], 0
inc rsi
cmp word [rcx - 4], 0x5c
mov rcx, r15
je 0x140012860
jmp 0x14001287c
mov r15, rcx
movzx eax, word [rdi]
test ax, ax
jne 0x140012443
jmp 0x140012984
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 0x1400129b3
cmp word [r15], 0
mov rcx, rsi
mov rax, r15
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 0x14001297a
xor r8d, r8d
nop
cmp rcx, r8
je 0x1400129b7
mov word [rax], dx
add rax, 2
movzx edx, word [rsp + r8*2 + 0x42]
inc r8
test dx, dx
jne 0x1400128e0
jmp 0x14001297a
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 0x1400129b3
cmp word [r15], 0
mov rcx, rsi
mov rax, r15
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 0x14001297a
xor r8d, r8d
nop dword [rax + rax]
cmp rcx, r8
je 0x1400129b7
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 0x140012637
mov word [r15], 0
mov sil, 1
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.140014440
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 0x14001298d
call fcn.140019c28
int3