Function at 0x14004d8cc
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 [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.140053588
xor r13d, r13d
test al, al
jne 0x14004d917
xor eax, eax
jmp 0x14004e4f0
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140052210
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d93c
mov edx, 0x424
jmp 0x14004d9bc
mov r9, r12
mov rdx, r15
mov rcx, rbx
call fcn.140052f78
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d95e
mov edx, 0x42a
jmp 0x14004d9bc
lea rcx, [rsp + 0x38]
call fcn.14005365c
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d97c
mov edx, 0x431
jmp 0x14004d9bc
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.140061b6c
test eax, eax
jns 0x14004d9cb
cmp dword [rsp + 0x30], r13d
jbe 0x14004d9cb
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140052210
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d9cb
mov edx, 0x441
mov r9d, eax
lea r8, [0x1400b5a28]
call fcn.14002061c
lea rdx, str.LocalHost
lea rcx, [rsp + 0x40]
call fcn.140019fac
nop
test esi, esi
js 0x14004da48
mov rax, qword [rsp + 0x40]
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004da15
mov r9d, esi
lea r15, [0x1400b5a28]
mov edx, 0x44b
mov r8, r15
call fcn.14002061c
jmp 0x14004da4f
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.14004d6b0
mov esi, eax
mov rcx, qword [rbp + 0x668]
lea r15, [0x1400b5a28]
test eax, eax
jns 0x14004da4f
mov r9d, eax
mov edx, 0x450
jmp 0x14004da0b
lea r15, [0x1400b5a28]
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 0x14004daf3
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 0x14004dab0
mov r9d, eax
mov r8, r15
mov edx, 0x45e
call fcn.14002061c
jmp 0x14004daf3
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 0x14004daf3
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, 0x464
call fcn.1400513c8
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 0x14004dbb0
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 0x14004db7e
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 0x14004dbb0
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, 0x473
call fcn.1400513c8
jmp 0x14004dbb0
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 0x14004db99
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rbp + 0x668]
mov r9d, esi
mov r8, r15
mov edx, 0x479
call fcn.140051394
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 0x14004e4dd
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.140019fac
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 0x14004dc97
mov r9d, esi
mov r8, r15
mov edx, 0x48c
call fcn.14002061c
jmp 0x14004dcd1
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x491
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004dd9f
mov r9d, esi
mov r8, r15
mov edx, 0x49d
call fcn.14002061c
jmp 0x14004ddd9
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4a2
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004dea7
mov r9d, esi
mov r8, r15
mov edx, 0x4ae
call fcn.14002061c
jmp 0x14004dee1
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4b3
call fcn.140051404
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 0x14004e4dd
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, [0x1400b5a24]
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.140019fac
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 0x14004dfaf
mov r9d, esi
mov r8, r15
mov edx, 0x4bf
call fcn.14002061c
jmp 0x14004dfe9
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4c4
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004e0ba
mov r9d, esi
mov r8, r15
mov edx, 0x4d2
call fcn.14002061c
jmp 0x14004e0f4
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4d7
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004e1c5
mov r9d, esi
mov r8, r15
mov edx, 0x4e4
call fcn.14002061c
jmp 0x14004e1ff
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4e9
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004e2d0
mov r9d, esi
mov r8, r15
mov edx, 0x4f5
call fcn.14002061c
jmp 0x14004e30a
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x4fa
call fcn.140051404
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 0x14004e4dd
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.140019fac
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 0x14004e3db
mov r9d, esi
mov r8, r15
mov edx, 0x509
call fcn.14002061c
jmp 0x14004e415
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004cb48
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, 0x50e
call fcn.140051404
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 0x14004e4dd
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov edx, 1
lea ecx, [rdx + 0x15]
call fcn.14004ce10
mov esi, eax
cmp eax, 0x80070057
cmove esi, r13d
mov rcx, qword [rbp + 0x668]
test esi, esi
jns 0x14004e46e
mov r9d, esi
mov edx, 0x51d
jmp 0x14004e4d4
mov rdx, r14
mov rcx, r12
call fcn.14004d114
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e48d
mov edx, 0x524
jmp 0x14004e4d1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
xor edx, edx
lea ecx, [rdx + 0x23]
call fcn.14004ce10
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e4b5
mov edx, 0x52b
jmp 0x14004e4d1
mov dl, 1
mov rcx, r14
call fcn.1400a474c
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e4dd
mov edx, 0x531
mov r9d, eax
mov r8, r15
call fcn.14002061c
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.140024c10
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret