Function at 0x14004f650
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rdx], r14
lea rax, [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x41
mov word [rbp - 0x10], r14w
lea r12, [0x1400ab888]
mov qword [rbp - 0x28], r12
lea rax, [0x1400ab7e8]
mov qword [rbp - 0x30], rax
mov dword [rbp + 0x78], r14d
mov qword [rbp + 0x80], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.140010e14
mov ebx, eax
test eax, eax
jns 0x14004f70c
mov rcx, qword [rbp + 0x2d8]
mov r9d, eax
lea r8, [0x1400ba1f0]
mov edx, 0x6f9
call fcn.1400205b4
jmp 0x14004f949
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x41
mov word [rsp + 0x48], r14w
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
lea rdx, str.DataDirectory
lea rcx, [rbp - 0x30]
call fcn.14001d3ec
test eax, eax
je 0x14004f924
cmp dword [rsp + 0x44], r14d
jbe 0x14004f902
mov r15d, 0x104
mov r8d, r15d
lea rdx, [rbp + 0x90]
mov rcx, qword [rsp + 0x38]
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
ja 0x14004f8d2
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0x90], 0x5c
je 0x14004f842
mov edx, r15d
lea rax, [rbp + 0x90]
cmp word [rax], r14w
je 0x14004f7ae
add rax, 2
sub rdx, 1
jne 0x14004f79e
mov rax, rdx
mov rcx, r15
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x14004f834
mov rcx, r15
sub rcx, r8
lea rdx, [rbp + 0x90]
lea rdx, [rdx + r8*2]
je 0x14004f818
mov eax, 0x7ffffffe
lea r8, [0x1400b3884]
sub r8, rdx
test rax, rax
je 0x14004f818
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x14004f818
mov word [rdx], r9w
add rdx, 2
dec rax
sub rcx, 1
jne 0x14004f7f7
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], r14w
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test ebx, ebx
jns 0x14004f842
mov edx, 0x704
jmp 0x14004f90c
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0x90]
call fcn.14003eba4
mov ebx, eax
test eax, eax
jns 0x14004f86b
mov r9d, eax
mov edx, 0x709
jmp 0x14004f90f
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
je 0x14004f8cb
movabs r10, 0xa805b76a5e5af870
mov rdx, rsi
lea rcx, [rbp + 0x90]
call qword [case.0x140001f80.0]
mov ebx, eax
test eax, eax
jns 0x14004f8b0
mov r9d, eax
mov edx, 0x710
jmp 0x14004f90f
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
nop
lea rcx, [rbp - 0x30]
call fcn.140012204
xor eax, eax
jmp 0x14004f954
mov edx, 0x70d
jmp 0x14004f929
mov rcx, qword [rbp + 0x2d8]
mov r9d, 0x8007007a
lea r8, [0x1400ba1f0]
mov edx, 0x700
call fcn.1400205b4
nop
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
mov ebx, 0x8007007a
jmp 0x14004f949
mov ebx, 0x8000ffff
mov edx, 0x6fd
mov r9d, ebx
lea r8, [0x1400ba1f0]
mov rcx, qword [rbp + 0x2d8]
call fcn.1400205b4
jmp 0x14004f93e
mov edx, 0x6fc
lea r8, [0x1400ba1f0]
mov rcx, qword [rbp + 0x2d8]
call fcn.14003e714
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
nop
lea rcx, [rbp - 0x30]
call fcn.140012204
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140024990
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret