Function at 0x140049c54
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15, rdx
mov r14, rcx
call fcn.140020f7c
test al, al
jne 0x140049ca5
xor eax, eax
jmp 0x14004a0e8
lea rcx, [rsp + 0x34]
call fcn.14004af30
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x140049d41
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x67d
call fcn.140043650
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14004b18c
mov r9d, dword [r14 + 0x10]
mov r8, qword [r14 + 8]
mov edx, 0x7e1
lea rcx, [rsp + 0x38]
call fcn.14004b1e0
mov dword [r14 + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.1400294e4
jmp 0x14004a0e6
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14004ce60
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
lea rsi, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
test eax, eax
jns 0x140049d74
mov r9d, eax
mov r8, rsi
mov edx, 0x685
call fcn.140043650
and qword [rsp + 0x48], 0
test edi, edi
js 0x14004a0d5
lea rcx, [rsp + 0x48]
cmp byte [rsp + 0x30], 0
je 0x140049dc5
movabs rax, 0x5c003a0020
mov qword [rsp + 0x58], rax
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x58], ax
lea rdx, [rsp + 0x58]
call fcn.14004568c
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x140049def
mov edx, 0x690
jmp 0x140049ddf
mov rdx, r14
call fcn.14004a980
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x140049def
mov edx, 0x695
mov r8, rsi
mov r9d, eax
call fcn.140043650
jmp 0x14004a0d5
lea rdx, str.file:___
lea rcx, [rsp + 0x58]
call fcn.140015d5c
nop
mov rbx, qword [rsp + 0x58]
mov rax, rbx
neg rax
sbb edi, edi
not edi
mov r13d, 0x8007000e
and edi, r13d
mov rcx, qword [rbp + 0x3b8]
jge 0x140049e29
mov edx, 0x69d
jmp 0x140049e58
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400453b8
mov rbx, qword [rsp + 0x58]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, r13d
mov rcx, qword [rbp + 0x3b8]
jge 0x140049e65
mov edx, 0x6a3
mov r8, rsi
mov r9d, edi
call fcn.140043650
jmp 0x140049eb3
call fcn.1400411c8
test al, al
jne 0x140049eb3
mov rax, qword [r15]
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
mov rcx, r15
mov rax, qword [rax + 0x18]
call qword [case.0x140024575.0]
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
mov qword [rsp + 0x28], rbx
lea rax, str.StartPage:__ls
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x6aa
call fcn.14004b2e0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
test edi, edi
js 0x14004a0d5
call fcn.1400411c8
test al, al
jne 0x14004a0d5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x15]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x14004a01e
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140015d5c
nop
mov rax, qword [rsp + 0x38]
neg rax
sbb edi, edi
not edi
and edi, r13d
mov rcx, qword [rbp + 0x3b8]
jge 0x140049f43
mov r9d, edi
mov r8, rsi
mov edx, 0x6b8
call fcn.140043650
jmp 0x14004a008
lea rdx, str.file:___
lea rcx, [rsp + 0x58]
call fcn.140015d5c
nop
mov rbx, qword [rsp + 0x58]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, r13d
mov rcx, qword [rbp + 0x3b8]
jge 0x140049f77
mov edx, 0x6be
jmp 0x140049fa6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140045430
mov rbx, qword [rsp + 0x58]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, r13d
mov rcx, qword [rbp + 0x3b8]
jge 0x140049fb3
mov edx, 0x6c4
mov r8, rsi
mov r9d, edi
call fcn.140043650
jmp 0x140049ff8
mov rax, qword [r15]
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
mov rcx, r15
mov rax, qword [rax + 0x18]
call qword [case.0x140024575.0]
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
mov qword [rsp + 0x28], rbx
lea rax, str.StartPage:__ls
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x6c9
call fcn.14004b2e0
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
jmp 0x14004a0d5
cmp eax, 0x80070057
jne 0x14004a02c
xor edi, edi
jmp 0x14004a0d5
mov rcx, qword [rbp + 0x3b8]
mov r9d, eax
mov r8, rsi
mov edx, 0x6d5
call fcn.14004b268
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x38]
call fcn.14004b18c
nop
mov r9d, dword [r14 + 0x10]
mov r8, qword [r14 + 8]
mov edx, 0x7df
lea rcx, [rsp + 0x38]
call fcn.14004b1e0
mov dword [r14 + 0x14], eax
mov rdx, qword [r14]
mov r10, qword [rdx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.CSIDL_COMMON_STARTMENU
mov rcx, r14
mov rax, r10
call qword [case.0x140024575.0]
nop
lea rcx, [rsp + 0x38]
call fcn.1400294e4
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14002a3c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret