Function at 0x14004c414
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov ebx, r14d
lea rax, [rbp + 8]
mov qword [rbp - 8], rax
mov qword [rbp], 0x41
mov word [rbp + 8], r14w
lea rax, [0x1400ab888]
mov qword [rbp - 0x10], rax
mov qword [rsp + 0x48], r14
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14001bf00
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x48]
lea edx, [r14 + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x14004c55e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004c4c4
movzx ebx, ax
or ebx, 0x80070000
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.14004fcfc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x38]
call fcn.14005060c
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r11, qword [rcx + 0x20]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400ba7b8]
mov rcx, rdi
mov rax, r11
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x38]
call fcn.140023b60
mov r13d, 0x20a
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x2a0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x34], 0x105
test ebx, ebx
js 0x14004c6ac
lea r8, [rsp + 0x34]
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14004c608
mov rax, qword [rbp - 0x10]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp - 0x10]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov r8d, dword [rbp + 4]
test r8d, r8d
je 0x14004c6ac
lea rcx, [rbp - 0x10]
call fcn.14000da58
movzx ecx, ax
call fcn.140017680
test eax, eax
je 0x14004c6ac
lea edx, [r8 - 1]
lea rcx, [rbp - 0x10]
call fcn.14001d5c8
jmp 0x14004c6ac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004c623
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x4e8]
mov r9d, ebx
lea r8, [0x1400ba6c0]
mov edx, 0x2c7
call fcn.140050694
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.14004fcfc
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7dc
lea rcx, [rsp + 0x38]
call fcn.14005060c
mov dword [rdi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140023b60
nop
mov rcx, qword [rsp + 0x48]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004c6c7
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0x41
mov word [rsp + 0x68], r14w
lea rax, [0x1400ab888]
mov qword [rsp + 0x50], rax
mov r8, r13
xor edx, edx
lea rcx, [rbp + 0x2a0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x34], 0x105
test ebx, ebx
js 0x14004c830
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14004c78d
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2a0]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov r8d, dword [rsp + 0x64]
test r8d, r8d
je 0x14004c783
lea rcx, [rsp + 0x50]
call fcn.14000da58
movzx ecx, ax
call fcn.140017680
test eax, eax
je 0x14004c783
lea edx, [r8 - 1]
lea rcx, [rsp + 0x50]
call fcn.14001d5c8
mov byte [rsp + 0x30], r14b
jmp 0x14004c83d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004c7a8
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x4e8]
mov r9d, ebx
lea r8, [0x1400ba6c0]
mov edx, 0x2e4
call fcn.140050694
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.14004fcfc
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7db
lea rcx, [rsp + 0x38]
call fcn.14005060c
mov dword [rdi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140023b60
mov byte [rsp + 0x30], r14b
test ebx, ebx
js 0x14004c92e
mov r8, r13
xor edx, edx
lea rcx, [rbp + 0x2a0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x401c
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x4e8]
test eax, eax
jns 0x14004c89a
mov r9d, eax
lea r8, [0x1400ba6c0]
mov edx, 0x2f2
call fcn.14002061c
jmp 0x14004c92e
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call fcn.14000e5c8
nop
mov rax, qword [rbp + 0x90]
movabs r10, 0xacf0078878d7a370
or r9d, 0xffffffff
mov r8d, dword [rbp + 0xa4]
lea rdx, [0x1400ba7c0]
lea rcx, [rbp + 0x90]
mov rax, qword [rax + 0x18]
call qword [case.0x140001f80.0]
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0x90]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14004be80
mov rcx, qword [rbp + 0x4e8]
test eax, eax
jns 0x14004c921
mov r9d, eax
lea r8, [0x1400ba6c0]
mov edx, 0x2fc
call fcn.14002061c
nop
lea rcx, [rbp + 0x90]
call fcn.14000e3c0
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
lea rcx, [rbp - 0x10]
call fcn.14000e3c0
xor eax, eax
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5c0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret