Function at 0x1400476a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rax - 0x4f8]
sub rsp, 0x5d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov ebx, r14d
lea rax, [rbp + 0x18]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0x41
mov word [rbp + 0x18], r14w
lea rax, [0x14009b690]
mov qword [rbp], rax
mov qword [rsp + 0x48], r14
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14000c808
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsp + 0x48]
lea edx, [r14 + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400477f2
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 0x140047762
movzx ebx, ax
or ebx, 0x80070000
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14004b0bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x38]
call fcn.14004b110
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400b4b88]
mov rcx, rdi
mov rax, r10
call qword [case.0x140024555.0]
nop
lea rcx, [rsp + 0x38]
call fcn.140029514
mov r13d, 0x20a
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x2b0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0x105
test ebx, ebx
js 0x140047936
lea r8, [rsp + 0x34]
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140047892
mov rax, qword [rbp]
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp]
mov rax, qword [rax + 0x20]
call qword [case.0x140024555.0]
mov r8d, dword [rbp + 0x14]
test r8d, r8d
je 0x140047936
lea rcx, [rbp]
call fcn.14001671c
movzx ecx, ax
call fcn.140016854
test eax, eax
je 0x140047936
lea edx, [r8 - 1]
lea rcx, [rbp]
call fcn.140014be8
jmp 0x140047936
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 0x1400478ad
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x4f8]
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x426
call fcn.14004b198
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14004b0bc
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7dc
lea rcx, [rsp + 0x38]
call fcn.14004b110
mov dword [rdi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140029514
nop
mov rcx, qword [rsp + 0x48]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140047951
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0x41
mov word [rsp + 0x78], r14w
lea rax, [0x14009b690]
mov qword [rsp + 0x60], rax
mov r8, r13
xor edx, edx
lea rcx, [rbp + 0x2b0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0x105
test ebx, ebx
js 0x140047ab3
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140047a10
mov rax, qword [rsp + 0x60]
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x140024555.0]
mov r8d, dword [rsp + 0x74]
test r8d, r8d
je 0x140047ab3
lea rcx, [rsp + 0x60]
call fcn.14001671c
movzx ecx, ax
call fcn.140016854
test eax, eax
je 0x140047ab3
lea edx, [r8 - 1]
lea rcx, [rsp + 0x60]
call fcn.140014be8
jmp 0x140047ab3
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 0x140047a2b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x4f8]
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x444
call fcn.14004b198
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14004b0bc
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7db
lea rcx, [rsp + 0x38]
call fcn.14004b110
mov dword [rdi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140029514
mov byte [rsp + 0x30], r14b
test ebx, ebx
js 0x140047ba7
mov r8, r13
xor edx, edx
lea rcx, [rbp + 0x2b0]
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x2b0]
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 + 0x4f8]
test eax, eax
jns 0x140047b1d
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x452
call fcn.140043580
jmp 0x140047ba7
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0xa0]
call fcn.14001c0f4
nop
mov rax, qword [rbp + 0xa0]
or r9d, 0xffffffff
mov r8d, dword [rbp + 0xb4]
lea rdx, [0x1400b4b90]
lea rcx, [rbp + 0xa0]
mov rax, qword [rax + 0x18]
call qword [case.0x140024555.0]
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0xa0]
lea r8, [rbp]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140047124
mov rcx, qword [rbp + 0x4f8]
test eax, eax
jns 0x140047b9a
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x45c
call fcn.140043580
nop
lea rcx, [rbp + 0xa0]
call fcn.14001484c
nop
lea rcx, [rsp + 0x60]
call fcn.14001484c
nop
lea rcx, [rbp]
call fcn.14001484c
xor eax, eax
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.14002a3f0
mov rbx, qword [rsp + 0x610]
add rsp, 0x5d0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret