Function at 0x7b6e40
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.00814950
sub rsp, rax
xor esi, esi
lea rbp, [rdx + 2]
mov rbx, rcx
mov rdi, r8
mov word [rcx], si
lea rax, [rsp + 0x2e0]
xor edx, edx
mov qword [rsp + 0x30], rax
jmp 0x7b6e94
test rdx, rdx
je 0x7b6f90
mov word [rdx], ax
add rdx, 2
add rbp, 2
movzx eax, word [rbp - 2]
test ax, ax
je 0x7b7140
cmp ax, 0x25
jne 0x7b6e80
test rdx, rdx
je 0x7b6fa5
lea rsi, [rsp + 0x8f0]
xor r10d, r10d
mov word [rdx], r10w
lea rdx, [0x008253ec]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7b7150
lea rdx, str.PROGRAM
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7b71a0
lea rdx, str.PROGRAM_BASE
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7b70b5
lea rdx, [0x0082543e]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7b7340
lea rdx, [0x0082544a]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7b7220
lea rdx, str.CACHE_DIR
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x7b6fc0
mov rax, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 0x1c
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x7b72c0
nop word [rax + rax]
xor eax, eax
add rsp, 0x10f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdi, rdi
je 0x7b6f70
mov word [rbx], ax
sub rdi, 1
add rbx, 2
jmp 0x7b6e90
lea rdx, [rsp + 0x8f0]
xor r11d, r11d
mov word [rsp + 0x8f0], r11w
jmp 0x7b6e90
lea rdx, str.TIME
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x7b6f70
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 r15, [rsp + 0x4f0]
lea r8, str._lld
mov rcx, r15
call qword [sym.imp.msvcrt.dll__snprintf]
cmp word [rbx], 0
je 0x7b7435
mov r14, rdi
mov r13, rbx
nop dword [rax]
add r13, 2
sub r14, 1
cmp word [r13], 0
jne 0x7b7020
movzx edx, byte [rsp + 0x4f0]
test dl, dl
je 0x7b7115
xor ecx, ecx
add r14, r15
mov rax, r14
mov rsi, r13
sub rax, r15
test cx, cx
je 0x7b7061
add rsi, 2
sub rax, 1
cmp word [rsi], 0
jne 0x7b7053
test rax, rax
mov byte [rsp + 0x38], dl
je fcn.00815822
mov rcx, rsi
add r15, 1
call sub.msvcrt.dll_wcslen
movzx edx, byte [rsp + 0x38]
mov r8d, 2
mov byte [rsp + 0x2e1], 0
lea rcx, [rsi + rax*2]
mov byte [rsp + 0x2e0], dl
mov rdx, qword [rsp + 0x30]
call sub.msvcrt.dll_mbstowcs
movzx edx, byte [r15]
test dl, dl
je 0x7b720d
movzx ecx, word [r13]
jmp 0x7b7045
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r8, rdi
mov rcx, rbx
lea rdx, str._PROGRAM_
sub r8, rax
call fcn.007b6e40
test al, al
je 0x7b6f70
mov rcx, rbx
call sub.msvcrt.dll_wcslen
cmp rax, 3
jbe 0x7b720d
lea rsi, [rbx + rax*2 - 8]
lea rdx, [0x00825434]
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x7b720d
xor r8d, r8d
mov word [rsi], r8w
cmp word [rbx], 0
je 0x7b7132
xor eax, eax
nop word [rax + rax]
add rbx, 2
sub rdi, 1
cmp word [rbx], 0
jne 0x7b7170
test al, al
jne 0x7b7191
xor edx, edx
jmp 0x7b6e90
xor eax, eax
mov word [rbx], ax
mov eax, 1
jmp 0x7b6f72
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rbx], 0
je 0x7b7191
mov eax, 1
nop word cs:[rax + rax]
add rbx, 2
sub rdi, 1
cmp word [rbx], 0
jne 0x7b7170
test al, al
je 0x7b7132
jmp 0x7b7191
sub rbx, 2
xor edx, edx
add rdi, 1
mov word [rbx], dx
cmp word [rbx - 2], 0x5c
je 0x7b7184
xor edx, edx
jmp 0x7b6e90
mov rax, qword [sym.imp.msvcrt.dll___wargv]
mov rdx, rdi
cmp word [rbx], 0
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, rbx
je 0x7b71ce
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x7b71c0
movzx r8d, word [rcx]
test r8w, r8w
je 0x7b7206
test rdx, rdx
jne 0x7b71eb
jmp 0x7b7452
test rdx, rdx
je fcn.00815822
add rcx, 2
add rax, 2
mov word [rax - 2], r8w
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x7b71e2
xor r9d, r9d
mov word [rax], r9w
cmp word [rbx], 0
je 0x7b7132
xor eax, eax
jmp 0x7b7120
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 0x7b6f70
cmp word [rbx], 0
mov rdx, rdi
mov rax, rbx
je 0x7b7262
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x7b7254
movzx r8d, word [rsp + 0xd0]
test r8w, r8w
je 0x7b72a4
test rdx, rdx
je fcn.00815822
mov rcx, rsi
jmp 0x7b7289
test rdx, rdx
je fcn.00815822
add rcx, 2
add rax, 2
mov word [rax - 2], r8w
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x7b7280
xor ecx, ecx
mov word [rax], cx
cmp word [rbx], 0
jne 0x7b7161
jmp 0x7b7191
cmp word [rbx], 0
mov rdx, rdi
mov rax, rbx
je 0x7b72de
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x7b72d0
movzx ecx, word [rsp + 0x2e0]
test cx, cx
je 0x7b72a4
test rdx, rdx
je fcn.00815822
mov r8, qword [rsp + 0x30]
jmp 0x7b7309
test rdx, rdx
je fcn.00815822
add r8, 2
add rax, 2
mov word [rax - 2], cx
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x7b7300
xor ecx, ecx
mov word [rax], cx
cmp word [rbx], 0
jne 0x7b7161
jmp 0x7b7191
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rsi, [rsp + 0x50]
mov edx, pe_nt_image_headers64
lea r8, [0x00825446]
mov r9d, eax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__snprintf]
cmp word [rbx], 0
je 0x7b7419
mov r13, rdi
mov r15, rbx
add r15, 2
sub r13, 1
cmp word [r15], 0
jne 0x7b7373
movzx r14d, byte [rsp + 0x50]
test r14b, r14b
je 0x7b7115
lea rax, [rsi + r13]
xor ecx, ecx
mov r12, rsi
mov qword [rsp + 0x38], rax
lea r13, [rsp + 0x4f0]
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov rsi, r15
sub rax, r12
test cx, cx
je 0x7b73ce
add rsi, 2
sub rax, 1
cmp word [rsi], 0
jne 0x7b73c0
test rax, rax
je fcn.00815822
mov rcx, rsi
add r12, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x4f0], r14b
lea rcx, [rsi + rax*2]
mov byte [rsp + 0x4f1], 0
call sub.msvcrt.dll_mbstowcs
movzx r14d, byte [r12]
test r14b, r14b
je 0x7b720d
movzx ecx, word [r15]
jmp 0x7b73b0
movzx r14d, byte [rsp + 0x50]
mov r13, rdi
mov r15, rbx
test r14b, r14b
jne 0x7b7391
xor edx, edx
jmp 0x7b6e90
movzx edx, byte [rsp + 0x4f0]
mov r14, rdi
mov r13, rbx
test dl, dl
jne 0x7b7040
xor edx, edx
jmp 0x7b6e90
jmp fcn.00815822