Function at 0x140007610
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.140014a80
sub rsp, rax
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rsi, rcx
test ax, ax
je 0x140007750
lea rdi, [rdx + 2]
mov r14d, 0x1000
xor edx, edx
jmp 0x140007670
test rdx, rdx
je 0x140007730
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140007750
cmp ax, 0x25
jne 0x140007650
test rdx, rdx
je 0x140007770
lea rbx, [rsp + 0x8f0]
xor ecx, ecx
mov word [rdx], cx
lea rdx, str.TEMP
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x1400079c0
lea rdx, str.PROGRAM
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x1400079d8
lea rdx, [0x1400172ce]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140007a50
lea rdx, str.HOME
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140007928
lea rdx, str.CACHE_DIR
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140007790
lea rbx, [rsp + 0x2e0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov edx, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400078a0
xor eax, eax
jmp 0x14000775a
test r14, r14
je 0x140007727
mov word [rsi], ax
movzx eax, word [rdi]
sub r14, 1
add rsi, 2
add rdi, 2
test ax, ax
jne 0x140007670
xor eax, eax
mov word [rsi], ax
mov eax, 1
add rsp, 0x10f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x8f0]
xor r8d, r8d
mov word [rsp + 0x8f0], r8w
jmp 0x140007660
lea rdx, str.TIME
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140007727
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x48]
mov edx, 0x400
lea rbp, [rsp + 0x4f0]
lea r8, str._lld
mov rcx, rbp
call fcn.140014ec0
cmp word [rsi], 0
je 0x140007b47
mov rbx, r14
mov r12, rsi
nop dword [rax + rax]
add r12, 2
sub rbx, 1
cmp word [r12], 0
jne 0x1400077f0
movzx r13d, byte [rsp + 0x4f0]
test r13b, r13b
je 0x140007910
lea rax, [rsp + 0x2e0]
xor ecx, ecx
add rbx, rbp
mov qword [rsp + 0x38], rax
nop dword [rax]
mov rax, rbx
mov r15, r12
sub rax, rbp
test cx, cx
je 0x14000784f
nop word cs:[rax + rax]
add r15, 2
sub rax, 1
cmp word [r15], 0
jne 0x140007840
test rax, rax
je 0x1400150c0
mov rcx, r15
add rbp, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, qword [rsp + 0x38]
mov r8d, 2
mov byte [rsp + 0x2e0], r13b
lea rcx, [r15 + rax*2]
mov byte [rsp + 0x2e1], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs
movzx r13d, byte [rbp]
test r13b, r13b
je 0x1400079cc
movzx ecx, word [r12]
jmp 0x140007828
cmp word [rsi], 0
mov rdx, r14
mov rax, rsi
je 0x1400078be
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400078b0
movzx r8d, word [rsp + 0x2e0]
test r8w, r8w
je 0x140007903
test rdx, rdx
je 0x1400150c0
mov rcx, rbx
jmp 0x1400078e9
test rdx, rdx
je 0x1400150c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x1400078e0
xor edx, edx
mov word [rax], dx
movzx eax, word [rsi]
test ax, ax
je 0x14000791e
add rsi, 2
sub r14, 1
cmp word [rsi], 0
jne 0x140007910
xor edx, edx
jmp 0x140007660
lea rbx, [rsp + 0xd0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov edx, 0x28
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140007727
cmp word [rsi], 0
mov rdx, r14
mov rax, rsi
je 0x14000796e
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140007960
movzx r8d, word [rsp + 0xd0]
test r8w, r8w
je 0x140007903
test rdx, rdx
je 0x1400150c0
mov rcx, rbx
jmp 0x140007999
test rdx, rdx
je 0x1400150c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140007990
jmp 0x140007903
mov rdx, rsi
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movzx eax, word [rsi]
jmp 0x14000790b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
cmp word [rsi], 0
mov rdx, r14
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, rsi
je 0x1400079fe
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400079f0
movzx r8d, word [rcx]
test r8w, r8w
je 0x140007903
test rdx, rdx
jne 0x140007a29
jmp 0x140007b66
test rdx, rdx
je 0x1400150c0
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140007a20
jmp 0x140007903
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x50]
mov edx, pe_nt_image_headers64
lea r8, [0x1400172d6]
mov r9d, eax
mov rcx, r12
call fcn.140014ec0
cmp word [rsi], 0
je 0x140007b2b
mov rbp, r14
mov r15, rsi
nop word [rax + rax]
add r15, 2
sub rbp, 1
cmp word [r15], 0
jne 0x140007a88
movzx r13d, byte [rsp + 0x50]
test r13b, r13b
je 0x140007910
lea rax, [rsp + 0x4f0]
xor ecx, ecx
add rbp, r12
mov qword [rsp + 0x38], rax
nop dword [rax + rax]
mov rax, rbp
mov rbx, r15
sub rax, r12
test cx, cx
je 0x140007ade
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140007ad0
test rax, rax
je 0x1400150c0
mov rcx, rbx
add r12, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, qword [rsp + 0x38]
mov r8d, 2
mov byte [rsp + 0x4f0], r13b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x4f1], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs
movzx r13d, byte [r12]
test r13b, r13b
je 0x1400079cc
movzx ecx, word [r15]
jmp 0x140007ac0
movzx r13d, byte [rsp + 0x50]
mov rbp, r14
mov r15, rsi
test r13b, r13b
jne 0x140007aa6
xor edx, edx
jmp 0x140007660
movzx r13d, byte [rsp + 0x4f0]
mov rbx, r14
mov r12, rsi
test r13b, r13b
jne 0x140007812
xor edx, edx
jmp 0x140007660
jmp 0x1400150c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop