Function at 0x140049c60
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 [0x1400da318]
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, [0x14009a690]
mov qword [rsp + 0x48], r12
lea rax, [0x14009a5a0]
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.1400120b0
mov ebx, eax
test eax, eax
jns 0x140049d29
mov rcx, qword [rbp + 0x2e8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x85b
call fcn.140041884
jmp 0x140049f29
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.140014920
test eax, eax
jne 0x140049d65
mov edx, 0x85e
jmp 0x140049ec8
cmp dword [rbp + 0x14], r14d
ja 0x140049d7d
mov ebx, 0x8000ffff
mov r9d, ebx
mov edx, 0x85f
jmp 0x140049f07
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]
nop dword [rax + rax]
lea ecx, [rax - 1]
cmp ecx, 0x103
jbe 0x140049dba
mov ebx, 0x8007007a
mov r9d, ebx
mov edx, 0x862
jmp 0x140049f07
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0xa0], 0x5c
je 0x140049e85
mov rcx, r15
lea rax, [rbp + 0xa0]
cmp word [rax], r14w
je 0x140049de6
add rax, 2
sub rcx, 1
jne 0x140049dd6
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x140049e03
mov rax, r15
sub rax, rcx
jmp 0x140049e06
mov rax, r14
test rcx, rcx
je 0x140049e78
mov rdx, r15
sub rdx, rax
lea rcx, [rbp + 0xa0]
lea rcx, [rcx + rax*2]
je 0x140049e53
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x1400a4afc]
sub rax, rcx
test r8, r8
je 0x140049e53
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x140049e53
mov word [rcx], r9w
add rcx, 2
dec r8
sub rdx, 1
jne 0x140049e32
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 0x140049e85
mov r9d, ebx
mov edx, 0x866
jmp 0x140049f07
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.140006214
mov ebx, eax
test eax, eax
jns 0x140049ea8
mov edx, 0x86a
jmp 0x140049f04
lea rdx, str.CreatePropMapperStorage
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140049edf
mov edx, 0x86d
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov rcx, qword [rbp + 0x2e8]
call fcn.140041864
mov ebx, eax
jmp 0x140049f1f
mov dword [rsp + 0x30], r14d
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call qword [case.0x1400244c5.0]
mov ebx, eax
test eax, eax
jns 0x140049f1c
mov edx, 0x871
mov r9d, eax
mov rcx, qword [rbp + 0x2e8]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.140041884
jmp 0x140049f1f
mov ebx, r14d
lea rcx, [rbp]
call fcn.1400147bc
nop
lea rcx, [rsp + 0x40]
call fcn.140014250
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14002a310
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