Function at 0x14004a174
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x2e8]
sub rsp, 0x3c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rdx], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x41
mov word [rsp + 0x60], r14w
lea r12, [0x14008a770]
mov qword [rsp + 0x48], r12
lea rax, [0x14008a680]
mov qword [rsp + 0x40], rax
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.14000fac0
mov ebx, eax
test eax, eax
jns 0x14004a23d
mov rcx, qword [rbp + 0x2e8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x854
call fcn.1400433e4
jmp 0x14004a42c
lea rax, [rbp + 0x18]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0x41
mov word [rbp + 0x18], r14w
mov qword [rbp], r12
lea r8, [rbp]
lea rdx, str.DataDirectory
lea rcx, [rsp + 0x40]
call fcn.14000cfe0
test eax, eax
jne 0x14004a279
mov edx, 0x857
jmp 0x14004a3cb
cmp dword [rbp + 0x14], r14d
ja 0x14004a291
mov ebx, 0x8000ffff
mov r9d, ebx
mov edx, 0x858
jmp 0x14004a40a
mov r15d, 0x104
mov r8d, r15d
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jbe 0x14004a2c8
mov ebx, 0x8007007a
mov r9d, ebx
mov edx, 0x85b
jmp 0x14004a40a
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0xa0], 0x5c
je 0x14004a38e
mov rcx, r15
lea rax, [rbp + 0xa0]
cmp word [rax], r14w
je 0x14004a2f4
add rax, 2
sub rcx, 1
jne 0x14004a2e4
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14004a311
mov rax, r15
sub rax, rcx
jmp 0x14004a314
mov rax, r14
test rcx, rcx
je 0x14004a384
mov rdx, r15
sub rdx, rax
lea rcx, [rbp + 0xa0]
lea rcx, [rcx + rax*2]
je 0x14004a35f
lea r8, [rdx + 0x7ffffefa]
add r8, rax
lea r9, [0x140094464]
sub r9, rcx
test r8, r8
je 0x14004a35f
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14004a35f
mov word [rcx], ax
add rcx, 2
dec r8
sub rdx, 1
jne 0x14004a340
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
mov ebx, 0x8007007a
and ebx, ecx
test rdx, rdx
jne 0x14004a38e
mov r9d, ebx
mov edx, 0x85f
jmp 0x14004a40a
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.1400185c8
mov ebx, eax
test eax, eax
jns 0x14004a3b1
mov edx, 0x863
jmp 0x14004a407
lea rdx, str.CreatePropMapperStorage
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
jne 0x14004a3e2
mov edx, 0x866
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov rcx, qword [rbp + 0x2e8]
call fcn.1400433c4
mov ebx, eax
jmp 0x14004a422
mov dword [rsp + 0x30], r14d
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call qword [case.0x140002c98.0]
mov ebx, eax
test eax, eax
jns 0x14004a41f
mov edx, 0x86a
mov r9d, eax
mov rcx, qword [rbp + 0x2e8]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.1400433e4
jmp 0x14004a422
mov ebx, r14d
lea rcx, [rbp]
call fcn.14001222c
nop
lea rcx, [rsp + 0x40]
call fcn.140011e24
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret