Function at 0x14004d680
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 qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.140028b60
xor r13d, r13d
test al, al
jne 0x14004d6d4
xor eax, eax
jmp 0x14004e1b5
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.1400507a0
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d6f9
mov edx, 0x572
jmp 0x14004d779
mov r9, r12
mov rdx, r15
mov rcx, rbx
call fcn.1400514e8
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d71b
mov edx, 0x578
jmp 0x14004d779
lea rcx, [rsp + 0x38]
call fcn.140052080
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d739
mov edx, 0x57f
jmp 0x14004d779
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.140057ee4
test eax, eax
jns 0x14004d788
cmp dword [rsp + 0x30], r13d
jbe 0x14004d788
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.1400507a0
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d788
mov edx, 0x58f
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.14002cfec
lea rdx, str.LocalHost
lea rcx, [rsp + 0x40]
call fcn.14001007c
nop
test esi, esi
js 0x14004d805
mov rax, qword [rsp + 0x40]
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14004d7d2
mov r9d, esi
lea r15, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x599
mov r8, r15
call fcn.14002cfec
jmp 0x14004d80c
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.14004cd90
mov esi, eax
mov rcx, qword [rbp + 0x668]
lea r15, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
test eax, eax
jns 0x14004d80c
mov r9d, eax
mov edx, 0x59e
jmp 0x14004d7c8
lea r15, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.msvcrt.dll_memset
mov ebx, 0x80004005
test esi, esi
js 0x14004d8a0
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]
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004d863
mov r9d, eax
mov r8, r15
mov edx, 0x5ac
call fcn.14002cfec
jmp 0x14004d8a0
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
test rax, rax
jne 0x14004d8a0
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, 0x5b2
call fcn.140050168
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.msvcrt.dll_memset
test esi, esi
js 0x14004d94b
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x14004d91f
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
test rax, rax
jne 0x14004d94b
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, 0x5c1
call fcn.140050168
jmp 0x14004d94b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test eax, eax
jle 0x14004d934
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rbp + 0x668]
mov r9d, esi
mov r8, r15
mov edx, 0x5c7
call fcn.14001f2e8
movabs rax, 0x5c003a0020
mov qword [rbp + 0x410], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x418]
call sub.msvcrt.dll_memset
test esi, esi
js 0x14004e1a8
movzx eax, word [rbp - 0x10]
mov word [rbp + 0x410], ax
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.Windows.
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004da1e
mov r9d, esi
mov r8, r15
mov edx, 0x5da
call fcn.14002cfec
jmp 0x14004da58
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x5df
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.CSC
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004db0c
mov r9d, esi
mov r8, r15
mov edx, 0x5eb
call fcn.14002cfec
jmp 0x14004db46
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x5f0
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str._temp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004dbfa
mov r9d, esi
mov r8, r15
mov edx, 0x5fc
call fcn.14002cfec
jmp 0x14004dc34
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x601
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [0x140097c2c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004dce8
mov r9d, esi
mov r8, r15
mov edx, 0x60d
call fcn.14002cfec
jmp 0x14004dd22
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x612
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppDataLocalTemp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004ddd9
mov r9d, esi
mov r8, r15
mov edx, 0x620
call fcn.14002cfec
jmp 0x14004de13
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x625
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.DefaultAppData
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004deca
mov r9d, esi
mov r8, r15
mov edx, 0x632
call fcn.14002cfec
jmp 0x14004df04
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x637
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004dfbb
mov r9d, esi
mov r8, r15
mov edx, 0x643
call fcn.14002cfec
jmp 0x14004dff5
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x648
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
mov rax, qword [rsp + 0x50]
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.0x14000702c.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppData_
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001007c
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 0x14004e0ac
mov r9d, esi
mov r8, r15
mov edx, 0x657
call fcn.14002cfec
jmp 0x14004e0e6
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.14004b958
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, 0x65c
call fcn.1400501a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x50]
call fcn.140029258
test esi, esi
js 0x14004e1a8
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov edx, 1
lea ecx, [rdx + 0x15]
call fcn.14004bbec
mov esi, eax
cmp eax, 0x80070057
cmove esi, r13d
mov rcx, qword [rbp + 0x668]
test esi, esi
jns 0x14004e139
mov r9d, esi
mov edx, 0x66b
jmp 0x14004e19f
mov rdx, r14
mov rcx, r12
call fcn.14004becc
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e158
mov edx, 0x672
jmp 0x14004e19c
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
xor edx, edx
lea ecx, [rdx + 0x23]
call fcn.14004bbec
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e180
mov edx, 0x679
jmp 0x14004e19c
mov dl, 1
mov rcx, r14
call fcn.140084bb4
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x14004e1a8
mov edx, 0x67f
mov r9d, eax
mov r8, r15
call fcn.14002cfec
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret