Function at 0x1400078b0
Capabilities:
Get common file path

Disassembly:
push r15
mov eax, 0x10f8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400152d0
sub rsp, rax
xor r11d, r11d
mov word [rcx], r11w
movzx eax, word [rdx]
mov rbx, rcx
test ax, ax
je 0x1400079f0
lea rdi, [rdx + 2]
mov r14d, 0x1000
xor edx, edx
jmp 0x140007910
test rdx, rdx
je 0x1400079d0
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x1400079f0
cmp ax, 0x25
jne 0x1400078f0
test rdx, rdx
je 0x140007a10
xor r9d, r9d
lea rsi, [rsp + 0x8f0]
mov word [rdx], r9w
mov rcx, rsi
lea rdx, str.TEMP
call sub.ucrtbase.dll__wcsicmp
test eax, eax
je 0x140007c90
lea rdx, str.PROGRAM
mov rcx, rsi
call sub.ucrtbase.dll__wcsicmp
test eax, eax
je 0x140007cb0
lea rdx, [0x14001732e]
mov rcx, rsi
call sub.ucrtbase.dll__wcsicmp
test eax, eax
je 0x140007d38
lea rdx, str.HOME
mov rcx, rsi
call sub.ucrtbase.dll__wcsicmp
test eax, eax
je 0x140007bf8
lea rdx, str.CACHE_DIR
mov rcx, rsi
call sub.ucrtbase.dll__wcsicmp
test eax, eax
jne 0x140007a30
lea rsi, [rsp + 0x2e0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov edx, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140007b40
xor eax, eax
jmp 0x1400079fa
test r14, r14
je 0x1400079c9
mov word [rbx], ax
movzx eax, word [rdi]
sub r14, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x140007910
xor eax, eax
mov word [rbx], ax
mov eax, 1
add rsp, 0x10f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
lea rdx, [rsp + 0x8f0]
mov word [rsp + 0x8f0], r10w
jmp 0x140007900
lea rdx, str.TIME
mov rcx, rsi
call sub.ucrtbase.dll__wcsicmp
test eax, eax
jne 0x1400079c9
lea rcx, [rsp + 0x48]
lea rbp, [rsp + 0x4f0]
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x48]
mov edx, 0x400
mov rcx, rbp
lea r8, str._lld
call fcn.140015770
cmp word [rbx], 0
je 0x140007e27
mov rsi, r14
mov r13, rbx
nop dword [rax]
add r13, 2
sub rsi, 1
cmp word [r13], 0
jne 0x140007a90
movzx r12d, byte [rsp + 0x4f0]
test r12b, r12b
je 0x140007d2c
lea rax, [rsp + 0x2e0]
xor ecx, ecx
add rsi, rbp
mov qword [rsp + 0x38], rax
nop dword [rax]
mov rax, rsi
mov r15, r13
sub rax, rbp
test cx, cx
je 0x140007aef
nop word cs:[rax + rax]
add r15, 2
sub rax, 1
cmp word [r15], 0
jne 0x140007ae0
test rax, rax
je 0x1400159c0
mov rcx, r15
add rbp, 1
call sub.ucrtbase.dll_wcslen
mov rdx, qword [rsp + 0x38]
mov r8d, 2
mov byte [rsp + 0x2e0], r12b
lea rcx, [r15 + rax*2]
mov byte [rsp + 0x2e1], 0
call sub.ucrtbase.dll_mbstowcs
movzx r12d, byte [rbp]
test r12b, r12b
je 0x140007d22
movzx ecx, word [r13]
jmp 0x140007ac8
cmp word [rbx], 0
mov rdx, r14
mov rax, rbx
je 0x140007b5e
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140007b50
movzx r8d, word [rsp + 0x2e0]
test r8w, r8w
je 0x140007ba3
test rdx, rdx
je 0x1400159c0
mov rcx, rsi
jmp 0x140007b89
test rdx, rdx
je 0x1400159c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140007b80
xor ecx, ecx
mov word [rax], cx
cmp word [rbx], 0
je 0x140007be5
mov eax, 1
nop dword [rax + rax]
add rbx, 2
sub r14, 1
cmp word [rbx], 0
jne 0x140007bb8
test al, al
jne 0x140007be5
xor edx, edx
jmp 0x140007900
sub rbx, 2
xor edx, edx
add r14, 1
mov word [rbx], dx
cmp word [rbx - 2], 0x5c
je 0x140007bd8
xor edx, edx
jmp 0x140007900
lea rsi, [rsp + 0xd0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov edx, 0x28
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400079c9
cmp word [rbx], 0
mov rdx, r14
mov rax, rbx
je 0x140007c3e
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140007c30
movzx r8d, word [rsp + 0xd0]
test r8w, r8w
je 0x140007ba3
test rdx, rdx
je 0x1400159c0
mov rcx, rsi
jmp 0x140007c69
test rdx, rdx
je 0x1400159c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140007c60
jmp 0x140007ba3
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rbx], 0
jne 0x140007bae
jmp 0x140007be5
call qword [sym.imp.ucrtbase.dll___p___wargv]
cmp word [rbx], 0
mov rdx, r14
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, rbx
je 0x140007cde
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140007cd0
movzx r8d, word [rcx]
test r8w, r8w
je 0x140007d1b
test rdx, rdx
jne 0x140007d01
jmp 0x140007e46
test rdx, rdx
je 0x1400159c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140007cf8
xor r8d, r8d
mov word [rax], r8w
cmp word [rbx], 0
je 0x140007bca
xor eax, eax
jmp 0x140007bb8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x50]
mov edx, pe_nt_image_headers64
lea r8, [0x140017336]
mov r9d, eax
mov rcx, r12
call fcn.140015770
cmp word [rbx], 0
je 0x140007e0b
mov rbp, r14
mov r15, rbx
nop word [rax + rax]
add r15, 2
sub rbp, 1
cmp word [r15], 0
jne 0x140007d70
movzx r13d, byte [rsp + 0x50]
test r13b, r13b
je 0x140007d2c
lea rax, [rsp + 0x4f0]
xor ecx, ecx
add rbp, r12
mov qword [rsp + 0x38], rax
nop dword [rax]
mov rax, rbp
mov rsi, r15
sub rax, r12
test cx, cx
je 0x140007dbe
nop
add rsi, 2
sub rax, 1
cmp word [rsi], 0
jne 0x140007db0
test rax, rax
je 0x1400159c0
mov rcx, rsi
add r12, 1
call sub.ucrtbase.dll_wcslen
mov rdx, qword [rsp + 0x38]
mov r8d, 2
mov byte [rsp + 0x4f0], r13b
lea rcx, [rsi + rax*2]
mov byte [rsp + 0x4f1], 0
call sub.ucrtbase.dll_mbstowcs
movzx r13d, byte [r12]
test r13b, r13b
je 0x140007d22
movzx ecx, word [r15]
jmp 0x140007da0
movzx r13d, byte [rsp + 0x50]
mov rbp, r14
mov r15, rbx
test r13b, r13b
jne 0x140007d8a
xor edx, edx
jmp 0x140007900
movzx r12d, byte [rsp + 0x4f0]
mov rsi, r14
mov r13, rbx
test r12b, r12b
jne 0x140007ab2
xor edx, edx
jmp 0x140007900
jmp 0x1400159c0
call sub.ucrtbase.dll_abort
nop