Function at 0x140049bb0
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.140011e60
mov ebx, eax
test eax, eax
jns 0x140049c79
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.1400417d4
jmp 0x140049e79
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.1400146d0
test eax, eax
jne 0x140049cb5
mov edx, 0x85e
jmp 0x140049e18
cmp dword [rbp + 0x14], r14d
ja 0x140049ccd
mov ebx, 0x8000ffff
mov r9d, ebx
mov edx, 0x85f
jmp 0x140049e57
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 0x140049d0a
mov ebx, 0x8007007a
mov r9d, ebx
mov edx, 0x862
jmp 0x140049e57
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0xa0], 0x5c
je 0x140049dd5
mov rcx, r15
lea rax, [rbp + 0xa0]
cmp word [rax], r14w
je 0x140049d36
add rax, 2
sub rcx, 1
jne 0x140049d26
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x140049d53
mov rax, r15
sub rax, rcx
jmp 0x140049d56
mov rax, r14
test rcx, rcx
je 0x140049dc8
mov rdx, r15
sub rdx, rax
lea rcx, [rbp + 0xa0]
lea rcx, [rcx + rax*2]
je 0x140049da3
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x1400a4afc]
sub rax, rcx
test r8, r8
je 0x140049da3
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x140049da3
mov word [rcx], r9w
add rcx, 2
dec r8
sub rdx, 1
jne 0x140049d82
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 0x140049dd5
mov r9d, ebx
mov edx, 0x866
jmp 0x140049e57
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.140005fbc
mov ebx, eax
test eax, eax
jns 0x140049df8
mov edx, 0x86a
jmp 0x140049e54
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 0x140049e2f
mov edx, 0x86d
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov rcx, qword [rbp + 0x2e8]
call fcn.1400417b4
mov ebx, eax
jmp 0x140049e6f
mov dword [rsp + 0x30], r14d
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call qword [case.0x140024095.0]
mov ebx, eax
test eax, eax
jns 0x140049e6c
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.1400417d4
jmp 0x140049e6f
mov ebx, r14d
lea rcx, [rbp]
call fcn.14001456c
nop
lea rcx, [rsp + 0x40]
call fcn.140014000
mov eax, ebx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140029fb0
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