Function at 0x140048e90
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 [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.1400214ec
xor r13d, r13d
test al, al
jne 0x140048ee4
xor eax, eax
jmp 0x140049a1d
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.14004b498
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140048f09
mov edx, 0x539
jmp 0x140048f89
mov r9, r12
mov rdx, r15
mov rcx, rbx
call fcn.14004c130
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140048f2b
mov edx, 0x53f
jmp 0x140048f89
lea rcx, [rsp + 0x38]
call fcn.14004cd20
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140048f49
mov edx, 0x546
jmp 0x140048f89
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.14005624c
test eax, eax
jns 0x140048f98
cmp dword [rsp + 0x30], r13d
jbe 0x140048f98
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.14004b498
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140048f98
mov edx, 0x556
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.140043510
lea rdx, str.LocalHost
lea rcx, [rsp + 0x40]
call fcn.14001617c
nop
test esi, esi
js 0x140049015
mov rax, qword [rsp + 0x40]
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140048fe2
mov r9d, esi
lea r15, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x560
mov r8, r15
call fcn.140043510
jmp 0x14004901c
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.140048598
mov esi, eax
mov rcx, qword [rbp + 0x668]
lea r15, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
test eax, eax
jns 0x14004901c
mov r9d, eax
mov edx, 0x565
jmp 0x140048fd8
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 0x1400490c0
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 0x14004907d
mov r9d, eax
mov r8, r15
mov edx, 0x573
call fcn.140043510
jmp 0x1400490c0
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 0x1400490c0
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, 0x579
call fcn.14004b164
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.msvcrt.dll_memset
test esi, esi
js 0x14004917d
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 0x14004914b
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 0x14004917d
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, 0x588
call fcn.14004b164
jmp 0x14004917d
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 0x140049166
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rbp + 0x668]
mov r9d, esi
mov r8, r15
mov edx, 0x58e
call fcn.14004b128
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 0x140049a0a
movzx eax, word [rbp - 0x10]
mov word [rbp + 0x410], ax
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049250
mov r9d, esi
mov r8, r15
mov edx, 0x5a1
call fcn.140043510
jmp 0x14004928a
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5a6
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049344
mov r9d, esi
mov r8, r15
mov edx, 0x5b2
call fcn.140043510
jmp 0x14004937e
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5b7
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049438
mov r9d, esi
mov r8, r15
mov edx, 0x5c3
call fcn.140043510
jmp 0x140049472
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5c8
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.0]
mov rax, qword [rsp + 0x50]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400a82ec]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x14004952c
mov r9d, esi
mov r8, r15
mov edx, 0x5d4
call fcn.140043510
jmp 0x140049566
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5d9
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049623
mov r9d, esi
mov r8, r15
mov edx, 0x5e7
call fcn.140043510
jmp 0x14004965d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5ec
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x14004971a
mov r9d, esi
mov r8, r15
mov edx, 0x5f9
call fcn.140043510
jmp 0x140049754
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x5fe
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049811
mov r9d, esi
mov r8, r15
mov edx, 0x60a
call fcn.140043510
jmp 0x14004984b
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x60f
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.14001c514
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.0x140024a95.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.0x140024a95.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001617c
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 0x140049908
mov r9d, esi
mov r8, r15
mov edx, 0x61e
call fcn.140043510
jmp 0x140049942
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140047084
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, 0x623
call fcn.14004b1a0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140014c6c
test esi, esi
js 0x140049a0a
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov edx, 1
lea ecx, [rdx + 0x15]
call fcn.14004732c
mov esi, eax
cmp eax, 0x80070057
cmove esi, r13d
mov rcx, qword [rbp + 0x668]
test esi, esi
jns 0x14004999b
mov r9d, esi
mov edx, 0x632
jmp 0x140049a01
mov rdx, r14
mov rcx, r12
call fcn.140047638
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x1400499ba
mov edx, 0x639
jmp 0x1400499fe
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
xor edx, edx
lea ecx, [rdx + 0x23]
call fcn.14004732c
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x1400499e2
mov edx, 0x640
jmp 0x1400499fe
mov dl, 1
mov rcx, r14
call fcn.1400933fc
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140049a0a
mov edx, 0x646
mov r9d, eax
mov r8, r15
call fcn.140043510
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.14002a8b0
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret