Function at 0x140050380
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 [0x1400de7a8]
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, [0x1400ac888]
mov qword [rbp - 0x28], r12
lea rax, [0x1400ac7e8]
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.140010e54
mov ebx, eax
test eax, eax
jns 0x14005043c
mov rcx, qword [rbp + 0x2d8]
mov r9d, eax
lea r8, [0x1400b5a28]
mov edx, 0x732
call fcn.1400205f4
jmp 0x140050679
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.14001d42c
test eax, eax
je 0x140050654
cmp dword [rsp + 0x44], r14d
jbe 0x140050632
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 0x140050602
add eax, 0xfffffffe
cmp word [rbp + rax*2 + 0x90], 0x5c
je 0x140050572
mov edx, r15d
lea rax, [rbp + 0x90]
cmp word [rax], r14w
je 0x1400504de
add rax, 2
sub rdx, 1
jne 0x1400504ce
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 0x140050564
mov rcx, r15
sub rcx, r8
lea rdx, [rbp + 0x90]
lea rdx, [rdx + r8*2]
je 0x140050548
mov eax, 0x7ffffffe
lea r8, [0x1400b48e8]
sub r8, rdx
test rax, rax
je 0x140050548
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x140050548
mov word [rdx], r9w
add rdx, 2
dec rax
sub rcx, 1
jne 0x140050527
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 0x140050572
mov edx, 0x73d
jmp 0x14005063c
lea r8, str.ApplicationsWindowsProjectsSystemIndexPropMap
mov rdx, r15
lea rcx, [rbp + 0x90]
call fcn.14003f884
mov ebx, eax
test eax, eax
jns 0x14005059b
mov r9d, eax
mov edx, 0x742
jmp 0x14005063f
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 0x1400505fb
movabs r10, 0xa805b76a5e5af870
mov rdx, rsi
lea rcx, [rbp + 0x90]
call qword [case.0x140001f80.0]
mov ebx, eax
test eax, eax
jns 0x1400505e0
mov r9d, eax
mov edx, 0x749
jmp 0x14005063f
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
nop
lea rcx, [rbp - 0x30]
call fcn.140012244
xor eax, eax
jmp 0x140050684
mov edx, 0x746
jmp 0x140050659
mov rcx, qword [rbp + 0x2d8]
mov r9d, 0x8007007a
lea r8, [0x1400b5a28]
mov edx, 0x739
call fcn.1400205f4
nop
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
mov ebx, 0x8007007a
jmp 0x140050679
mov ebx, 0x8000ffff
mov edx, 0x736
mov r9d, ebx
lea r8, [0x1400b5a28]
mov rcx, qword [rbp + 0x2d8]
call fcn.1400205f4
jmp 0x14005066e
mov edx, 0x735
lea r8, [0x1400b5a28]
mov rcx, qword [rbp + 0x2d8]
call fcn.14003f3f4
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14000e3c0
nop
lea rcx, [rbp - 0x30]
call fcn.140012244
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140024c10
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