Function at 0x14004c8bc
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.1400524d0
xor r13d, r13d
test al, al
jne 0x14004c907
xor eax, eax
jmp 0x14004d4e0
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140051168
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004c92c
mov edx, 0x3eb
jmp 0x14004c9ac
mov r9, r12
mov rdx, r15
mov rcx, rbx
call fcn.140051ec0
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004c94e
mov edx, 0x3f1
jmp 0x14004c9ac
lea rcx, [rsp + 0x38]
call fcn.1400525a4
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004c96c
mov edx, 0x3f8
jmp 0x14004c9ac
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.140060a6c
test eax, eax
jns 0x14004c9bb
cmp dword [rsp + 0x30], r13d
jbe 0x14004c9bb
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140051168
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004c9bb
mov edx, 0x408
mov r9d, eax
lea r8, [0x1400ba1d0]
call fcn.1400205dc
lea rdx, str.LocalHost
lea rcx, [rsp + 0x40]
call fcn.140019f6c
nop
test esi, esi
js 0x14004ca38
mov rax, qword [rsp + 0x40]
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004ca05
mov r9d, esi
lea r15, [0x1400ba1d0]
mov edx, 0x412
mov r8, r15
call fcn.1400205dc
jmp 0x14004ca3f
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.14004c6a0
mov esi, eax
mov rcx, qword [rbp + 0x668]
lea r15, [0x1400ba1d0]
test eax, eax
jns 0x14004ca3f
mov r9d, eax
mov edx, 0x417
jmp 0x14004c9fb
lea r15, [0x1400ba1d0]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ebx, 0x80004005
test esi, esi
js 0x14004cae3
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004caa0
mov r9d, eax
mov r8, r15
mov edx, 0x425
call fcn.1400205dc
jmp 0x14004cae3
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
jne 0x14004cae3
mov esi, ebx
mov rcx, qword [rbp + 0x668]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.WinDir:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r15
mov edx, 0x42b
call fcn.1400503b8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test esi, esi
js 0x14004cba0
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14004cb6e
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
jne 0x14004cba0
mov esi, ebx
mov rcx, qword [rbp + 0x668]
lea rax, [rbp + 0x200]
mov qword [rsp + 0x28], rax
lea rax, str.ProfileDir:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r15
mov edx, 0x43a
call fcn.1400503b8
jmp 0x14004cba0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x14004cb89
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rbp + 0x668]
mov r9d, esi
mov r8, r15
mov edx, 0x440
call fcn.140050384
movabs rax, 0x5c003a0020
mov qword [rbp + 0x410], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x418]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test esi, esi
js 0x14004d4cd
movzx eax, word [rbp - 0x10]
mov word [rbp + 0x410], ax
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x410]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.Windows.
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004cc87
mov r9d, esi
mov r8, r15
mov edx, 0x453
call fcn.1400205dc
jmp 0x14004ccc1
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x458
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.CSC
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004cd8f
mov r9d, esi
mov r8, r15
mov edx, 0x464
call fcn.1400205dc
jmp 0x14004cdc9
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x469
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str._temp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004ce97
mov r9d, esi
mov r8, r15
mov edx, 0x475
call fcn.1400205dc
jmp 0x14004ced1
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x47a
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400b49f4]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004cf9f
mov r9d, esi
mov r8, r15
mov edx, 0x486
call fcn.1400205dc
jmp 0x14004cfd9
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x48b
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppDataLocalTemp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004d0aa
mov r9d, esi
mov r8, r15
mov edx, 0x499
call fcn.1400205dc
jmp 0x14004d0e4
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x49e
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.DefaultAppData
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004d1b5
mov r9d, esi
mov r8, r15
mov edx, 0x4ab
call fcn.1400205dc
jmp 0x14004d1ef
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4b0
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppDataLocalMicrosoftWindowsTemporary_Internet_Files
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004d2c0
mov r9d, esi
mov r8, r15
mov edx, 0x4bc
call fcn.1400205dc
jmp 0x14004d2fa
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4c1
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppData_
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140019f6c
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004d3cb
mov r9d, esi
mov r8, r15
mov edx, 0x4d0
call fcn.1400205dc
jmp 0x14004d405
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004bb38
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4d5
call fcn.1400503f4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
test esi, esi
js 0x14004d4cd
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov edx, 1
lea ecx, [rdx + 0x15]
call fcn.14004be00
mov esi, eax
cmp eax, 0x80070057
cmove esi, r13d
mov rcx, qword [rbp + 0x668]
test esi, esi
jns 0x14004d45e
mov r9d, esi
mov edx, 0x4e4
jmp 0x14004d4c4
mov rdx, r14
mov rcx, r12
call fcn.14004c104
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d47d
mov edx, 0x4eb
jmp 0x14004d4c1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
xor edx, edx
lea ecx, [rdx + 0x23]
call fcn.14004be00
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d4a5
mov edx, 0x4f2
jmp 0x14004d4c1
mov dl, 1
mov rcx, r14
call fcn.1400a363c
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d4cd
mov edx, 0x4f8
mov r9d, eax
mov r8, r15
call fcn.1400205dc
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140024990
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret