Function at 0x14004aaa4
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 [0x1400c7228]
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, [0x14008bae8]
mov qword [rsp + 0x48], r12
lea rax, [0x14008c228]
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.1400184e0
mov ebx, eax
test eax, eax
jns 0x14004ab6d
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.140043d14
jmp 0x14004ad5c
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.1400156d0
test eax, eax
jne 0x14004aba9
mov edx, 0x857
jmp 0x14004acfb
cmp dword [rbp + 0x14], r14d
ja 0x14004abc1
mov ebx, 0x8000ffff
mov r9d, ebx
mov edx, 0x858
jmp 0x14004ad3a
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 0x14004abf8
mov ebx, 0x8007007a
mov r9d, ebx
mov edx, 0x85b
jmp 0x14004ad3a
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0xa0], 0x5c
je 0x14004acbe
mov rcx, r15
lea rax, [rbp + 0xa0]
cmp word [rax], r14w
je 0x14004ac24
add rax, 2
sub rcx, 1
jne 0x14004ac14
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14004ac41
mov rax, r15
sub rax, rcx
jmp 0x14004ac44
mov rax, r14
test rcx, rcx
je 0x14004acb4
mov rdx, r15
sub rdx, rax
lea rcx, [rbp + 0xa0]
lea rcx, [rcx + rax*2]
je 0x14004ac8f
lea r8, [rdx + 0x7ffffefa]
add r8, rax
lea r9, [0x14009604c]
sub r9, rcx
test r8, r8
je 0x14004ac8f
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14004ac8f
mov word [rcx], ax
add rcx, 2
dec r8
sub rdx, 1
jne 0x14004ac70
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 0x14004acbe
mov r9d, ebx
mov edx, 0x85f
jmp 0x14004ad3a
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.1400100c0
mov ebx, eax
test eax, eax
jns 0x14004ace1
mov edx, 0x863
jmp 0x14004ad37
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 0x14004ad12
mov edx, 0x866
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov rcx, qword [rbp + 0x2e8]
call fcn.140043cf4
mov ebx, eax
jmp 0x14004ad52
mov dword [rsp + 0x30], r14d
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call qword [case.0x1400022d4.0]
mov ebx, eax
test eax, eax
jns 0x14004ad4f
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.140043d14
jmp 0x14004ad52
mov ebx, r14d
lea rcx, [rbp]
call fcn.14001acc4
nop
lea rcx, [rsp + 0x40]
call fcn.14001a87c
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14002c150
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