Function at 0x1404a8600
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xcc0
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
xor r15d, r15d
mov rbx, rcx
mov word [rcx], r15w
mov rdi, r8
movzx ecx, word [rdx]
mov r14, rdx
mov eax, r15d
test cx, cx
je 0x1404a88df
cmp cx, 0x7b
jne 0x1404a8660
lea rax, [rsp + 0xb0]
mov word [rsp + 0xb0], r15w
jmp 0x1404a88cd
movzx ecx, word [r14]
cmp cx, 0x7d
jne 0x1404a88a7
lea rdx, [0x1404b9bb8]
mov word [rax], r15w
lea rcx, [rsp + 0xb0]
xor bpl, bpl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a86a1
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov bpl, 1
jmp 0x1404a8861
lea rdx, [0x1404b9bc8]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a86d7
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1404a8861
xor al, al
jmp 0x1404a88e5
lea rdx, str.PROGRAM_BASE
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a876b
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1404a8700
mov r8, rdi
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rbx
call fcn.1404a8600
test al, al
je 0x1404a86d0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1404a8730
cmp rax, 4
jb 0x1404a8861
lea rsi, [rbx + rax*2]
lea rcx, [rsi - 8]
lea rdx, [0x1404b9c10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a8861
mov word [rsi - 8], r15w
jmp 0x1404a8861
lea rdx, [0x1404b9c20]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a87ad
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1404b9b50]
mov edx, 0x80
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.1404ad6b0
lea rdx, [rsp + 0x30]
jmp 0x1404a8856
lea rdx, [0x1404b9c28]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a87cd
mov edx, 0x28
jmp 0x1404a87eb
lea rdx, str.CACHE_DIR
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a8803
mov edx, 0x1c
mov r8, rdi
mov rcx, rbx
call fcn.1404a76a0
test al, al
je 0x1404a86d0
mov bpl, 1
jmp 0x1404a8861
lea rdx, str.TIME
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1404a86d0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x20]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rsp + 0x8b0]
call fcn.1404ad6b0
lea rdx, [rsp + 0x8b0]
mov r8, rdi
mov rcx, rbx
call fcn.1404a7760
cmp word [rbx], r15w
je 0x1404a887d
nop word [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], r15w
jne 0x1404a8870
test bpl, bpl
je 0x1404a88a2
cmp word [rbx - 2], 0x5c
jne 0x1404a88a2
nop dword [rax]
sub rbx, 2
inc rdi
mov word [rbx], r15w
cmp word [rbx - 2], 0x5c
je 0x1404a8890
mov rax, r15
jmp 0x1404a88cd
test rax, rax
je 0x1404a88b5
mov word [rax], cx
add rax, 2
jmp 0x1404a88cd
cmp rdi, 1
jb 0x1404a86d0
mov word [rbx], cx
add rbx, 2
dec rdi
mov word [rbx], r15w
movzx ecx, word [r14 + 2]
add r14, 2
test cx, cx
jne 0x1404a8644
mov word [rbx], r15w
mov al, 1
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.1404ada20
mov rbx, qword [rsp + 0xcf8]
add rsp, 0xcc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret